Class EventAccessControl

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

public class EventAccessControl extends AccessControl
An Access Controller for Online Events.
Since:
1.0
Version:
11.6
Author:
Luke
See Also:
  • Constructor Details

    • EventAccessControl

      public EventAccessControl(SecurityContext ctx, Event e)
      Initializes the Access Controller.
      Parameters:
      ctx - the Command context
      e - the Online Event
  • Method Details

    • validate

      public void validate()
      Calculates access rights.
      Specified by:
      validate in class AccessControl
    • getCanCreate

      public boolean getCanCreate()
      Returns if a new Online Event can be created.
      Returns:
      TRUE if a new Online Event can be created, otherwise FALSE
    • getCanSignup

      public boolean getCanSignup()
      Returns if a new Signup for this Online Event can be created.
      Returns:
      TRUE if a Signup for this Online Event can be created, otherwise FALSE
    • getCanEdit

      public boolean getCanEdit()
      Returns if this Online Event can be edited.
      Returns:
      TRUE if the Online Event can be edited, otherwise FALSE
    • getCanBalance

      public boolean getCanBalance()
      Returns if Signups can be balanced for this Online Event.
      Returns:
      TRUE if signups can be balanced, otherwise FALSE
    • getCanAssignFlights

      public boolean getCanAssignFlights()
      Returns if Flight Assignments can be made for this Online Event.
      Returns:
      TRUE if Assignments can be made, otherwise FALSE
    • getCanCancel

      public boolean getCanCancel()
      Returns if this Online Event can be canceled.
      Returns:
      TRUE if the Online Event can be canceled, otherwise FALSE
    • getCanDelete

      public boolean getCanDelete()
      Returns if this Online Event can be deleted.
      Returns:
      TRUE if the Online Event can be deleted, otherwise FALSE
    • getCanViewFeedback

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

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