Class TourAccessControl

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

public class TourAccessControl extends AccessControl
An Access Controller for Tour beans.
Since:
10.0
Version:
11.6
Author:
Luke
See Also:
  • Constructor Details

    • TourAccessControl

      public TourAccessControl(SecurityContext ctx, Tour t)
      Initializes the access controller.
      Parameters:
      ctx - the command context
      t - the Tour
  • Method Details

    • validate

      public void validate()
      Description copied from class: AccessControl
      Calculates access control rights
      Specified by:
      validate in class AccessControl
    • getCanCreate

      public boolean getCanCreate()
      Returns whether the user can create a new Tour.
      Returns:
      TRUE if the user can create a Tour, otherwise FALSE
    • getCanRead

      public boolean getCanRead()
      Returns whether the user can read a Tour profile.
      Returns:
      TRUE if the user can read the Tour, otherwise FALSE
    • getCanEdit

      public boolean getCanEdit()
      Returns whether the user can edit this Tour metadata.
      Returns:
      TRUE if the user can edit the Tour, otherwise FALSE
    • getCanEditLegs

      public boolean getCanEditLegs()
      Returns whether the user can modify this Tour's Flight legs.
      Returns:
      TRUE if the user can edit the legs, otherwise FALSE
    • getCanDelete

      public boolean getCanDelete()
      Returns whether the user can delete this Tour.
      Returns:
      TRUE if the user can delete the Tour, otherwise FALSE
    • getCanViewFeedback

      public boolean getCanViewFeedback()
      Returns whether the User can view feedback about this Tour.
      Returns:
      TRUE if feedback can be viewed, otherwise FALSE
    • getCanProvideFeedback

      public boolean getCanProvideFeedback()
      Returns whether the User can provide feedback about this Tour.
      Returns:
      TRUE if feedback can be provided, otherwise FALSE