Class CertificationAccessControl

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

public class CertificationAccessControl extends AccessControl
An Access Controller for Flight Academy certification profiles.
Since:
1.0
Version:
7.0
Author:
Luke
See Also:
  • Constructor Details

    • CertificationAccessControl

      public CertificationAccessControl(SecurityContext ctx)
      Creates the Access Controller.
      Parameters:
      ctx - the security context
  • Method Details

    • validate

      public void validate()
      Calculates access rights.
      Specified by:
      validate in class AccessControl
    • 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