public interface PermissionProcessor
Permission
s owned by a PermissionOwner
.Modifier and Type | Method and Description |
---|---|
boolean |
hasPermission(String reference)
Checks whether the
Permission identified by the given reference is present. |
boolean |
hasPermissions(PermissionOwner permissionOwner)
Checks whether all of the
PermissionOwner s Permission s are present. |
boolean |
hasReadPermission(FieldDef fieldDefinition)
Checks whether the
Permission s to read the value for the given FieldDef are present. |
boolean |
hasWritePermission(FieldDef fieldDefinition)
Checks whether the
Permission s to write the value for the given FieldDef are present. |
boolean hasPermissions(PermissionOwner permissionOwner)
PermissionOwner
s Permission
s are present.permissionOwner
- the PermissionOwner
true
if all permissions are present, false
otherwiseboolean hasPermission(String reference)
Permission
identified by the given reference
is present.reference
- the name of the Permission
to checktrue
if the permission is present, false
otherwisePermission.getRef()
boolean hasWritePermission(FieldDef fieldDefinition)
Permission
s to write the value for the given FieldDef
are present.fieldDefinition
- the FieldDef
to check the write-permission fortrue
if the permissions are present and the FieldDef
isn't readonly, false
otherwiseFieldDef.getReadonly()
,
FieldPermissions
,
FieldPermissionType.WRITE
boolean hasReadPermission(FieldDef fieldDefinition)
Permission
s to read the value for the given FieldDef
are present.fieldDefinition
- the FieldDef
to check the read-permission fortrue
if the permissions are present, false
otherwiseFieldPermissions
,
FieldPermissionType.READ
Copyright © 2011–2023 aiticon GmbH. All rights reserved.