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 org.deltava.security.command.AccessControl
_ctx
-
Constructor Summary
ConstructorsConstructorDescriptionIntiailizes the Access Controller. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns if the user can delete this Nomination.boolean
Returns if the user can approve or reject this Nomination.boolean
Returns if the user can nominate someone.boolean
Returns if the user can make an unlimited number of Nominations.boolean
Returns if the user can provide negative comments to the nomination.boolean
Returns if the user can read this nomination.boolean
Returns if the user can update this Nomination.void
Sets the Pilot being nominated.void
validate()
Calculates access rights.Methods inherited from class org.deltava.security.command.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:
validate
in 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
-