Class ActiveState
- java.lang.Object
-
- org.silverpeas.core.persistence.datasource.model.jpa.AbstractJpaEntity<E,I>
-
- org.silverpeas.core.persistence.datasource.model.jpa.BasicJpaEntity<ActiveState,UniqueIntegerIdentifier>
-
- org.silverpeas.core.workflow.engine.instance.ActiveState
-
- All Implemented Interfaces:
Serializable
,IdentifiableEntity
@Entity public class ActiveState extends BasicJpaEntity<ActiveState,UniqueIntegerIdentifier>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ActiveState()
Default ConstructorActiveState(int id)
ActiveState(String state)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object theOther)
boolean
getBackStatus()
Get the status regarding a possible undo processString
getKey()
This method has to be implemented by the referrable object it has to compute the unique keyProcessInstanceImpl
getProcessInstance()
Get the instance for which user is affectedString
getState()
Get state nameDate
getTimeoutDate()
Get the date at which current state will be in timeoutint
getTimeoutStatus()
Get the timeout status of this active stateint
hashCode()
void
setBackStatus(boolean backStatus)
Set the status regarding a possible undo processvoid
setProcessInstance(ProcessInstanceImpl processInstance)
Set the instance for which user is affectedvoid
setState(String state)
Set state namevoid
setTimeoutDate(Date timeoutDate)
Set the date at which current state will be in timeoutvoid
setTimeoutStatus(int timeoutStatus)
Set the timeout status of this active state-
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
-
-
-
-
Constructor Detail
-
ActiveState
public ActiveState()
Default Constructor
-
ActiveState
public ActiveState(String state)
Constructor- Parameters:
state
- state name
-
ActiveState
public ActiveState(int id)
-
-
Method Detail
-
getState
public String getState()
Get state name- Returns:
- state name
-
setState
public void setState(String state)
Set state name- Parameters:
state
- state name
-
getBackStatus
public boolean getBackStatus()
Get the status regarding a possible undo process- Returns:
- true if state is active to be discussed
-
setBackStatus
public void setBackStatus(boolean backStatus)
Set the status regarding a possible undo process- Parameters:
backStatus
- true if state is active to be discussed
-
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
-
getTimeoutStatus
public int getTimeoutStatus()
Get the timeout status of this active state- Returns:
- true if this an active state is there for a long long time
-
setTimeoutDate
public void setTimeoutDate(Date timeoutDate)
Set the date at which current state will be in timeout- Parameters:
timeoutDate
- the timeout Date to set
-
getTimeoutDate
public Date getTimeoutDate()
Get the date at which current state will be in timeout- Returns:
- the timeout Date
-
setTimeoutStatus
public void setTimeoutStatus(int timeoutStatus)
Set the timeout status of this active state- Parameters:
timeoutStatus
- true if this active state is there for a long long time
-
getKey
public String getKey()
This method has to be implemented by the referrable object it has to compute the unique key- Returns:
- The unique key.
-
equals
public boolean equals(Object theOther)
- Overrides:
equals
in classAbstractJpaEntity<ActiveState,UniqueIntegerIdentifier>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractJpaEntity<ActiveState,UniqueIntegerIdentifier>
-
-