|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.infoglue.cms.util.workflow.OwnerStepFilter
public class OwnerStepFilter
Filters steps according to owner. If a step has no owner, it is assumed that anyone can view it. An administrator can view all steps regardless of owner.
| Constructor Summary | |
|---|---|
OwnerStepFilter()
Constructs an OwnerStepFilter from the user associated with the current session/action context |
|
OwnerStepFilter(InfoGluePrincipal userPrincipal)
Constructs an owner step filter with the given user principal |
|
| Method Summary | |
|---|---|
protected InfoGluePrincipal |
getUserPrincipal()
|
boolean |
isAllowed(WorkflowStepVO step)
Indicates whether the step is allowed |
protected boolean |
isUserAdministrator()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OwnerStepFilter()
public OwnerStepFilter(InfoGluePrincipal userPrincipal)
userPrincipal - an InfoGluePrincipal representing a user| Method Detail |
|---|
public boolean isAllowed(WorkflowStepVO step)
isAllowed in interface StepFilterstep - a workflow step.
protected boolean isUserAdministrator()
protected InfoGluePrincipal getUserPrincipal()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||