com.silverpeas.workflow.engine.instance
Class ActorImpl

java.lang.Object
  extended by com.silverpeas.workflow.engine.instance.ActorImpl
All Implemented Interfaces:
Actor
Direct Known Subclasses:
ParticipantImpl

public class ActorImpl
extends Object
implements Actor

A Actor object represents a person or a list of persons (through role or group) that can act on a state


Constructor Summary
ActorImpl(User user, String userRoleName, State state)
          Constructor Definitivly set the user, userRoleName and the state
ActorImpl(User user, String userRoleName, State state, String groupId)
           
 
Method Summary
 String getGroupId()
           
 State getState()
          get the name of the state for which the user was/may be an actor
 User getUser()
          Returns the actor as a User object
 String getUserRoleName()
          get the name of the role under which the user was/may be an actor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActorImpl

public ActorImpl(User user,
                 String userRoleName,
                 State state)
Constructor Definitivly set the user, userRoleName and the state

Parameters:
user - user aka the actor
userRoleName - name of the role under which the user was/may be an actor
state - state for which the user was/may be an actor

ActorImpl

public ActorImpl(User user,
                 String userRoleName,
                 State state,
                 String groupId)
Method Detail

getUser

public User getUser()
Returns the actor as a User object

Specified by:
getUser in interface Actor

getUserRoleName

public String getUserRoleName()
get the name of the role under which the user was/may be an actor

Specified by:
getUserRoleName in interface Actor
Returns:
the role's name

getState

public State getState()
get the name of the state for which the user was/may be an actor

Specified by:
getState in interface Actor
Returns:
the state as a State object

getGroupId

public String getGroupId()
Specified by:
getGroupId in interface Actor


Copyright © 2016 Silverpeas. All Rights Reserved.