com.silverpeas.workflow.engine.instance
Class InterestedUser

java.lang.Object
  extended by com.silverpeas.workflow.engine.AbstractReferrableObject
      extended by com.silverpeas.workflow.engine.instance.InterestedUser
All Implemented Interfaces:
ReferrableObjectIntf

public class InterestedUser
extends AbstractReferrableObject


Constructor Summary
InterestedUser()
          Default Constructor
 
Method Summary
 String getGroupId()
           
 String getId()
          For persistence in database Get this object id
 String getKey()
          This method has to be implemented by the referrable object it has to compute the unique key
 ProcessInstanceImpl getProcessInstance()
          Get the instance to which user is interested
 String getRole()
          Get role name under which user can access to this instance
 String getState()
          Get state name for which user can access to this instance
 String getUserId()
          Get the user id
 String getUsersRole()
          Get the user role
 void setGroupId(String groupId)
           
 void setId(String id)
          For persistence in database Set this object id
 void setProcessInstance(ProcessInstanceImpl processInstance)
          Set the instance to which user is interested
 void setRole(String role)
          Set role name for which user is affected
 void setState(String state)
          Set state name for which user can access to this instance
 void setUserId(String userId)
          Set the user id
 void setUsersRole(String usersRole)
          Set the user role
 User toUser()
          Converts InterestedUser to User
static User[] toUser(InterestedUser[] interestedUsers)
          Get User information from an array of workingUsers
 
Methods inherited from class com.silverpeas.workflow.engine.AbstractReferrableObject
equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterestedUser

public InterestedUser()
Default Constructor

Method Detail

getId

public String getId()
For persistence in database Get this object id

Returns:
this object id

setId

public void setId(String id)
For persistence in database Set this object id

Parameters:
this - object id

getRole

public String getRole()
Get role name under which user can access to this instance

Returns:
role name

setRole

public void setRole(String role)
Set role name for which user is affected

Parameters:
role - role name

getState

public String getState()
Get state name for which user can access to this instance

Returns:
state name

setState

public void setState(String state)
Set state name for which user can access to this instance

Parameters:
state - state name

getUserId

public String getUserId()
Get the user id

Returns:
user id

setUserId

public void setUserId(String userId)
Set the user id

Parameters:
userId - user id

getUsersRole

public String getUsersRole()
Get the user role

Returns:
user role name

setUsersRole

public void setUsersRole(String usersRole)
Set the user role

Parameters:
usersRole - role

getGroupId

public String getGroupId()

setGroupId

public void setGroupId(String groupId)

getProcessInstance

public ProcessInstanceImpl getProcessInstance()
Get the instance to which user is interested

Returns:
instance

setProcessInstance

public void setProcessInstance(ProcessInstanceImpl processInstance)
Set the instance to which user is interested

Parameters:
processInstance - instance

toUser

public User toUser()
            throws WorkflowException
Converts InterestedUser to User

Returns:
an object implementing User interface and containing user details
Throws:
WorkflowException

toUser

public static User[] toUser(InterestedUser[] interestedUsers)
                     throws WorkflowException
Get User information from an array of workingUsers

Parameters:
workingUsers - an array of WorkingUser objects
Returns:
an array of objects implementing User interface and containing user details
Throws:
WorkflowException

getKey

public String getKey()
This method has to be implemented by the referrable object it has to compute the unique key

Specified by:
getKey in interface ReferrableObjectIntf
Specified by:
getKey in class AbstractReferrableObject
Returns:
The unique key.
See Also:
equals, hashCode


Copyright © 2016 Silverpeas. All Rights Reserved.