Class PartnerAccessControl
java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.PartnerAccessControl
- All Implemented Interfaces:
Serializable
An Access Controller for virtual airline Partner data.
- Since:
- 10.3
- Version:
- 10.3
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class AccessControl
_ctx -
Constructor Summary
ConstructorsConstructorDescriptionInitializes the access controller. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns if the user can create a new Partner Information entry.booleanReturns if the user can delete the Partner Information entry.booleanReturns if the user can edit the Partner Information entry.voidvalidate()Calculates access control rightsMethods inherited from class AccessControl
validateContextModifier and TypeMethodDescriptionprotected voidValidates the command context for this access controller.
-
Constructor Details
-
PartnerAccessControl
Initializes the access controller.- Parameters:
ctx- the SecurityContextpi- the PartnerInfo bean, or null
-
-
Method Details
-
validate
Description copied from class:AccessControlCalculates access control rights- Specified by:
validatein classAccessControl- Throws:
AccessControlException- if no access at all is possible
-
getCanCreate
public boolean getCanCreate()Returns if the user can create a new Partner Information entry.- Returns:
- TRUE if an entry can be created, otherwise FALSE
-
getCanEdit
public boolean getCanEdit()Returns if the user can edit the Partner Information entry.- Returns:
- TRUE if the entry can be edited, otherwise FALSE
-
getCanDelete
public boolean getCanDelete()Returns if the user can delete the Partner Information entry.- Returns:
- TRUE if the entry can be deleted, otherwise FALSE
-