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.


OSecurityRole OSecurityRole().addRule(
    ORule.ResourceGeneric resourrceGeneric,
    String resourceSpecific,
    int operation)
Argument Type Description
resourceGeneric ORule.ResourceGeneric Defines the generic resource
resourceSpecific String Defines the specific resource
opreation int Defines the allowed operation

Return Value

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

results matching ""

    No results matching ""