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 intcompareTo(HistoryStep anotherStep)voiddeleteActionRecord()Delete the data associated to this step.booleanequals(Object o)StringgetAction()Get the action name logged in this History stepDategetActionDate()Get the date when the action has been doneDataRecordgetActionRecord()Get the data associated to this step.ActionStatusgetActionStatus()Get the resulting status of action logged in this history stepProcessInstancegetProcessInstance()Get the process instanceStringgetResolvedState()Get the name of state that has been resolvedStringgetResultingState()Get the name of state that has been resolvedStringgetSubstituteId()UsergetUser()Get the actor of the action logged in this History stepStringgetUserId()Get the actor id of the action logged in this History stepStringgetUserRoleName()Get the role under which the user did the actioninthashCode()voidsetAction(String action)Set the action name logged in this History stepvoidsetActionDate(Date actionDate)Set the date when the action has been donevoidsetActionRecord(DataRecord data)Set the data associated to this step.voidsetActionStatus(ActionStatus actionStatus)Set the resulting status of action logged in this history stepvoidsetProcessInstance(ProcessInstance processInstance)Set the process instancevoidsetResolvedState(String state)Set the name of state that has been resolvedvoidsetResultingState(String state)Set the name of state that must result from logged actionvoidsetSubstituteId(String substituteId)voidsetUserId(String userId)Set the actor id of the action logged in this History stepvoidsetUserRoleName(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:
getProcessInstancein interfaceHistoryStep- Returns:
- process instance
-
setProcessInstance
public void setProcessInstance(ProcessInstance processInstance)
Set the process instance- Specified by:
setProcessInstancein interfaceUpdatableHistoryStep- Parameters:
processInstance- process instance
-
getUser
public User getUser() throws WorkflowException
Get the actor of the action logged in this History step- Specified by:
getUserin 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:
setUserIdin interfaceUpdatableHistoryStep- Parameters:
userId- the actor id
-
getUserRoleName
public String getUserRoleName()
Get the role under which the user did the action- Specified by:
getUserRoleNamein interfaceHistoryStep- Returns:
- the role's name
-
setUserRoleName
public void setUserRoleName(String userRoleName)
Set the role under which the user did the action- Specified by:
setUserRoleNamein interfaceUpdatableHistoryStep- Parameters:
userRoleName- the role's name
-
getAction
public String getAction()
Get the action name logged in this History step- Specified by:
getActionin interfaceHistoryStep- Returns:
- the action name
-
setAction
public void setAction(String action)
Set the action name logged in this History step- Specified by:
setActionin interfaceUpdatableHistoryStep- Parameters:
action- the action name
-
getActionDate
public Date getActionDate()
Get the date when the action has been done- Specified by:
getActionDatein interfaceHistoryStep- Returns:
- the action date
-
setActionDate
public void setActionDate(Date actionDate)
Set the date when the action has been done- Specified by:
setActionDatein interfaceUpdatableHistoryStep- Parameters:
actionDate- the action date
-
getResolvedState
public String getResolvedState()
Get the name of state that has been resolved- Specified by:
getResolvedStatein interfaceHistoryStep- Returns:
- the resolved state name
-
setResolvedState
public void setResolvedState(String state)
Set the name of state that has been resolved- Specified by:
setResolvedStatein interfaceUpdatableHistoryStep- Parameters:
state- the resolved state name
-
getResultingState
public String getResultingState()
Get the name of state that has been resolved- Specified by:
getResultingStatein 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:
setResultingStatein interfaceUpdatableHistoryStep- Parameters:
state- state name
-
getActionStatus
public ActionStatus getActionStatus()
Get the resulting status of action logged in this history step- Specified by:
getActionStatusin interfaceHistoryStep- Returns:
- action status
-
setActionStatus
public void setActionStatus(ActionStatus actionStatus)
Set the resulting status of action logged in this history step- Specified by:
setActionStatusin interfaceUpdatableHistoryStep- Parameters:
actionStatus- action status
-
getSubstituteId
public String getSubstituteId()
- Specified by:
getSubstituteIdin interfaceHistoryStep- Returns:
- the optional substitute
-
setSubstituteId
public void setSubstituteId(String substituteId)
- Specified by:
setSubstituteIdin 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:
getActionRecordin interfaceHistoryStep- Throws:
WorkflowException
-
setActionRecord
public void setActionRecord(DataRecord data) throws WorkflowException
Set the data associated to this step.- Specified by:
setActionRecordin interfaceHistoryStep- Throws:
WorkflowException
-
deleteActionRecord
public void deleteActionRecord() throws WorkflowExceptionDelete the data associated to this step.- Specified by:
deleteActionRecordin interfaceHistoryStep- Throws:
WorkflowException
-
compareTo
public int compareTo(HistoryStep anotherStep)
- Specified by:
compareToin interfaceComparable<HistoryStep>
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classAbstractJpaEntity<HistoryStepImpl,UniqueIntegerIdentifier>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractJpaEntity<HistoryStepImpl,UniqueIntegerIdentifier>
-
-