com.flexive.shared.workflow
Class StepPermission

java.lang.Object
  extended by com.flexive.shared.workflow.StepPermission
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
StepPermissionEdit

public class StepPermission
extends java.lang.Object
implements java.io.Serializable

Class storing a step and its permissions.

Author:
Gregor Schober (gregor.schober@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)
See Also:
Serialized Form

Field Summary
protected  boolean mayCreate
           
protected  boolean mayDelete
           
protected  boolean mayEdit
           
protected  boolean mayExport
           
protected  boolean mayRead
           
protected  boolean mayRelate
           
protected  long step
           
protected  long stepDefId
           
protected  long workflow
           
 
Constructor Summary
protected StepPermission()
          Protected default constructor.
  StepPermission(long stepId, long stepDefId, long workflowId, boolean read, boolean edit, boolean relate, boolean delete, boolean export, boolean create)
          Constructor.
 
Method Summary
 boolean getMayCreate()
          Return true if the StepPermission grants create permission.
 boolean getMayDelete()
          Return true if the StepPermissiom grants unassign permission.
 boolean getMayEdit()
          Return true if the StepPermissiom grants edit permission.
 boolean getMayExport()
          Return true if the StepPermissiom grants export permission.
 boolean getMayRead()
          Return true if the StepPermissiom grants read permission.
 boolean getMayRelate()
          Return true if the StepPermissiom grants relate permission.
 long getStepDefId()
          Returns the id of the stepDefinition this step belongs to.
 long getStepId()
          Returns the id of the step.
 long getWorkflowId()
          Returns the id of the workflow the step belongs to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

step

protected long step

mayRead

protected boolean mayRead

mayEdit

protected boolean mayEdit

mayRelate

protected boolean mayRelate

mayDelete

protected boolean mayDelete

mayExport

protected boolean mayExport

mayCreate

protected boolean mayCreate

stepDefId

protected long stepDefId

workflow

protected long workflow
Constructor Detail

StepPermission

public StepPermission(long stepId,
                      long stepDefId,
                      long workflowId,
                      boolean read,
                      boolean edit,
                      boolean relate,
                      boolean delete,
                      boolean export,
                      boolean create)
Constructor.

Parameters:
stepId - the step id
stepDefId - the step definition ID
workflowId - the workflow id
read - the read permission
edit - the edit permission
relate - the relate permission
delete - the delete permission
export - the export permission
create - the create permission

StepPermission

protected StepPermission()
Protected default constructor.

Method Detail

getStepId

public long getStepId()
Returns the id of the step.

Returns:
the id of the step.

getStepDefId

public long getStepDefId()
Returns the id of the stepDefinition this step belongs to.

Returns:
the id of the stepDefinition this step belongs to.

getWorkflowId

public long getWorkflowId()
Returns the id of the workflow the step belongs to.

Returns:
the id of the workflow the step belongs to.

getMayRead

public boolean getMayRead()
Return true if the StepPermissiom grants read permission.

Returns:
true if the StepPermissiom grants read permission.

getMayEdit

public boolean getMayEdit()
Return true if the StepPermissiom grants edit permission.

Returns:
true if the StepPermissiom grants edit permission.

getMayRelate

public boolean getMayRelate()
Return true if the StepPermissiom grants relate permission.

Returns:
true if the StepPermissiom grants relate permission.

getMayDelete

public boolean getMayDelete()
Return true if the StepPermissiom grants unassign permission.

Returns:
true if the StepPermissiom grants unassign permission.

getMayExport

public boolean getMayExport()
Return true if the StepPermissiom grants export permission.

Returns:
true if the StepPermissiom grants export permission.

getMayCreate

public boolean getMayCreate()
Return true if the StepPermission grants create permission.

Returns:
true if the StepPermission grants create permission.