public class OImmutableRole extends Object implements OSecurityRole
OSecurityRole.ALLOW_MODES
Constructor and Description |
---|
OImmutableRole(ORole role) |
Modifier and Type | Method and Description |
---|---|
OSecurityRole |
addRule(ORule.ResourceGeneric resourceGeneric,
String resourceSpecific,
int iOperation) |
OSecurityRole |
addRule(String iResource,
int iOperation) |
boolean |
allow(ORule.ResourceGeneric resourceGeneric,
String resourceSpecific,
int iCRUDOperation) |
boolean |
allow(String iResource,
int iCRUDOperation)
Deprecated.
|
ODocument |
getDocument() |
OIdentifiable |
getIdentity() |
OSecurityRole.ALLOW_MODES |
getMode() |
String |
getName() |
OSecurityRole |
getParentRole() |
Set<ORule> |
getRuleSet() |
OSecurityRole |
grant(ORule.ResourceGeneric resourceGeneric,
String resourceSpecific,
int iOperation) |
OSecurityRole |
grant(String iResource,
int iOperation) |
boolean |
hasRule(ORule.ResourceGeneric resourceGeneric,
String resourceSpecific) |
boolean |
hasRule(String iResource)
Deprecated.
|
ORole |
revoke(ORule.ResourceGeneric resourceGeneric,
String resourceSpecific,
int iOperation) |
OSecurityRole |
revoke(String iResource,
int iOperation) |
ORole |
setMode(OSecurityRole.ALLOW_MODES iMode) |
ORole |
setParentRole(OSecurityRole iParent) |
String |
toString() |
public OImmutableRole(ORole role)
public boolean allow(ORule.ResourceGeneric resourceGeneric, String resourceSpecific, int iCRUDOperation)
allow
in interface OSecurityRole
public boolean hasRule(ORule.ResourceGeneric resourceGeneric, String resourceSpecific)
hasRule
in interface OSecurityRole
public OSecurityRole addRule(ORule.ResourceGeneric resourceGeneric, String resourceSpecific, int iOperation)
addRule
in interface OSecurityRole
public OSecurityRole grant(ORule.ResourceGeneric resourceGeneric, String resourceSpecific, int iOperation)
grant
in interface OSecurityRole
public ORole revoke(ORule.ResourceGeneric resourceGeneric, String resourceSpecific, int iOperation)
revoke
in interface OSecurityRole
@Deprecated public boolean allow(String iResource, int iCRUDOperation)
allow
in interface OSecurityRole
@Deprecated public boolean hasRule(String iResource)
hasRule
in interface OSecurityRole
public OSecurityRole addRule(String iResource, int iOperation)
addRule
in interface OSecurityRole
public OSecurityRole grant(String iResource, int iOperation)
grant
in interface OSecurityRole
public OSecurityRole revoke(String iResource, int iOperation)
revoke
in interface OSecurityRole
public String getName()
getName
in interface OSecurityRole
public OSecurityRole.ALLOW_MODES getMode()
getMode
in interface OSecurityRole
public ORole setMode(OSecurityRole.ALLOW_MODES iMode)
setMode
in interface OSecurityRole
public OSecurityRole getParentRole()
getParentRole
in interface OSecurityRole
public ORole setParentRole(OSecurityRole iParent)
setParentRole
in interface OSecurityRole
public Set<ORule> getRuleSet()
getRuleSet
in interface OSecurityRole
public OIdentifiable getIdentity()
getIdentity
in interface OSecurityRole
public ODocument getDocument()
getDocument
in interface OSecurityRole
Copyright © 2009–2020 OrientDB. All rights reserved.