Class HelpDeskAccessControl

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

public class HelpDeskAccessControl extends AccessControl
An Access Controller for Help Desk Issues.
Since:
1.0
Version:
11.1
Author:
Luke
See Also:
  • Constructor Details

    • HelpDeskAccessControl

      public HelpDeskAccessControl(SecurityContext ctx, Issue i)
      Initializes the Access Controller.
      Parameters:
      ctx - the Security Context
      i - the Issue bean
  • Method Details

    • validate

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

      public boolean getCanCreate()
      Returns whether the user can create a new Help Desk Issue.
      Returns:
      TRUE if a new Issue can be created, otherwise FALSE
    • getCanComment

      public boolean getCanComment()
      Returns whether the user can add a comment to this Issue.
      Returns:
      TRUE if a Comment can be created, otherwise FALSE
    • getCanUpdateStatus

      public boolean getCanUpdateStatus()
      Returns whether this Issue can have its status changed.
      Returns:
      TRUE if the status can be changed, otherwise FALSE
    • getCanClose

      public boolean getCanClose()
      Returns whether this Issue can have its status changed to Closed.
      Returns:
      TRUE if the status can be changed, otherwise FALSE
    • getCanUpdateContent

      public boolean getCanUpdateContent()
      Returns whether this Issue can have its FAQ status or Comments changed.
      Returns:
      TRUE if the content can be modified, otherwise FALSE
    • getCanConvert

      public boolean getCanConvert()
      Returns whether the user can convert the Issue to a Development Issue.
      Returns:
      TRUE if the Issue can be converted, otherwise FALSE
    • getCanUpdateTemplate

      public boolean getCanUpdateTemplate()
      Returns whether the user can modify a Help Desk Response Template.
      Returns:
      TRUE if a template can be modified, otherwise FALSE
    • getCanUseTemplate

      public boolean getCanUseTemplate()
      Returns whether the user can use a Help Desk Response Template.
      Returns:
      TRUE if a template can be used, otherwise FALSE