|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.webactiv.util.questionContainer.model.QuestionContainerDetail
public class QuestionContainerDetail
Constructor Summary | |
---|---|
QuestionContainerDetail()
|
|
QuestionContainerDetail(QuestionContainerHeader header,
Collection<Question> questions,
Collection<Comment> comments,
Collection<QuestionResult> votes)
|
Method Summary | |
---|---|
boolean |
canBeAccessedBy(UserDetail user)
Is the specified user can access this container of questions? |
Collection<Comment> |
getComments()
|
String |
getComponentInstanceId()
Gets the unique identifier of the Silverpeas component instance that manages this content. |
String |
getContributionType()
Gets the type of this content. |
Date |
getCreationDate()
Gets the date at which this content was created. |
UserDetail |
getCreator()
Gets the author that has created this content. |
Collection<QuestionResult> |
getCurrentUserVotes()
|
String |
getDescription()
Gets the description of this content if any. |
Question |
getFirstQuestion()
|
QuestionContainerHeader |
getHeader()
|
String |
getId()
Gets the identifier of this content in the Silverpeas component providing it. |
String |
getJsonPosition()
|
Collection<Question> |
getQuestions()
|
String |
getSilverpeasContentId()
Gets the unique identifier of this content among all the contents managed in the Silverpeas collaborative portal. |
String |
getTitle()
Gets the title of this content if any. |
void |
setComments(Collection<Comment> comments)
|
void |
setCurrentUserVotes(Collection<QuestionResult> votes)
|
void |
setHeader(QuestionContainerHeader header)
|
void |
setJsonPosition(String jsonPosition)
|
void |
setQuestions(Collection<Question> questions)
|
protected void |
setSilverpeasContentId(String contentId)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QuestionContainerDetail()
public QuestionContainerDetail(QuestionContainerHeader header, Collection<Question> questions, Collection<Comment> comments, Collection<QuestionResult> votes)
Method Detail |
---|
public void setHeader(QuestionContainerHeader header)
header
- the Question Container header to setpublic void setQuestions(Collection<Question> questions)
questions
- the collection of questions to setpublic void setComments(Collection<Comment> comments)
comments
- the collection of comments to setpublic void setCurrentUserVotes(Collection<QuestionResult> votes)
votes
- the collection of QuestionResult to setpublic QuestionContainerHeader getHeader()
public Collection<Question> getQuestions()
public Question getFirstQuestion()
public Collection<Comment> getComments()
public Collection<QuestionResult> getCurrentUserVotes()
public String getJsonPosition()
public void setJsonPosition(String jsonPosition)
jsonPosition
- the jsonPosition to setpublic String getComponentInstanceId()
SilverpeasContent
getComponentInstanceId
in interface SilverpeasContent
public String getContributionType()
SilverpeasContent
getContributionType
in interface SilverpeasContent
public boolean canBeAccessedBy(UserDetail user)
canBeAccessedBy
in interface SilverpeasContent
user
- a user in Silverpeas.
public Date getCreationDate()
SilverpeasContent
getCreationDate
in interface SilverpeasContent
public UserDetail getCreator()
SilverpeasContent
getCreator
in interface SilverpeasContent
public String getId()
SilverpeasContent
getId
in interface SilverpeasContent
public String getSilverpeasContentId()
SilverpeasContent
getSilverpeasContentId
in interface SilverpeasContent
protected void setSilverpeasContentId(String contentId)
public String getTitle()
SilverpeasContent
getTitle
in interface SilverpeasContent
public String getDescription()
SilverpeasContent
getDescription
in interface SilverpeasContent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |