Class QuestionProfileAccessControl

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

public class QuestionProfileAccessControl extends AccessControl
An Access Controller for Examination Question Profiles.
Since:
1.0
Version:
9.1
Author:
Luke
See Also:
  • Constructor Details

    • QuestionProfileAccessControl

      public QuestionProfileAccessControl(SecurityContext ctx, QuestionProfile qp)
      Initializes the Access Controller.
      Parameters:
      ctx - the command context
      qp - the QuestionProfile
  • Method Details

    • validate

      public void validate() throws AccessControlException
      Calculates access rights.
      Specified by:
      validate in class AccessControl
      Throws:
      AccessControlException - if the user cannot read the profile
    • getCanRead

      public boolean getCanRead()
      Returns if the profile can be viewed.
      Returns:
      TRUE if it can be viewed, otherwise FALSE
    • getCanCreate

      public boolean getCanCreate()
      Returns if a new profile can be created.
      Returns:
      TRUE if a new Question can be created, otherwise FALSE
    • getCanEdit

      public boolean getCanEdit()
      Returns if the profile can be edited.
      Returns:
      TRUE if it can be edited, otherwise FALSE
    • getCanInclude

      public boolean getCanInclude()
      Returns if the profile can be included in an Examination.
      Returns:
      TRUE if it can be included, otherwise FALSE
    • getCanDelete

      public boolean getCanDelete()
      Returns if the profile can be deleted.
      Returns:
      TRUE if it can be deleted, otherwise FALSE