public interface IQuestionnaire extends IQuestionnaireBase
Modifier and Type | Method and Description |
---|---|
void |
addAttachment(IAttachment attachment)
Add an attachment to the assessment.
|
void |
addComment(IComment comment)
Add a comment to the assessment.
|
void |
addQuestion(IQuestion question)
Add a question to the questionnaire.
|
void |
addSection(ISection section)
Add a section to the questionnaire.
|
IUser |
getAssignee()
Returns the assignee (user) of this questionnaire.
|
java.util.List<IAttachment> |
getAttachments()
Returns a list of attachments of the assessment.
|
java.util.List<IEnumValue> |
getAvailableTransitions()
Returns available transitions to set, which is determined by the lifecycle.
|
java.util.List<IComment> |
getComments()
Returns a list of comments of the assessment.
|
java.lang.Boolean |
getCompletionRequired() |
java.util.Date |
getDueDate() |
java.util.Date |
getLastModifiedDate() |
IQuestion |
getQuestionBy(Id id)
Returns a question that has the specified id.
|
java.util.List<IQuestion> |
getQuestions()
Returns a list of questions, sorted by the order configured on the child objects.
|
ISection |
getSectionBy(Id id)
Returns a section or sub-section that has the specified id.
|
java.util.List<ISection> |
getSections()
Returns a list of sections and sub-sections, sorted by the order configured on the child objects.
|
QuestionnaireStatus |
getStatus()
Returns the status of the questionnaire, which is determined by lifecycle.
|
java.lang.String |
getTransitionComment() |
void |
recalculateScore(boolean recalcScore)
Sets the flag to indicate to re-calculate the scores and the progress of the assessment (as a percentage) in the next save operation.
|
void |
removeAttachment(IAttachment attachment)
Remove an attachment from the assessment.
|
void |
removeQuestion(Id questionId)
Remove a question from the question.
|
void |
removeSection(Id sectionId)
Remove a section from the section.
|
void |
setTransition(java.lang.String transitionName)
Sets transition of the questionnaire.
|
void |
setTransitionComment(java.lang.String comment)
Sets transition comment of the questionnaire.
|
getDescription, getId, getOrder, getParentId, getRationale, getReference, getReportID, getTitle, setDescription, setOrder, setRationale, setReference, setTitle
java.util.List<ISection> getSections()
ISection
ISection getSectionBy(Id id)
id
- of a section or a sub-sectionjava.util.List<IQuestion> getQuestions()
IQuestion
IQuestion getQuestionBy(Id id)
id
- the id of a questionjava.util.List<IComment> getComments()
IComment
java.util.List<IAttachment> getAttachments()
IAttachment
QuestionnaireStatus getStatus()
QuestionnaireStatus
java.lang.Boolean getCompletionRequired()
IUser getAssignee()
java.util.Date getDueDate()
java.util.Date getLastModifiedDate()
void addSection(ISection section)
section
- the section to be addedvoid removeSection(Id sectionId)
sectionId
- the id of the sectionvoid removeQuestion(Id questionId)
questionId
- the id of the questionvoid addQuestion(IQuestion question)
question
- the question to be addedvoid addComment(IComment comment)
comment
- the comment to be addedvoid addAttachment(IAttachment attachment)
attachment
- the attachment to be addedvoid removeAttachment(IAttachment attachment)
attachment
- the attachment to be removedjava.lang.String getTransitionComment()
void setTransitionComment(java.lang.String comment)
comment
- java.util.List<IEnumValue> getAvailableTransitions()
IEnumValue
void setTransition(java.lang.String transitionName)
InvalidArgumentException
when the transitionName is not in the list of available transitions.transitionName
- non-null string value which is one of available transitionsvoid recalculateScore(boolean recalcScore)
recalcScore
-
Licensed Materials - Property of IBM
© Copyright IBM Corp. 2013, 2018. All Rights Reserved.
US Government Users Restricted Rights -
Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.