OSecurityUser - isRuleDefined()

Determines whether the given rule is defined for the user.


OrientDB defines a user's access to various resources through a set of rules, defined as ORule instances. Using this method, you can determine if a rule has been defined for a specific resource for this user.


boolean OSecurityUser().isRuleDefined(
   ORule.ResourceGeneric resourceGeneric,
   String resourceSpecific)
resourceGenericORule.ResourceGenericDefines the generic resource for the rule
resourceSpecificStringDefines the specific resource to check

Return Value

This method returns a boolean instance. A value of true, indicates that the user does have a rule to access the given resource.