Class NominationAccessControl

java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.NominationAccessControl
All Implemented Interfaces:
Serializable

public class NominationAccessControl extends AccessControl
An access controller for Senior Captain nominations.
Since:
3.3
Version:
8.6
Author:
Luke
See Also:
  • Constructor Details

    • NominationAccessControl

      public NominationAccessControl(SecurityContext ctx, Nomination n)
      Intiailizes the Access Controller.
      Parameters:
      ctx - the SecurityContext
      n - the Nomination bean
  • Method Details

    • setPilot

      public void setPilot(Pilot p)
      Sets the Pilot being nominated.
      Parameters:
      p - the Pilot being nominated
    • validate

      public void validate() throws AccessControlException
      Calculates access rights.
      Specified by:
      validate in class AccessControl
      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