|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.telscenter.sail.webapp.domain.brainstorm.impl.BrainstormImpl
public class BrainstormImpl
Simple brainstorm implementation.
| Field Summary | |
|---|---|
static String |
ANSWERS_JOIN_COLUMN_NAME
|
static String |
ANSWERS_JOIN_TABLE_NAME
|
static String |
BRAINSTORMS_JOIN_COLUMN_NAME
|
static String |
COLUMN_NAME_RUN_FK
|
static String |
DATA_STORE_NAME
|
static String |
QUESTIONS_JOIN_COLUMN_NAME
|
| Constructor Summary | |
|---|---|
BrainstormImpl()
|
|
| Method Summary | |
|---|---|
void |
addAnswer(Answer answer)
Adds an Answer to this brainstorm. |
void |
addWorkgroupThatRequestHelp(WISEWorkgroup workgroup)
Indicate that the specified workgroup is requesting help to this brainstorm. |
boolean |
canWorkgroupSeeResponses(WISEWorkgroup workgroup)
Returns whether the specified workgroup can see other students' responses. |
Set<Answer> |
getAnswers()
Returns a list of Answer for this brainstorm, filtered
by the subgroups of the logged-in user, if such subgroup exists. |
Brainstorm |
getCopy()
Returns a copy of this Brainstorm object. |
DisplayNameOption |
getDisplayNameOption()
Returns how the students' responses should be labeled. |
Long |
getId()
Primary identifier that is unique for each different object instance. |
Long |
getParentBrainstormId()
Returns this Brainstorm's parent brainstormId. |
Set<PreparedAnswer> |
getPreparedAnswers()
Returns a set of PreparedAnswer for this brainstorm. |
Project |
getProject()
Returns the Project that has this brainstorm. |
Question |
getQuestion()
Returns the Question for this brainstorm. |
Questiontype |
getQuestiontype()
Returns the type of Question for this brainstorm |
Run |
getRun()
Return the Run that this Brainstorm is for |
Date |
getStarttime()
|
Map<WISEWorkgroup,Date> |
getWorkgroupLastVisitedMap()
Returns an association of workgroup and their last visited timestamp on this brainstorm step. |
Set<WISEWorkgroup> |
getWorkgroupsThatRequestHelp()
Returns a Set of Workgroups that has requested for help on this Brainstorm. |
boolean |
hasWorkgroupPosted(WISEWorkgroup workgroup)
Returns whether the specified workgroup has posted an answer to this brainstorm yet. |
boolean |
isAnonymousAllowed()
Indicates whether the students posts to this brainstorm anonymously |
boolean |
isGated()
Returns whether the students need to submit a post before seeing responses from other students or if they can see responses from others without first posting a response. |
boolean |
isInstantPollActive()
|
boolean |
isPollEnded()
|
boolean |
isRichTextEditorAllowed()
Indicates whether the students can use the RichTextEditor |
boolean |
isSessionStarted()
Returns when this brainstorm step session has started. |
void |
removeWorkgroupThatRequestHelp(WISEWorkgroup workgroup)
Indicates that the specified workgroup is no longer seeking help on this brainstorm. |
void |
setAnonymousAllowed(boolean isAnonymousAllowed)
Indicates whether the students posts to this brainstorm anonymously |
void |
setAnswers(Set<Answer> answers)
Sets a list of Answer for this brainstorm. |
void |
setDisplayNameOption(DisplayNameOption displayNameOption)
Sets how the students' responses should be labeled. |
void |
setGated(boolean isGated)
|
void |
setInstantPollActive(boolean isInstantPollActive)
Sets whether this instant poll is currently active |
void |
setParentBrainstormId(Long parentBrainstormId)
Sets this Brainstorm's parent brainstormId. |
void |
setPollEnded(boolean isPollEnded)
Allows students to then view feedback, graphs, charts, etc. |
void |
setPreparedAnswers(Set<PreparedAnswer> preparedAnswers)
Sets a set of PreparedAnswer for this brainstorm. |
void |
setProject(Project project)
Sets the Project that has this brainstorm. |
void |
setQuestion(Question question)
Set the Question for this brainstorm. |
void |
setQuestiontype(Questiontype questiontype)
Sets the type of Question for this brainstorm |
void |
setRichTextEditorAllowed(boolean isRichTextEditorAllowed)
Indicates whether the students can use the RichTextEditor |
void |
setRun(Run run)
Set the Run that this Brainstorm is for |
void |
setSessionStarted(boolean sessionStarted)
Sets when this brainstorm step session has started. |
void |
setStarttime(Date starttime)
|
void |
setWorkgroupsThatRequestHelp(Set<WISEWorkgroup> workgroupsThatRequestHelp)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DATA_STORE_NAME
public static final String ANSWERS_JOIN_TABLE_NAME
public static final String BRAINSTORMS_JOIN_COLUMN_NAME
public static final String ANSWERS_JOIN_COLUMN_NAME
public static final String QUESTIONS_JOIN_COLUMN_NAME
public static final String COLUMN_NAME_RUN_FK
| Constructor Detail |
|---|
public BrainstormImpl()
| Method Detail |
|---|
public Set<Answer> getAnswers()
BrainstormAnswer for this brainstorm, filtered
by the subgroups of the logged-in user, if such subgroup exists.
getAnswers in interface BrainstormAnswerBrainstorm.getAnswers()public Question getQuestion()
BrainstormQuestion for this brainstorm.
getQuestion in interface BrainstormQuestion this Brainstorm's
question.Brainstorm.getQuestion()public Run getRun()
BrainstormRun that this Brainstorm is for
getRun in interface BrainstormRun that this Brainstorm has
been set up in.Brainstorm.getRun()public Long getId()
Persistable
getId in interface Persistablepublic void setRun(Run run)
BrainstormRun that this Brainstorm is for
setRun in interface BrainstormBrainstorm.setRun(org.telscenter.sail.webapp.domain.Run)public void setAnswers(Set<Answer> answers)
BrainstormAnswer for this brainstorm.
setAnswers in interface BrainstormBrainstorm.setAnswers(java.util.Set)public void addAnswer(Answer answer)
BrainstormAnswer to this brainstorm.
addAnswer in interface Brainstormanswer - Add this Answer to this Brainstorm.Brainstorm.addAnswer(org.telscenter.sail.webapp.domain.brainstorm.answer.Answer)public Set<PreparedAnswer> getPreparedAnswers()
Brainstorm
getPreparedAnswers in interface Brainstormpublic void setPreparedAnswers(Set<PreparedAnswer> preparedAnswers)
Brainstorm
setPreparedAnswers in interface BrainstormpreparedAnswers - the preparedAnswers to setpublic void setQuestion(Question question)
BrainstormQuestion for this brainstorm.
setQuestion in interface BrainstormBrainstorm.setQuestion(org.telscenter.sail.webapp.domain.brainstorm.question.Question)public Long getParentBrainstormId()
Brainstorm
getParentBrainstormId in interface Brainstormpublic void setParentBrainstormId(Long parentBrainstormId)
Brainstorm
setParentBrainstormId in interface BrainstormparentBrainstormId - the parentBrainstormId to setpublic boolean isAnonymousAllowed()
Brainstorm
isAnonymousAllowed in interface Brainstormpublic void setAnonymousAllowed(boolean isAnonymousAllowed)
Brainstorm
setAnonymousAllowed in interface BrainstormisAnonymousAllowed - the isAnonymousAllowed to setpublic Map<WISEWorkgroup,Date> getWorkgroupLastVisitedMap()
Brainstorm
getWorkgroupLastVisitedMap in interface BrainstormMap of WISEWorkgroup and
Datepublic Set<WISEWorkgroup> getWorkgroupsThatRequestHelp()
Brainstorm
getWorkgroupsThatRequestHelp in interface BrainstormSet of WISEWorkgroup.Brainstorm.getWorkgroupsThatRequestHelp()public void setWorkgroupsThatRequestHelp(Set<WISEWorkgroup> workgroupsThatRequestHelp)
workgroupsThatRequestHelp - the workgroupsThatRequestHelp to setpublic void addWorkgroupThatRequestHelp(WISEWorkgroup workgroup)
Brainstorm
addWorkgroupThatRequestHelp in interface BrainstormBrainstorm.addWorkgroupThatRequestHelp(org.telscenter.sail.webapp.domain.workgroup.WISEWorkgroup)public void removeWorkgroupThatRequestHelp(WISEWorkgroup workgroup)
Brainstorm
removeWorkgroupThatRequestHelp in interface BrainstormBrainstorm.removeWorkgroupThatRequestHelp(org.telscenter.sail.webapp.domain.workgroup.WISEWorkgroup)public boolean isGated()
Brainstorm
isGated in interface BrainstormBrainstorm.isGated()public void setGated(boolean isGated)
setGated in interface BrainstormisGated - the isGated to setpublic boolean isSessionStarted()
Brainstorm
isSessionStarted in interface BrainstormBrainstorm.isSessionStarted()public void setSessionStarted(boolean sessionStarted)
Brainstorm
setSessionStarted in interface BrainstormBrainstorm.setSessionStarted(boolean)public boolean hasWorkgroupPosted(WISEWorkgroup workgroup)
Brainstorm
hasWorkgroupPosted in interface BrainstormBrainstorm.hasWorkgroupPosted(org.telscenter.sail.webapp.domain.workgroup.WISEWorkgroup)public boolean canWorkgroupSeeResponses(WISEWorkgroup workgroup)
Brainstorm
canWorkgroupSeeResponses in interface BrainstormBrainstorm.canWorkgroupSeeResponses(org.telscenter.sail.webapp.domain.workgroup.WISEWorkgroup)public Date getStarttime()
public void setStarttime(Date starttime)
starttime - the starttime to setpublic Project getProject()
Brainstorm
getProject in interface Brainstormpublic void setProject(Project project)
Brainstorm
setProject in interface Brainstormproject - the project to setpublic DisplayNameOption getDisplayNameOption()
Brainstorm
getDisplayNameOption in interface Brainstormpublic void setDisplayNameOption(DisplayNameOption displayNameOption)
Brainstorm
setDisplayNameOption in interface BrainstormdisplayNameOption - the displayNameOption to setpublic boolean isRichTextEditorAllowed()
Brainstorm
isRichTextEditorAllowed in interface Brainstormpublic void setRichTextEditorAllowed(boolean isRichTextEditorAllowed)
Brainstorm
setRichTextEditorAllowed in interface BrainstormisRichTextEditorAllowed - the isRichTextEditorAllowed to setpublic Brainstorm getCopy()
Brainstorm
getCopy in interface BrainstormBrainstorm.getCopy()public Questiontype getQuestiontype()
Brainstorm
getQuestiontype in interface Brainstormpublic void setQuestiontype(Questiontype questiontype)
Brainstorm
setQuestiontype in interface Brainstormquestiontype - the questiontype to setpublic boolean isPollEnded()
isPollEnded in interface Brainstormpublic void setPollEnded(boolean isPollEnded)
Brainstorm
setPollEnded in interface BrainstormisPollEnded - the isPollEnded to setpublic boolean isInstantPollActive()
isInstantPollActive in interface Brainstormpublic void setInstantPollActive(boolean isInstantPollActive)
Brainstorm
setInstantPollActive in interface BrainstormisInstantPollActive - the isInstantPollActive to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||