Interface RepositoryPermission
-
public interface RepositoryPermissionTheRepositoryPermissionallows to evaluate permissions that have been defined on the repository level and which consequently are not bound to a particular item.
-
-
Field Summary
Fields Modifier and Type Field Description static RepositoryPermissionALLRepositoryPermissioninstance that always returnstrue.static RepositoryPermissionEMPTYRepositoryPermissioninstance that always returnsfalse.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisGranted(long repositoryPermissions)Returnstrueif the specified repository level permissions aregranted; false otherwise.
-
-
-
Field Detail
-
EMPTY
static final RepositoryPermission EMPTY
RepositoryPermissioninstance that always returnsfalse.
-
ALL
static final RepositoryPermission ALL
RepositoryPermissioninstance that always returnstrue.
-
-
Method Detail
-
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:
Permissions.isRepositoryPermission(long)
-
-