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 AccessControl
_ctx -
Constructor Summary
ConstructorsConstructorDescriptionIssueAccessControl(SecurityContext ctx, Issue i) Creates a new Access Controller. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns if a new Issue Comment can be created.booleanReturns if a new Issue can be created.booleanReturns if the Issue can be Edited.booleanReturns if the Issue can be read.booleanReturns if the Issue can be Reassigned.booleanReturns if the Issue can be Resolved.voidvalidate()Calculates access control rightsMethods inherited from class 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:AccessControlCalculates access control rights- Specified by:
validatein 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
-