|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.questionReply.web.QuestionEntity
public class QuestionEntity
Constructor Summary | |
---|---|
protected |
QuestionEntity()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
static QuestionEntity |
fromQuestion(Question question,
String lang)
Creates a new question entity from the specified question. |
static List<QuestionEntity> |
fromQuestions(Iterable<Question> questions,
String lang)
Creates several new reply entities from the specified list of questions. |
String |
getCategoryId()
|
String |
getContent()
|
String |
getCreationDate()
|
AuthorEntity |
getCreator()
|
String |
getCreatorId()
|
String |
getId()
|
String |
getInstanceId()
|
int |
getPrivateReplyNumber()
|
int |
getPublicReplyNumber()
|
int |
getReplyNumber()
|
int |
getStatus()
|
String |
getTitle()
|
URI |
getURI()
Gets the URI of this comment entity. |
int |
hashCode()
|
Question |
toQuestion()
Gets the reply business objet this entity represent. |
String |
toString()
|
QuestionEntity |
withURI(URI uri)
Sets a URI to this entity. |
QuestionEntity |
withUser(com.stratelia.webactiv.beans.admin.UserDetail userDetail,
com.stratelia.webactiv.SilverpeasRole profile)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected QuestionEntity()
Method Detail |
---|
public QuestionEntity withURI(URI uri)
uri
- the web entity URI.
public URI getURI()
getURI
in interface com.silverpeas.web.Exposable
public String getCategoryId()
public String getContent()
public String getCreationDate()
public String getCreatorId()
public String getId()
public String getInstanceId()
public int getPrivateReplyNumber()
public int getPublicReplyNumber()
public int getReplyNumber()
public int getStatus()
public String getTitle()
public AuthorEntity getCreator()
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public static QuestionEntity fromQuestion(Question question, String lang)
question
- the question to entitify.lang
- the language of the current User.
public static List<QuestionEntity> fromQuestions(Iterable<Question> questions, String lang)
questions
- the list of questions to entitify.lang
- the language of the current User.
public Question toQuestion()
public QuestionEntity withUser(com.stratelia.webactiv.beans.admin.UserDetail userDetail, com.stratelia.webactiv.SilverpeasRole profile)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |