public interface OSecurity
Modifier and Type | Field and Description |
---|---|
static String |
ALLOW_ALL_FIELD |
static String |
ALLOW_DELETE_FIELD |
static String |
ALLOW_READ_FIELD |
static String |
ALLOW_UPDATE_FIELD |
static String |
IDENTITY_CLASSNAME
Deprecated.
|
static String |
ONCREATE_FIELD |
static String |
ONCREATE_IDENTITY_TYPE |
static String |
RESTRICTED_CLASSNAME |
Modifier and Type | Method and Description |
---|---|
OIdentifiable |
allowIdentity(ODocument iDocument,
String iAllowFieldName,
OIdentifiable iId)
Deprecated.
|
OIdentifiable |
allowRole(ODocument iDocument,
ORestrictedOperation iOperationType,
String iRoleName)
Record level security: allows a role to access to a record.
|
OIdentifiable |
allowRole(ODocument iDocument,
String iAllowFieldName,
String iRoleName)
Deprecated.
|
OIdentifiable |
allowUser(ODocument iDocument,
ORestrictedOperation iOperationType,
String iUserName)
Record level security: allows a user to access to a record.
|
OIdentifiable |
allowUser(ODocument iDocument,
String iAllowFieldName,
String iUserName)
Deprecated.
|
OUser |
authenticate(OToken authToken) |
OUser |
authenticate(String iUsername,
String iUserPassword) |
void |
close(boolean onDelete)
Deprecated.
|
OUser |
create()
Deprecated.
|
void |
createClassTrigger()
Deprecated.
|
ORole |
createRole(String iRoleName,
ORole iParent,
OSecurityRole.ALLOW_MODES iAllowMode) |
ORole |
createRole(String iRoleName,
OSecurityRole.ALLOW_MODES iAllowMode) |
OUser |
createUser(String iUserName,
String iUserPassword,
ORole... iRoles) |
OUser |
createUser(String iUserName,
String iUserPassword,
String... iRoles) |
OIdentifiable |
denyRole(ODocument iDocument,
ORestrictedOperation iOperationType,
String iRoleName)
Record level security: deny a role to access to a record.
|
OIdentifiable |
denyUser(ODocument iDocument,
ORestrictedOperation iOperationType,
String iUserName)
Record level security: deny a user to access to a record.
|
OIdentifiable |
disallowIdentity(ODocument iDocument,
String iAllowFieldName,
OIdentifiable iId)
Deprecated.
|
OIdentifiable |
disallowRole(ODocument iDocument,
String iAllowFieldName,
String iRoleName)
Deprecated.
|
OIdentifiable |
disallowUser(ODocument iDocument,
String iAllowFieldName,
String iUserName)
Deprecated.
|
boolean |
dropRole(String iRoleName) |
boolean |
dropUser(String iUserName) |
List<ODocument> |
getAllRoles() |
List<ODocument> |
getAllUsers() |
ORole |
getRole(OIdentifiable role) |
ORole |
getRole(String iRoleName) |
OSecurity |
getUnderlying()
Deprecated.
|
OUser |
getUser(ORID iUserId) |
OUser |
getUser(String iUserName) |
long |
getVersion()
Deprecated.
|
void |
incrementVersion()
Deprecated.
|
boolean |
isAllowed(Set<OIdentifiable> iAllowAll,
Set<OIdentifiable> iAllowOperation) |
void |
load()
Deprecated.
|
static final String RESTRICTED_CLASSNAME
@Deprecated static final String IDENTITY_CLASSNAME
static final String ALLOW_ALL_FIELD
static final String ALLOW_READ_FIELD
static final String ALLOW_UPDATE_FIELD
static final String ALLOW_DELETE_FIELD
static final String ONCREATE_IDENTITY_TYPE
static final String ONCREATE_FIELD
@Deprecated OUser create()
@Deprecated void load()
boolean isAllowed(Set<OIdentifiable> iAllowAll, Set<OIdentifiable> iAllowOperation)
OIdentifiable allowUser(ODocument iDocument, ORestrictedOperation iOperationType, String iUserName)
iDocument
- ODocument instance to give accessiOperationType
- Operation type to use based on the permission to allow:
iUserName
- User name to provide the accessOIdentifiable allowRole(ODocument iDocument, ORestrictedOperation iOperationType, String iRoleName)
iDocument
- ODocument instance to give accessiOperationType
- Operation type to use based on the permission to allow:
iRoleName
- Role name to provide the accessOIdentifiable denyUser(ODocument iDocument, ORestrictedOperation iOperationType, String iUserName)
iDocument
- ODocument instance to give accessiOperationType
- Operation type to use based on the permission to deny:
iUserName
- User name to deny the accessOIdentifiable denyRole(ODocument iDocument, ORestrictedOperation iOperationType, String iRoleName)
iDocument
- ODocument instance to give accessiOperationType
- Operation type to use based on the permission to deny:
iRoleName
- Role name to deny the access@Deprecated OIdentifiable allowUser(ODocument iDocument, String iAllowFieldName, String iUserName)
@Deprecated OIdentifiable allowRole(ODocument iDocument, String iAllowFieldName, String iRoleName)
@Deprecated OIdentifiable allowIdentity(ODocument iDocument, String iAllowFieldName, OIdentifiable iId)
@Deprecated OIdentifiable disallowUser(ODocument iDocument, String iAllowFieldName, String iUserName)
@Deprecated OIdentifiable disallowRole(ODocument iDocument, String iAllowFieldName, String iRoleName)
@Deprecated OIdentifiable disallowIdentity(ODocument iDocument, String iAllowFieldName, OIdentifiable iId)
boolean dropUser(String iUserName)
ORole getRole(OIdentifiable role)
ORole createRole(String iRoleName, OSecurityRole.ALLOW_MODES iAllowMode)
ORole createRole(String iRoleName, ORole iParent, OSecurityRole.ALLOW_MODES iAllowMode)
boolean dropRole(String iRoleName)
@Deprecated void close(boolean onDelete)
@Deprecated void createClassTrigger()
@Deprecated OSecurity getUnderlying()
@Deprecated long getVersion()
@Deprecated void incrementVersion()
Copyright © 2009–2020 OrientDB. All rights reserved.