public class DummyPermissionProcessor extends DefaultPermissionProcessor
PermissionProcessor that always returns true for
| Constructor and Description |
|---|
DummyPermissionProcessor(Subject subject,
Site site,
Application application) |
| 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. |
hasReadPermission, hasWritePermissionpublic DummyPermissionProcessor(Subject subject, Site site, Application application)
public boolean hasPermissions(PermissionOwner permissionOwner)
PermissionProcessorPermissionOwners Permissions are present.hasPermissions in interface PermissionProcessorhasPermissions in class DefaultPermissionProcessorpermissionOwner - the PermissionOwnertrue if all permissions are present, false otherwisepublic boolean hasPermission(String reference)
PermissionProcessorPermission identified by the given reference is present.hasPermission in interface PermissionProcessorhasPermission in class DefaultPermissionProcessorreference - the name of the Permission to checktrue if the permission is present, false otherwisePermission.getRef()Copyright © 2011–2018 aiticon GmbH. All rights reserved.