Class NominationAccessControl
java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.NominationAccessControl
- All Implemented Interfaces:
Serializable
An access controller for Senior Captain nominations.
- Since:
- 3.3
- Version:
- 8.6
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class AccessControl
_ctx -
Constructor Summary
ConstructorsConstructorDescriptionIntiailizes the Access Controller. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns if the user can delete this Nomination.booleanReturns if the user can approve or reject this Nomination.booleanReturns if the user can nominate someone.booleanReturns if the user can make an unlimited number of Nominations.booleanReturns if the user can provide negative comments to the nomination.booleanReturns if the user can read this nomination.booleanReturns if the user can update this Nomination.voidSets the Pilot being nominated.voidvalidate()Calculates access rights.Methods inherited from class AccessControl
validateContext
-
Constructor Details
-
NominationAccessControl
Intiailizes the Access Controller.- Parameters:
ctx- the SecurityContextn- the Nomination bean
-
-
Method Details
-
setPilot
Sets the Pilot being nominated.- Parameters:
p- the Pilot being nominated
-
validate
Calculates access rights.- Specified by:
validatein classAccessControl- Throws:
AccessControlException- if we cannot view the data
-
getCanNominate
public boolean getCanNominate()Returns if the user can nominate someone.- Returns:
- TRUE if someone can be nominated, otherwise FALSE
-
getCanNominateUnlimited
public boolean getCanNominateUnlimited()Returns if the user can make an unlimited number of Nominations.- Returns:
- TRUE if nominations unlimited, otherwise FALSE
-
getCanRead
public boolean getCanRead()Returns if the user can read this nomination.- Returns:
- TRUE if the nomination can be read, otherwise FALSE
-
getCanObject
public boolean getCanObject()Returns if the user can provide negative comments to the nomination.- Returns:
- TRUE if the user can object, otherwise FALSE
-
getCanUpdate
public boolean getCanUpdate()Returns if the user can update this Nomination.- Returns:
- TRUE if the nomination can be updated, otherwise FALSE
-
getCanDispose
public boolean getCanDispose()Returns if the user can approve or reject this Nomination.- Returns:
- TRUE if the nomation can be rejected or approved, otherwise FALSE
-
getCanDelete
public boolean getCanDelete()Returns if the user can delete this Nomination.- Returns:
- TRUE if the nomination can be deleted, otherwise FALSE
-