Class CourseAccessControl
java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.CourseAccessControl
- All Implemented Interfaces:
- Serializable
An Access Controller for Flight Academy Course profiles.
- Since:
- 1.0
- Version:
- 10.1
- Author:
- Luke
- See Also:
- 
Field SummaryFields inherited from class org.deltava.security.command.AccessControl_ctx
- 
Constructor SummaryConstructorsConstructorDescriptionCourseAccessControl(SecurityContext ctx, Course c) Initializes the Access Controller.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanReturns if the user can approve completion of the Course.booleanReturns if the user can assign a Check Ride for this Course.booleanReturns if the user can assign an Instructor to this Course.booleanReturns if the user can cancel the Course.booleanReturns if the user can add a comment to the Course.booleanReturns if the user can delete the Course.booleanReturns if the user can restart the Course.booleanReturns if the user can schedule a training session.booleanReturns if the user can start the Course.booleanReturns if the user can update Course Progress.voidSets the Certification, used for validating Online courses.voidvalidate()Calculates access rights.Methods inherited from class org.deltava.security.command.AccessControlvalidateContext
- 
Constructor Details- 
CourseAccessControlInitializes the Access Controller.- Parameters:
- ctx- the security context
- c- the Course bean
 
 
- 
- 
Method Details- 
setCertificationSets the Certification, used for validating Online courses.- Parameters:
- crt- the Certification bean
 
- 
validateCalculates access rights.- Specified by:
- validatein class- AccessControl
- Throws:
- AccessControlException- if the user cannot view the data
 
- 
getCanCommentpublic boolean getCanComment()Returns if the user can add a comment to the Course.- Returns:
- TRUE if a comment can be added, otherwise FALSE
 
- 
getCanUpdateProgresspublic boolean getCanUpdateProgress()Returns if the user can update Course Progress.- Returns:
- TRUE if progress can be edited, otherwise FALSE
 
- 
getCanStartpublic boolean getCanStart()Returns if the user can start the Course.- Returns:
- TRUE if the course can be started, otherwise FALSE
 
- 
getCanCancelpublic boolean getCanCancel()Returns if the user can cancel the Course.- Returns:
- TRUE if the Course can be canceled, otherwise FALSE
 
- 
getCanRestartpublic boolean getCanRestart()Returns if the user can restart the Course.- Returns:
- TRUE if the Course can be restarted, otherwise FALSE
 
- 
getCanSchedulepublic boolean getCanSchedule()Returns if the user can schedule a training session.- Returns:
- TRUE if a Session can be scheduled, otherwise FALSE
 
- 
getCanAssignInstructorpublic boolean getCanAssignInstructor()Returns if the user can assign an Instructor to this Course.- Returns:
- TRUE if an Instructor can be assigned, otherwise FALSE
 
- 
getCanAssignCheckRidepublic boolean getCanAssignCheckRide()Returns if the user can assign a Check Ride for this Course.- Returns:
- TRUE if a Check Ride can be assigned, otherwise FALSE
 
- 
getCanApprovepublic boolean getCanApprove()Returns if the user can approve completion of the Course.- Returns:
- TRUE if the Course can be marked complete, otherwise FALSE
 
- 
getCanDeletepublic boolean getCanDelete()Returns if the user can delete the Course.- Returns:
- TRUE if the Course can be deleted, otherwise FALSE
 
 
-