Class IssueAccessControl
java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.IssueAccessControl
- All Implemented Interfaces:
Serializable
An Access Controller for Issue Tracking.
- Since:
- 1.0
- Version:
- 11.0
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class org.deltava.security.command.AccessControl
_ctx
-
Constructor Summary
ConstructorsConstructorDescriptionIssueAccessControl
(SecurityContext ctx, Issue i) Creates a new Access Controller. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns if a new Issue Comment can be created.boolean
Returns if a new Issue can be created.boolean
Returns if the Issue can be Edited.boolean
Returns if the Issue can be read.boolean
Returns if the Issue can be Reassigned.boolean
Returns if the Issue can be Resolved.void
validate()
Calculates access control rightsMethods inherited from class org.deltava.security.command.AccessControl
validateContext
-
Constructor Details
-
IssueAccessControl
Creates a new Access Controller.- Parameters:
ctx
- the Command contexti
- the Issue
-
-
Method Details
-
validate
public void validate()Description copied from class:AccessControl
Calculates access control rights- Specified by:
validate
in classAccessControl
-
getCanCreate
public boolean getCanCreate()Returns if a new Issue can be created.- Returns:
- TRUE if a new Issue can be created, otherwise FALSE
-
getCanRead
public boolean getCanRead()Returns if the Issue can be read.- Returns:
- TRUE if the user can read the Issue, otherwise FALSE
-
getCanComment
public boolean getCanComment()Returns if a new Issue Comment can be created.- Returns:
- TRUE if a new Issue Comment can be created, otherwise FALSE
-
getCanEdit
public boolean getCanEdit()Returns if the Issue can be Edited.- Returns:
- TRUE if the Issue can be edited, otherwise FALSE
-
getCanResolve
public boolean getCanResolve()Returns if the Issue can be Resolved.- Returns:
- TRUE if the Issue can be resolved, otherwise FALSE
-
getCanReassign
public boolean getCanReassign()Returns if the Issue can be Reassigned.- Returns:
- TRUE if the Issue can be reassigned, otherwise FALSE
-