Provides an interface for working with and operating on roles.
In OrientDB, roles allow you to assign privileges to a user in bulk rather than individually. For instance, an account that needs to manage a blog would need read and write permissions on certain classes. Roles allow you to give a new account the privileges it needs to function in one command, rather than through a series of individual grants.
To operate on roles in your application, import the class:
|Grants privilege on the given resource|
|Determines whether role can perform the given operation on the given resource|
|Retrieves the internal document of the role|
|Retrieves the logical name of the role|
|Retrieves the parent role|
|Retrieves the rules assigned to the role|
|Grants privileges on the given resource|
|Determines whether the role can access the given resource|
|Revokes access to the given resource|
|Sets the parent role|