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
PermissionOwner s Permission s are present. |
hasReadPermission, hasWritePermission
public DummyPermissionProcessor(Subject subject, Site site, Application application)
public boolean hasPermissions(PermissionOwner permissionOwner)
PermissionProcessor
PermissionOwner
s Permission
s are present.hasPermissions
in interface PermissionProcessor
hasPermissions
in class DefaultPermissionProcessor
permissionOwner
- the PermissionOwner
true
if all permissions are present, false
otherwisepublic boolean hasPermission(String reference)
PermissionProcessor
Permission
identified by the given reference
is present.hasPermission
in interface PermissionProcessor
hasPermission
in class DefaultPermissionProcessor
reference
- the name of the Permission
to checktrue
if the permission is present, false
otherwisePermission.getRef()
Copyright © 2011–2021 aiticon GmbH. All rights reserved.