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 RepositoryPermission
RepositoryPermission
instance that always returnstrue
.static final RepositoryPermission
RepositoryPermission
instance that always returnsfalse
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isGranted
(long repositoryPermissions) Returnstrue
if the specified repository level permissions aregranted
; false otherwise.
-
Field Details
-
EMPTY
RepositoryPermission
instance that always returnsfalse
. -
ALL
RepositoryPermission
instance that always returnstrue
.
-
-
Method Details
-
isGranted
boolean isGranted(long repositoryPermissions) Returnstrue
if the specified repository level permissions aregranted
; false otherwise.- Parameters:
repositoryPermissions
- Any valid repository level permission such as for example:- Returns:
true
if the specified repository level permissions aregranted
;false
otherwise- See Also:
-