Package com.polarion.platform.security
Class AdministrationPermission
java.lang.Object
com.polarion.platform.security.Permission
com.polarion.platform.security.AdministrationPermission
- All Implemented Interfaces:
IPermission
Administration permission class.
Available permissions:
com.polarion.administration.read
- action isACTION_READ
com.polarion.administration.modify
- action isACTION_MODIFY
com.polarion.administration.project.create
- action isACTION_PROJECT_CREATE
- Version:
- $Revision$ $Date$
- Author:
- Stepan Roh, Polarion Software
-
Field Summary
Fields inherited from class com.polarion.platform.security.Permission
name
Fields inherited from interface com.polarion.platform.security.IPermission
SEPARATOR
-
Constructor Summary
ConstructorDescriptionAdministrationPermission
(boolean dummy, String action) Deprecated.Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic AdministrationPermission
The collection of permissions, to which the decision about this permission is granted, if there is no record for exactly this permission.Methods inherited from class com.polarion.platform.security.Permission
denied, equals, getDynamicRoles, getName, hashCode, isInCustomSet, toString
-
Field Details
-
ACTION_READ
- See Also:
-
ACTION_MODIFY
- See Also:
-
ACTION_PROJECT_CREATE
- Since:
- 3.2.1
- See Also:
-
-
Constructor Details
-
AdministrationPermission
Constructor.- Parameters:
name
- permission name- Throws:
IllegalArgumentException
- if name is invalid
-
AdministrationPermission
Deprecated.Constructor.- Parameters:
dummy
-true
action
- one ofACTION_READ
andACTION_MODIFY
- Throws:
IllegalArgumentException
- ifaction
isnull
-
-
Method Details
-
forAction
- Since:
- 3.6.0
-
getAction
- Returns:
- the action
-
getParentPermissions
Description copied from interface:IPermission
The collection of permissions, to which the decision about this permission is granted, if there is no record for exactly this permission.For permission to be granted, none of it's parents can be denied and at least one of them must be granted. The rest can be either undefined or granted.
- Specified by:
getParentPermissions
in interfaceIPermission
- Overrides:
getParentPermissions
in classPermission
- Returns:
- array of
IPermission
s (notnull
)
-
forAction(String)