Class HistoryStepImpl
- java.lang.Object
-
- org.silverpeas.core.persistence.datasource.model.jpa.AbstractJpaEntity<E,I>
-
- org.silverpeas.core.persistence.datasource.model.jpa.BasicJpaEntity<HistoryStepImpl,UniqueIntegerIdentifier>
-
- org.silverpeas.core.workflow.engine.instance.HistoryStepImpl
-
- All Implemented Interfaces:
Serializable
,Comparable<HistoryStep>
,IdentifiableEntity
,HistoryStep
,UpdatableHistoryStep
@Entity public class HistoryStepImpl extends BasicJpaEntity<HistoryStepImpl,UniqueIntegerIdentifier> implements UpdatableHistoryStep, Comparable<HistoryStep>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HistoryStepImpl()
Default constructorHistoryStepImpl(int id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(HistoryStep anotherStep)
void
deleteActionRecord()
Delete the data associated to this step.boolean
equals(Object o)
String
getAction()
Get the action name logged in this History stepDate
getActionDate()
Get the date when the action has been doneDataRecord
getActionRecord()
Get the data associated to this step.ActionStatus
getActionStatus()
Get the resulting status of action logged in this history stepProcessInstance
getProcessInstance()
Get the process instanceString
getResolvedState()
Get the name of state that has been resolvedString
getResultingState()
Get the name of state that has been resolvedString
getSubstituteId()
User
getUser()
Get the actor of the action logged in this History stepString
getUserId()
Get the actor id of the action logged in this History stepString
getUserRoleName()
Get the role under which the user did the actionint
hashCode()
void
setAction(String action)
Set the action name logged in this History stepvoid
setActionDate(Date actionDate)
Set the date when the action has been donevoid
setActionRecord(DataRecord data)
Set the data associated to this step.void
setActionStatus(ActionStatus actionStatus)
Set the resulting status of action logged in this history stepvoid
setProcessInstance(ProcessInstance processInstance)
Set the process instancevoid
setResolvedState(String state)
Set the name of state that has been resolvedvoid
setResultingState(String state)
Set the name of state that must result from logged actionvoid
setSubstituteId(String substituteId)
void
setUserId(String userId)
Set the actor id of the action logged in this History stepvoid
setUserRoleName(String userRoleName)
Set the role under which the user did the action-
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
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.silverpeas.core.workflow.api.instance.HistoryStep
getId
-
-
-
-
Method Detail
-
getProcessInstance
public ProcessInstance getProcessInstance()
Get the process instance- Specified by:
getProcessInstance
in interfaceHistoryStep
- Returns:
- process instance
-
setProcessInstance
public void setProcessInstance(ProcessInstance processInstance)
Set the process instance- Specified by:
setProcessInstance
in interfaceUpdatableHistoryStep
- Parameters:
processInstance
- process instance
-
getUser
public User getUser() throws WorkflowException
Get the actor of the action logged in this History step- Specified by:
getUser
in interfaceHistoryStep
- Returns:
- the actor
- Throws:
WorkflowException
-
getUserId
public String getUserId()
Get the actor id of the action logged in this History step- Returns:
- the actor id
-
setUserId
public void setUserId(String userId)
Set the actor id of the action logged in this History step- Specified by:
setUserId
in interfaceUpdatableHistoryStep
- Parameters:
userId
- the actor id
-
getUserRoleName
public String getUserRoleName()
Get the role under which the user did the action- Specified by:
getUserRoleName
in interfaceHistoryStep
- Returns:
- the role's name
-
setUserRoleName
public void setUserRoleName(String userRoleName)
Set the role under which the user did the action- Specified by:
setUserRoleName
in interfaceUpdatableHistoryStep
- Parameters:
userRoleName
- the role's name
-
getAction
public String getAction()
Get the action name logged in this History step- Specified by:
getAction
in interfaceHistoryStep
- Returns:
- the action name
-
setAction
public void setAction(String action)
Set the action name logged in this History step- Specified by:
setAction
in interfaceUpdatableHistoryStep
- Parameters:
action
- the action name
-
getActionDate
public Date getActionDate()
Get the date when the action has been done- Specified by:
getActionDate
in interfaceHistoryStep
- Returns:
- the action date
-
setActionDate
public void setActionDate(Date actionDate)
Set the date when the action has been done- Specified by:
setActionDate
in interfaceUpdatableHistoryStep
- Parameters:
actionDate
- the action date
-
getResolvedState
public String getResolvedState()
Get the name of state that has been resolved- Specified by:
getResolvedState
in interfaceHistoryStep
- Returns:
- the resolved state name
-
setResolvedState
public void setResolvedState(String state)
Set the name of state that has been resolved- Specified by:
setResolvedState
in interfaceUpdatableHistoryStep
- Parameters:
state
- the resolved state name
-
getResultingState
public String getResultingState()
Get the name of state that has been resolved- Specified by:
getResultingState
in interfaceHistoryStep
- Returns:
- the resolved state name
-
setResultingState
public void setResultingState(String state)
Set the name of state that must result from logged action- Specified by:
setResultingState
in interfaceUpdatableHistoryStep
- Parameters:
state
- state name
-
getActionStatus
public ActionStatus getActionStatus()
Get the resulting status of action logged in this history step- Specified by:
getActionStatus
in interfaceHistoryStep
- Returns:
- action status
-
setActionStatus
public void setActionStatus(ActionStatus actionStatus)
Set the resulting status of action logged in this history step- Specified by:
setActionStatus
in interfaceUpdatableHistoryStep
- Parameters:
actionStatus
- action status
-
getSubstituteId
public String getSubstituteId()
- Specified by:
getSubstituteId
in interfaceHistoryStep
- Returns:
- the optional substitute
-
setSubstituteId
public void setSubstituteId(String substituteId)
- Specified by:
setSubstituteId
in interfaceUpdatableHistoryStep
-
getActionRecord
public DataRecord getActionRecord() throws WorkflowException
Get the data associated to this step. Returns null if there is no form associated to the action- Specified by:
getActionRecord
in interfaceHistoryStep
- Throws:
WorkflowException
-
setActionRecord
public void setActionRecord(DataRecord data) throws WorkflowException
Set the data associated to this step.- Specified by:
setActionRecord
in interfaceHistoryStep
- Throws:
WorkflowException
-
deleteActionRecord
public void deleteActionRecord() throws WorkflowException
Delete the data associated to this step.- Specified by:
deleteActionRecord
in interfaceHistoryStep
- Throws:
WorkflowException
-
compareTo
public int compareTo(HistoryStep anotherStep)
- Specified by:
compareTo
in interfaceComparable<HistoryStep>
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classAbstractJpaEntity<HistoryStepImpl,UniqueIntegerIdentifier>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractJpaEntity<HistoryStepImpl,UniqueIntegerIdentifier>
-
-