
public class OSecurityShared extends Object implements OSecurity, OCloseable
| Modifier and Type | Field and Description |
|---|---|
static String |
ALLOW_ALL_FIELD
Deprecated.
|
static String |
ALLOW_DELETE_FIELD
Deprecated.
|
static Set<String> |
ALLOW_FIELDS |
static String |
ALLOW_READ_FIELD
Deprecated.
|
static String |
ALLOW_UPDATE_FIELD
Deprecated.
|
static String |
IDENTITY_CLASSNAME |
static String |
ONCREATE_FIELD |
static String |
ONCREATE_IDENTITY_TYPE |
static String |
RESTRICTED_CLASSNAME |
| Constructor and Description |
|---|
OSecurityShared() |
| Modifier and Type | Method and Description |
|---|---|
OIdentifiable |
allowIdentity(ODocument iDocument,
String iAllowFieldName,
OIdentifiable iId)
Uses the version with ENUM instead.
|
OIdentifiable |
allowRole(ODocument iDocument,
ORestrictedOperation iOperation,
String iRoleName)
Record level security: allows a role to access to a record.
|
OIdentifiable |
allowRole(ODocument iDocument,
String iAllowFieldName,
String iRoleName)
Uses the version with ENUM instead.
|
OIdentifiable |
allowUser(ODocument iDocument,
ORestrictedOperation iOperation,
String iUserName)
Record level security: allows a user to access to a record.
|
OIdentifiable |
allowUser(ODocument iDocument,
String iAllowFieldName,
String iUserName)
Uses the version with ENUM instead.
|
OUser |
authenticate(OToken authToken) |
OUser |
authenticate(String iUserName,
String iUserPassword) |
void |
close()
Closes resources inside of call of OStorage#close().
|
void |
close(boolean onDelete) |
OUser |
create() |
void |
createClassTrigger() |
OUser |
createMetadata()
Repairs the security structure if broken by creating the ADMIN role and user with default password.
|
ORole |
createRole(String iRoleName,
ORole iParent,
OSecurityRole.ALLOW_MODES iAllowMode) |
ORole |
createRole(String iRoleName,
OSecurityRole.ALLOW_MODES iAllowMode) |
OUser |
createUser(String userName,
String userPassword,
ORole... roles) |
OUser |
createUser(String iUserName,
String iUserPassword,
String... iRoles) |
OIdentifiable |
denyRole(ODocument iDocument,
ORestrictedOperation iOperation,
String iRoleName)
Record level security: deny a role to access to a record.
|
OIdentifiable |
denyUser(ODocument iDocument,
ORestrictedOperation iOperation,
String iUserName)
Record level security: deny a user to access to a record.
|
OIdentifiable |
disallowIdentity(ODocument iDocument,
String iAllowFieldName,
OIdentifiable iId)
Uses the version with ENUM instead.
|
OIdentifiable |
disallowRole(ODocument iDocument,
String iAllowFieldName,
String iRoleName)
Uses the version with ENUM instead.
|
OIdentifiable |
disallowUser(ODocument iDocument,
String iAllowFieldName,
String iUserName)
Uses the version with ENUM instead.
|
boolean |
dropRole(String iRoleName) |
boolean |
dropUser(String iUserName) |
List<ODocument> |
getAllRoles() |
List<ODocument> |
getAllUsers() |
protected ODatabaseDocumentInternal |
getDatabase() |
ORole |
getRole(OIdentifiable iRole) |
ORole |
getRole(String iRoleName) |
ORID |
getRoleRID(String iRoleName) |
OSecurity |
getUnderlying() |
OUser |
getUser(ORID iRecordId) |
OUser |
getUser(String iUserName) |
ORID |
getUserRID(String iUserName) |
long |
getVersion() |
void |
incrementVersion() |
boolean |
isAllowed(Set<OIdentifiable> iAllowAll,
Set<OIdentifiable> iAllowOperation) |
void |
load() |
public static final String RESTRICTED_CLASSNAME
public static final String IDENTITY_CLASSNAME
@Deprecated public static final String ALLOW_ALL_FIELD
@Deprecated public static final String ALLOW_READ_FIELD
@Deprecated public static final String ALLOW_UPDATE_FIELD
@Deprecated public static final String ALLOW_DELETE_FIELD
public static final String ONCREATE_IDENTITY_TYPE
public static final String ONCREATE_FIELD
public OIdentifiable allowRole(ODocument iDocument, ORestrictedOperation iOperation, String iRoleName)
OSecurityallowRole in interface OSecurityiDocument - ODocument instance to give accessiOperation - Operation type to use based on the permission to allow:
iRoleName - Role name to provide the accesspublic OIdentifiable allowUser(ODocument iDocument, ORestrictedOperation iOperation, String iUserName)
OSecurityallowUser in interface OSecurityiDocument - ODocument instance to give accessiOperation - Operation type to use based on the permission to allow:
iUserName - User name to provide the accesspublic OIdentifiable allowUser(ODocument iDocument, String iAllowFieldName, String iUserName)
OSecuritypublic OIdentifiable allowRole(ODocument iDocument, String iAllowFieldName, String iRoleName)
OSecuritypublic OIdentifiable allowIdentity(ODocument iDocument, String iAllowFieldName, OIdentifiable iId)
OSecurityallowIdentity in interface OSecuritypublic OIdentifiable denyUser(ODocument iDocument, ORestrictedOperation iOperation, String iUserName)
OSecuritydenyUser in interface OSecurityiDocument - ODocument instance to give accessiOperation - Operation type to use based on the permission to deny:
iUserName - User name to deny the accesspublic OIdentifiable denyRole(ODocument iDocument, ORestrictedOperation iOperation, String iRoleName)
OSecuritydenyRole in interface OSecurityiDocument - ODocument instance to give accessiOperation - Operation type to use based on the permission to deny:
iRoleName - Role name to deny the accesspublic OIdentifiable disallowUser(ODocument iDocument, String iAllowFieldName, String iUserName)
OSecuritydisallowUser in interface OSecuritypublic OIdentifiable disallowRole(ODocument iDocument, String iAllowFieldName, String iRoleName)
OSecuritydisallowRole in interface OSecuritypublic OIdentifiable disallowIdentity(ODocument iDocument, String iAllowFieldName, OIdentifiable iId)
OSecuritydisallowIdentity in interface OSecuritypublic boolean isAllowed(Set<OIdentifiable> iAllowAll, Set<OIdentifiable> iAllowOperation)
public OUser authenticate(String iUserName, String iUserPassword)
authenticate in interface OSecuritypublic OUser authenticate(OToken authToken)
authenticate in interface OSecuritypublic OUser createUser(String iUserName, String iUserPassword, String... iRoles)
createUser in interface OSecuritypublic OUser createUser(String userName, String userPassword, ORole... roles)
createUser in interface OSecuritypublic ORole getRole(OIdentifiable iRole)
public ORole createRole(String iRoleName, OSecurityRole.ALLOW_MODES iAllowMode)
createRole in interface OSecuritypublic ORole createRole(String iRoleName, ORole iParent, OSecurityRole.ALLOW_MODES iAllowMode)
createRole in interface OSecuritypublic List<ODocument> getAllUsers()
getAllUsers in interface OSecuritypublic List<ODocument> getAllRoles()
getAllRoles in interface OSecuritypublic OUser createMetadata()
public void close()
OCloseableclose in interface OCloseablepublic void createClassTrigger()
createClassTrigger in interface OSecuritypublic OSecurity getUnderlying()
getUnderlying in interface OSecuritypublic long getVersion()
getVersion in interface OSecuritypublic void incrementVersion()
incrementVersion in interface OSecurityprotected ODatabaseDocumentInternal getDatabase()
Copyright © 2009–2025 OrientDB. All rights reserved.