Interface RepositoryPermission
public interface RepositoryPermission
The
RepositoryPermission allows to evaluate permissions that have
been defined on the repository level and which consequently are not bound
to a particular item.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RepositoryPermissionRepositoryPermissioninstance that always returnstrue.static final RepositoryPermissionRepositoryPermissioninstance that always returnsfalse. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisGranted(long repositoryPermissions) Returnstrueif the specified repository level permissions aregranted; false otherwise.
-
Field Details
-
EMPTY
RepositoryPermissioninstance that always returnsfalse. -
ALL
RepositoryPermissioninstance that always returnstrue.
-
-
Method Details
-
isGranted
boolean isGranted(long repositoryPermissions) Returnstrueif the specified repository level permissions aregranted; false otherwise.- Parameters:
repositoryPermissions- Any valid repository level permission such as for example:- Returns:
trueif the specified repository level permissions aregranted;falseotherwise- See Also:
-