Interface OSecurity
- All Known Implementing Classes:
OSessionSecurity
public interface OSecurity
Manages users and roles.
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionallowRole(ODocument iDocument, ORestrictedOperation iOperationType, String iRoleName) Deprecated.allowUser(ODocument iDocument, ORestrictedOperation iOperationType, String iUserName) Deprecated.authenticate(OToken authToken) Deprecated.authenticate(String iUsername, String iUserPassword) Deprecated.createRole(String iRoleName, ORole iParent, OSecurityRole.ALLOW_MODES iAllowMode) createRole(String iRoleName, OSecurityRole.ALLOW_MODES iAllowMode) createUser(String iUserName, String iUserPassword, ORole... iRoles) createUser(String iUserName, String iUserPassword, String... iRoles) denyRole(ODocument iDocument, ORestrictedOperation iOperationType, String iRoleName) Deprecated.denyUser(ODocument iDocument, ORestrictedOperation iOperationType, String iUserName) Deprecated.booleanbooleangetRole(OIdentifiable role) booleanisAllowed(Set<OIdentifiable> iAllowAll, Set<OIdentifiable> iAllowOperation) Deprecated.
-
Field Details
-
RESTRICTED_CLASSNAME
- See Also:
-
IDENTITY_CLASSNAME
Deprecated.- See Also:
-
ALLOW_ALL_FIELD
- See Also:
-
ALLOW_READ_FIELD
- See Also:
-
ALLOW_UPDATE_FIELD
- See Also:
-
ALLOW_DELETE_FIELD
- See Also:
-
ONCREATE_IDENTITY_TYPE
- See Also:
-
ONCREATE_FIELD
- See Also:
-
-
Method Details
-
isAllowed
Deprecated. -
allowUser
@Deprecated OIdentifiable allowUser(ODocument iDocument, ORestrictedOperation iOperationType, String iUserName) Deprecated.Record level security: allows a user to access to a record.- Parameters:
iDocument- ODocument instance to give accessiOperationType- Operation type to use based on the permission to allow:- ALLOW_ALL, to provide full access (RUD)
- ALLOW_READ, to provide read access
- ALLOW_UPDATE, to provide update access
- ALLOW_DELETE, to provide delete access
iUserName- User name to provide the access- Returns:
- The OIdentity instance allowed
-
allowRole
@Deprecated OIdentifiable allowRole(ODocument iDocument, ORestrictedOperation iOperationType, String iRoleName) Deprecated.Record level security: allows a role to access to a record.- Parameters:
iDocument- ODocument instance to give accessiOperationType- Operation type to use based on the permission to allow:- ALLOW_ALL, to provide full access (RUD)
- ALLOW_READ, to provide read access
- ALLOW_UPDATE, to provide update access
- ALLOW_DELETE, to provide delete access
iRoleName- Role name to provide the access- Returns:
- The OIdentity instance allowed
-
denyUser
@Deprecated OIdentifiable denyUser(ODocument iDocument, ORestrictedOperation iOperationType, String iUserName) Deprecated.Record level security: deny a user to access to a record.- Parameters:
iDocument- ODocument instance to give accessiOperationType- Operation type to use based on the permission to deny:- ALLOW_ALL, to provide full access (RUD)
- ALLOW_READ, to provide read access
- ALLOW_UPDATE, to provide update access
- ALLOW_DELETE, to provide delete access
iUserName- User name to deny the access- Returns:
- The OIdentity instance denied
-
denyRole
@Deprecated OIdentifiable denyRole(ODocument iDocument, ORestrictedOperation iOperationType, String iRoleName) Deprecated.Record level security: deny a role to access to a record.- Parameters:
iDocument- ODocument instance to give accessiOperationType- Operation type to use based on the permission to deny:- ALLOW_ALL, to provide full access (RUD)
- ALLOW_READ, to provide read access
- ALLOW_UPDATE, to provide update access
- ALLOW_DELETE, to provide delete access
iRoleName- Role name to deny the access- Returns:
- The OIdentity instance denied
-
authenticate
Deprecated. -
authenticate
Deprecated. -
getUser
-
getUser
-
createUser
-
createUser
-
dropUser
-
getRole
-
getRole
-
createRole
-
createRole
-
dropRole
-
getAllUsers
-
getAllRoles
-