|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.workflow.engine.instance.QuestionImpl
public class QuestionImpl
A Question object represents a question asked for the instance
Constructor Summary | |
---|---|
QuestionImpl()
default constructor used by Castor |
|
QuestionImpl(ProcessInstance processInstance,
String questionText,
String fromState,
String targetState,
User fromUser,
User toUser)
a Question object is build from - its content, - the source state name, - the target state name - and the instance where the question was asked |
Method Summary | |
---|---|
void |
answer(String responseText)
Answer this question |
State |
getFromState()
Get the state where the question was asked |
String |
getFromStateName()
Get the state where the question was asked |
User |
getFromUser()
Get the user who asked the question |
String |
getFromUserId()
Get the id of user who asked the question |
String |
getId()
Get the question id |
ProcessInstance |
getProcessInstance()
Get the process instance where the question was asked |
Date |
getQuestionDate()
Get the date when question was asked |
String |
getQuestionText()
Get the question content |
Date |
getResponseDate()
Get the date when question was asked |
String |
getResponseText()
Get the response content |
State |
getTargetState()
Get the destination state for the question |
String |
getTargetStateName()
Get the destination state for the question |
User |
getToUser()
Get the user who received the question |
String |
getToUserId()
Get the id of user who received the question |
boolean |
hasResponse()
Is a response was sent to this question |
boolean |
isRelevant()
Has this question been answered and taken in account, if yes, so it's not relevant anymore (return false) |
int |
isRelevantCastor()
|
void |
setFromStateName(String fromState)
Set the state where the question was asked |
void |
setFromUserId(String fromUserId)
Set the id of user who asked the question |
void |
setId(String id)
Set the question id |
void |
setProcessInstance(ProcessInstance processInstance)
Set the process instance where the question was asked |
void |
setQuestionDate(Date questionDate)
Set the date when question was asked |
void |
setQuestionText(String questionText)
Set the question content |
void |
setRelevant(boolean relevant)
Set the relevant status of this question |
void |
setRelevantCastor(int relevant)
|
void |
setResponseDate(Date responseDate)
Set the date when question was asked |
void |
setResponseText(String responseText)
Set the response content |
void |
setTargetStateName(String targetState)
Set the destination state for the question |
void |
setToUserId(String toUserId)
Set the id of user who received the question |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QuestionImpl()
public QuestionImpl(ProcessInstance processInstance, String questionText, String fromState, String targetState, User fromUser, User toUser)
Method Detail |
---|
public String getId()
getId
in interface Question
public void setId(String id)
public ProcessInstance getProcessInstance()
getProcessInstance
in interface Question
public void setProcessInstance(ProcessInstance processInstance)
public String getFromStateName()
public State getFromState()
getFromState
in interface Question
public void setFromStateName(String fromState)
public String getTargetStateName()
public State getTargetState()
getTargetState
in interface Question
public void setTargetStateName(String targetState)
public String getQuestionText()
getQuestionText
in interface Question
public void setQuestionText(String questionText)
public String getResponseText()
getResponseText
in interface Question
public void setResponseText(String responseText)
public void answer(String responseText)
answer
in interface Question
public void setFromUserId(String fromUserId)
public String getFromUserId()
public User getFromUser() throws WorkflowException
getFromUser
in interface Question
WorkflowException
public void setToUserId(String toUserId)
public String getToUserId()
public User getToUser() throws WorkflowException
getToUser
in interface Question
WorkflowException
public Date getQuestionDate()
getQuestionDate
in interface Question
public void setQuestionDate(Date questionDate)
public Date getResponseDate()
getResponseDate
in interface Question
public void setResponseDate(Date responseDate)
public boolean hasResponse()
hasResponse
in interface Question
public boolean isRelevant()
isRelevant
in interface Question
public int isRelevantCastor()
public void setRelevant(boolean relevant)
isRelevant()
public void setRelevantCastor(int relevant)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |