|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PermissionContext
Represents the context in which a permission evaluation is to be made. Permission requests are of the form: subject, verb, object (eg. "User fred wishes to comment on ABC-123"), where: subject = User object verb = permission Id object = Issue, project etc. A PermissionContext encapsulates the object.
To create PermissionContext objects, use the PermissionContextFactory
PermissionContextFactory
Method Summary | |
---|---|
Issue |
getIssue()
|
org.ofbiz.core.entity.GenericValue |
getProject()
Deprecated. Use getProjectObject() instead. Since v5.0. |
Project |
getProjectObject()
Returns the Project in this context. |
com.opensymphony.workflow.loader.StepDescriptor |
getRelevantStepDescriptor()
Returns the relevant workflow step for the Issue in this context |
Status |
getStatus()
|
boolean |
hasIssuePermissions()
Whether we have enough information to look up issue-specific (workflow) permissions. |
boolean |
isHasCreatedIssue()
Deprecated. Use hasIssuePermissions() instead. Since v5.0. |
Method Detail |
---|
org.ofbiz.core.entity.GenericValue getProject()
getProjectObject()
instead. Since v5.0.
Project getProjectObject()
Issue getIssue()
boolean isHasCreatedIssue()
hasIssuePermissions()
instead. Since v5.0.
Status getStatus()
com.opensymphony.workflow.loader.StepDescriptor getRelevantStepDescriptor()
boolean hasIssuePermissions()
True if this PermissionContext has an existing fully-formed issue (not one that is still being created).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |