Class EventAccessControl
java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.EventAccessControl
- All Implemented Interfaces:
Serializable
An Access Controller for Online Events.
- Since:
- 1.0
- Version:
- 11.6
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class org.deltava.security.command.AccessControl
_ctx
-
Constructor Summary
ConstructorsConstructorDescriptionEventAccessControl
(SecurityContext ctx, Event e) Initializes the Access Controller. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns if Flight Assignments can be made for this Online Event.boolean
Returns if Signups can be balanced for this Online Event.boolean
Returns if this Online Event can be canceled.boolean
Returns if a new Online Event can be created.boolean
Returns if this Online Event can be deleted.boolean
Returns if this Online Event can be edited.boolean
Returns if this User can provide feedback about this Online Event.boolean
Returns if a new Signup for this Online Event can be created.boolean
Returns if this User can view feedback about this Online Event.void
validate()
Calculates access rights.Methods inherited from class org.deltava.security.command.AccessControl
validateContext
-
Constructor Details
-
EventAccessControl
Initializes the Access Controller.- Parameters:
ctx
- the Command contexte
- the Online Event
-
-
Method Details
-
validate
-
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
-