Class HelpDeskAccessControl
java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.HelpDeskAccessControl
- All Implemented Interfaces:
Serializable
An Access Controller for Help Desk Issues.
- Since:
- 1.0
- Version:
- 11.1
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class AccessControl
_ctx -
Constructor Summary
ConstructorsConstructorDescriptionInitializes the Access Controller. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether this Issue can have its status changed to Closed.booleanReturns whether the user can add a comment to this Issue.booleanReturns whether the user can convert the Issue to a Development Issue.booleanReturns whether the user can create a new Help Desk Issue.booleanReturns whether this Issue can have its FAQ status or Comments changed.booleanReturns whether this Issue can have its status changed.booleanReturns whether the user can modify a Help Desk Response Template.booleanReturns whether the user can use a Help Desk Response Template.voidvalidate()Calculates access rights.Methods inherited from class AccessControl
validateContext
-
Constructor Details
-
HelpDeskAccessControl
Initializes the Access Controller.- Parameters:
ctx- the Security Contexti- the Issue bean
-
-
Method Details
-
validate
Calculates access rights.- Specified by:
validatein classAccessControl- 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
-