Package org.appng.api.support
Class DummyPermissionProcessor
- java.lang.Object
-
- org.appng.api.support.DefaultPermissionProcessor
-
- org.appng.api.support.DummyPermissionProcessor
-
- All Implemented Interfaces:
PermissionProcessor
public class DummyPermissionProcessor extends DefaultPermissionProcessor
APermissionProcessor
that always returnstrue
for- Author:
- Matthias Müller
-
-
Constructor Summary
Constructors Constructor Description DummyPermissionProcessor(Subject subject, Site site, Application application)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasPermission(String reference)
Checks whether thePermission
identified by the givenreference
is present.boolean
hasPermissions(PermissionOwner permissionOwner)
Checks whether all of thePermissionOwner
sPermission
s are present.-
Methods inherited from class org.appng.api.support.DefaultPermissionProcessor
hasReadPermission, hasWritePermission
-
-
-
-
Constructor Detail
-
DummyPermissionProcessor
public DummyPermissionProcessor(Subject subject, Site site, Application application)
-
-
Method Detail
-
hasPermissions
public boolean hasPermissions(PermissionOwner permissionOwner)
Description copied from interface:PermissionProcessor
Checks whether all of thePermissionOwner
sPermission
s are present.- Specified by:
hasPermissions
in interfacePermissionProcessor
- Overrides:
hasPermissions
in classDefaultPermissionProcessor
- Parameters:
permissionOwner
- thePermissionOwner
- Returns:
true
if all permissions are present,false
otherwise
-
hasPermission
public boolean hasPermission(String reference)
Description copied from interface:PermissionProcessor
Checks whether thePermission
identified by the givenreference
is present.- Specified by:
hasPermission
in interfacePermissionProcessor
- Overrides:
hasPermission
in classDefaultPermissionProcessor
- Parameters:
reference
- the name of thePermission
to check- Returns:
true
if the permission is present,false
otherwise- See Also:
Permission.getRef()
-
-