Class CertificationAccessControl
java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.CertificationAccessControl
- All Implemented Interfaces:
Serializable
An Access Controller for Flight Academy certification profiles.
- Since:
- 1.0
- Version:
- 7.0
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class org.deltava.security.command.AccessControl
_ctx
-
Constructor Summary
ConstructorsConstructorDescriptionCreates the Access Controller. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns if the user can create a new Certification profile.boolean
Returns if the user can create a Flight Academy training video.boolean
Returns if the user can delete a Certification profile or training video.boolean
Returns if the user can edit a Certification profile.boolean
Returns if the user can edit a Flight Academy training video.void
validate()
Calculates access rights.Methods inherited from class org.deltava.security.command.AccessControl
validateContext
-
Constructor Details
-
CertificationAccessControl
Creates the Access Controller.- Parameters:
ctx
- the security context
-
-
Method Details
-
validate
-
getCanCreate
public boolean getCanCreate()Returns if the user can create a new Certification profile.- Returns:
- TRUE if a profile can be created, otherwise FALSE
-
getCanEdit
public boolean getCanEdit()Returns if the user can edit a Certification profile.- Returns:
- TRUE if the profile can be edited, otherwise FALSE
-
getCanDelete
public boolean getCanDelete()Returns if the user can delete a Certification profile or training video.- Returns:
- TRUE if the profile can be deleted, otherwise FALSE
-
getCanCreateVideo
public boolean getCanCreateVideo()Returns if the user can create a Flight Academy training video.- Returns:
- TRUE if a video can be created, otherwise FALSE
-
getCanEditVideo
public boolean getCanEditVideo()Returns if the user can edit a Flight Academy training video.- Returns:
- TRUE if a video can be edited, otherwise FALSE
-