com.flexive.shared.workflow
Class RouteEdit

java.lang.Object
  extended by com.flexive.shared.workflow.Route
      extended by com.flexive.shared.workflow.RouteEdit
All Implemented Interfaces:
java.io.Serializable

public class RouteEdit
extends Route
implements java.io.Serializable

Editable route class.

Author:
Daniel Lichtenberger (daniel.lichtenberger@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)
See Also:
Route, Serialized Form

Field Summary
 
Fields inherited from class com.flexive.shared.workflow.Route
fromStepId, groupId, id, toStepId
 
Constructor Summary
RouteEdit()
          Default constructor.
RouteEdit(long userGroupId, long fromStepId, long toStepId)
          Ctor to create a new route
RouteEdit(Route route)
          Constructor
 
Method Summary
static RouteEdit createNew(long userGroupId, long fromStepId, long toStepId)
          Convenience method to create a new route
 void setFromStepId(long fromStepId)
          Sets the source step of the route.
 void setGroupId(long groupId)
          Sets the group ID of the route.
 void setId(long id)
          Sets the unique ID of the route.
 void setToStepId(long toStepId)
          Sets the destination step ID of the route.
 
Methods inherited from class com.flexive.shared.workflow.Route
equals, getFromStepId, getGroupId, getId, getToStepId, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RouteEdit

public RouteEdit(Route route)
Constructor

Parameters:
route - source route

RouteEdit

public RouteEdit()
Default constructor.


RouteEdit

public RouteEdit(long userGroupId,
                 long fromStepId,
                 long toStepId)
Ctor to create a new route

Parameters:
userGroupId - user group
fromStepId - from step
toStepId - to step
Method Detail

setFromStepId

public void setFromStepId(long fromStepId)
Sets the source step of the route.

Parameters:
fromStepId - the source step of the route.

setGroupId

public void setGroupId(long groupId)
Sets the group ID of the route.

Parameters:
groupId - the group ID of the route.

setId

public void setId(long id)
Sets the unique ID of the route.

Parameters:
id - the unique ID of the route.

setToStepId

public void setToStepId(long toStepId)
Sets the destination step ID of the route.

Parameters:
toStepId - the destination step ID of the route.

createNew

public static RouteEdit createNew(long userGroupId,
                                  long fromStepId,
                                  long toStepId)
Convenience method to create a new route

Parameters:
userGroupId - user group
fromStepId - from step
toStepId - to step
Returns:
RouteEdit