OSecurityRole - addRule()

Grants access to the given resource to the role.

Adding Rules

OrientDB defines resources and the user or role's access to the resource defined using ORule instances. Using this method, you can add a rule to the role.

Syntax

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

Return Value

This method returns an OSecurityRule instance. You may find this useful in chaining several operations together.