Interface RepositoryPermission
-
public interface RepositoryPermission
TheRepositoryPermission
allows 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 RepositoryPermission
ALL
RepositoryPermission
instance that always returnstrue
.static RepositoryPermission
EMPTY
RepositoryPermission
instance that always returnsfalse
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isGranted(long repositoryPermissions)
Returnstrue
if the specified repository level permissions aregranted
; false otherwise.
-
-
-
Field Detail
-
EMPTY
static final RepositoryPermission EMPTY
RepositoryPermission
instance that always returnsfalse
.
-
ALL
static final RepositoryPermission ALL
RepositoryPermission
instance that always returnstrue
.
-
-
Method Detail
-
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:
Permissions.isRepositoryPermission(long)
-
-