public interface PermissionProcessor
Permissions 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
PermissionOwners Permissions are present. |
boolean |
hasReadPermission(FieldDef fieldDefinition)
Checks whether the
Permissions to read the value for the given FieldDef are present. |
boolean |
hasWritePermission(FieldDef fieldDefinition)
Checks whether the
Permissions to write the value for the given FieldDef are present. |
boolean hasPermissions(PermissionOwner permissionOwner)
PermissionOwners Permissions are present.permissionOwner - the PermissionOwnertrue 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)
Permissions 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.WRITEboolean hasReadPermission(FieldDef fieldDefinition)
Permissions 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.READCopyright © 2011–2018 aiticon GmbH. All rights reserved.