public class ORule extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ORule.ResourceGeneric |
Constructor and Description |
---|
ORule(ORule.ResourceGeneric resourceGeneric,
Map<String,Byte> specificResources,
Byte access) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsSpecificResource(String resource) |
Byte |
getAccess() |
ORule.ResourceGeneric |
getResourceGeneric() |
Map<String,Byte> |
getSpecificResources() |
void |
grantAccess(String resource,
int operation) |
Boolean |
isAllowed(String name,
int operation) |
static ORule.ResourceGeneric |
mapLegacyResourceToGenericResource(String resource) |
static String |
mapLegacyResourceToSpecificResource(String resource) |
static String |
mapResourceGenericToLegacyResource(ORule.ResourceGeneric resourceGeneric) |
void |
revokeAccess(String resource,
int operation) |
public ORule(ORule.ResourceGeneric resourceGeneric, Map<String,Byte> specificResources, Byte access)
public static ORule.ResourceGeneric mapLegacyResourceToGenericResource(String resource)
public static String mapResourceGenericToLegacyResource(ORule.ResourceGeneric resourceGeneric)
public static String mapLegacyResourceToSpecificResource(String resource)
public Byte getAccess()
public ORule.ResourceGeneric getResourceGeneric()
public void grantAccess(String resource, int operation)
public void revokeAccess(String resource, int operation)
public boolean containsSpecificResource(String resource)
Copyright © 2009–2020 OrientDB. All rights reserved.