Class WorkingUser
- java.lang.Object
-
- org.silverpeas.core.persistence.datasource.model.jpa.AbstractJpaEntity<E,I>
-
- org.silverpeas.core.persistence.datasource.model.jpa.BasicJpaEntity<WorkingUser,UniqueIntegerIdentifier>
-
- org.silverpeas.core.workflow.engine.instance.WorkingUser
-
- All Implemented Interfaces:
Serializable
,IdentifiableEntity
@Entity public class WorkingUser extends BasicJpaEntity<WorkingUser,UniqueIntegerIdentifier>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WorkingUser()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object theOther)
String
getGroupId()
ProcessInstanceImpl
getProcessInstance()
Get the instance for which user is affectedString
getRole()
Get state role for which user is affectedList<String>
getRoles()
Get state role for which user is affectedString
getState()
Get state name for which user is affectedString
getUserId()
Get the user idString
getUsersRole()
Get the user roleint
hashCode()
void
setGroupId(String groupId)
void
setProcessInstance(ProcessInstanceImpl processInstance)
Set the instance for which user is affectedvoid
setRole(String role)
Set state role for which user is affectedvoid
setState(String state)
Set state name for which user is affectedvoid
setUserId(String userId)
Set the user idvoid
setUsersRole(String usersRole)
Set the user roleCollection<Actor>
toActors()
Converts WorkingUser to Actorsstatic User[]
toUser(WorkingUser[] workingUsers)
Get User information from an array of workingUsers-
Methods inherited from class org.silverpeas.core.persistence.datasource.model.jpa.BasicJpaEntity
performBeforePersist, performBeforeRemove, performBeforeUpdate
-
Methods inherited from class org.silverpeas.core.persistence.datasource.model.jpa.AbstractJpaEntity
getId, getNativeId, isPersisted, setId
-
-
-
-
Method Detail
-
getState
public String getState()
Get state name for which user is affected- Returns:
- state name
-
setState
public void setState(String state)
Set state name for which user is affected- Parameters:
state
- state name
-
getRole
public String getRole()
Get state role for which user is affected- Returns:
- state role
-
getRoles
public List<String> getRoles()
Get state role for which user is affected- Returns:
- state role
-
setRole
public void setRole(String role)
Set state role for which user is affected- Parameters:
role
- state role
-
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 for which user is affected- Returns:
- instance
-
setProcessInstance
public void setProcessInstance(ProcessInstanceImpl processInstance)
Set the instance for which user is affected- Parameters:
processInstance
- instance
-
toActors
public Collection<Actor> toActors() throws WorkflowException
Converts WorkingUser to Actors- Returns:
- an object implementing Actor interface
- Throws:
WorkflowException
-
toUser
public static User[] toUser(WorkingUser[] workingUsers) 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
-
equals
public boolean equals(Object theOther)
- Overrides:
equals
in classAbstractJpaEntity<WorkingUser,UniqueIntegerIdentifier>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractJpaEntity<WorkingUser,UniqueIntegerIdentifier>
-
-