OSecurityRole - revoke()

Removes access to the given resource from the role.

Revoking Access

OrientDB defines the resources that the role can access and what privileges they have on that resource using a set of rules. Using this method, you can remove a rule from the set, effectively revoking the role's access to the resource.

Syntax

OSecurityRole OSecurityRole().revoke(
	ORule.ResourceGeneric resourceGeneric,
	String resourceSpecific,
	int operation)
ArgumentTypeDescription
resourceGenericORule.ResourceGenericDefines the generic resource to remove
resourceSpecificStringDefines the specific resource to remove
operationintDefines the operation to revoke

Return Value

This method returns the updated OSecurityRole instance. You may find this useful in chaining several operations together.