java.lang.Object
com.orientechnologies.orient.core.metadata.security.ORule
All Implemented Interfaces:
Serializable

public class ORule extends Object implements Serializable
Since:
08/11/14
Author:
Andrey Lomakin (a.lomakin-at-orientdb.com)
See Also:
  • Constructor Details

  • Method Details

    • mapLegacyResourceToGenericResource

      public static ORule.ResourceGeneric mapLegacyResourceToGenericResource(String resource)
    • mapResourceGenericToLegacyResource

      public static String mapResourceGenericToLegacyResource(ORule.ResourceGeneric resourceGeneric)
    • mapLegacyResourceToSpecificResource

      public static String mapLegacyResourceToSpecificResource(String resource)
    • getAccess

      public Byte getAccess()
    • getResourceGeneric

      public ORule.ResourceGeneric getResourceGeneric()
    • getSpecificResources

      public Map<String,Byte> getSpecificResources()
    • grantAccess

      public void grantAccess(String resource, int operation)
    • revokeAccess

      public void revokeAccess(String resource, int operation)
    • isAllowed

      public Boolean isAllowed(String name, int operation)
    • containsSpecificResource

      public boolean containsSpecificResource(String resource)