Class ObjectPermission

java.lang.Object
net.ME1312.SubServers.Client.Sponge.Library.ObjectPermission

public class ObjectPermission extends Object
Object Permissions Class
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    permits(String string, Subject object, String... permissions)
    Determine if an object can perform some action on another object using possible permissions
    static boolean
    permits(Host host, Subject object, String... permissions)
    Determine if an object can perform some action on a host using possible permissions
    static boolean
    permits(Proxy proxy, Subject object, String... permissions)
    Determine if an object can perform some action on this proxy using possible permissions
    static boolean
    permits(Server server, Subject object, String... permissions)
    Determine if an object can perform some action on a server using possible permissions

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • permits

      public static boolean permits(Proxy proxy, Subject object, String... permissions)
      Determine if an object can perform some action on this proxy using possible permissions
      Parameters:
      proxy - Proxy to check against
      object - Object to check against
      permissions - Permissions to check (use % as a placeholder for the proxy name)
      Returns:
      Permission Check Result
    • permits

      public static boolean permits(Host host, Subject object, String... permissions)
      Determine if an object can perform some action on a host using possible permissions
      Parameters:
      host - Host to check against
      object - Object to check against
      permissions - Permissions to check (use % as a placeholder for the host name)
      Returns:
      Permission Check Result
    • permits

      public static boolean permits(String string, Subject object, String... permissions)
      Determine if an object can perform some action on another object using possible permissions
      Parameters:
      string - String to check against
      object - Object to check against
      permissions - Permissions to check (use % as a placeholder for the object name)
      Returns:
      Permission Check Result
    • permits

      public static boolean permits(Server server, Subject object, String... permissions)
      Determine if an object can perform some action on a server using possible permissions
      Parameters:
      server - Server to check against
      object - Object to check against
      permissions - Permissions to check (use % as a placeholder for the server name)
      Returns:
      Permission Check Result