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 org.deltava.security.command.AccessControl
_ctx
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes the Access Controller. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether this Issue can have its status changed to Closed.boolean
Returns whether the user can add a comment to this Issue.boolean
Returns whether the user can convert the Issue to a Development Issue.boolean
Returns whether the user can create a new Help Desk Issue.boolean
Returns whether this Issue can have its FAQ status or Comments changed.boolean
Returns whether this Issue can have its status changed.boolean
Returns whether the user can modify a Help Desk Response Template.boolean
Returns whether the user can use a Help Desk Response Template.void
validate()
Calculates access rights.Methods inherited from class org.deltava.security.command.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:
validate
in 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
-