com.silverpeas.questionReply.model
Class QuestionDetail
java.lang.Object
com.silverpeas.questionReply.model.QuestionDetail
- All Implemented Interfaces:
- com.silverpeas.SilverpeasContent, Serializable
public class QuestionDetail
- extends Object
- implements com.silverpeas.SilverpeasContent
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
QuestionDetail
public QuestionDetail(Question question)
- Parameters:
question
-
getQuestion
public Question getQuestion()
- Returns:
- the question
setQuestion
public void setQuestion(Question question)
- Parameters:
question
- the question to set
getId
public String getId()
- Specified by:
getId
in interface com.silverpeas.SilverpeasContent
getComponentInstanceId
public String getComponentInstanceId()
- Specified by:
getComponentInstanceId
in interface com.silverpeas.SilverpeasContent
getSilverpeasContentId
public String getSilverpeasContentId()
- Specified by:
getSilverpeasContentId
in interface com.silverpeas.SilverpeasContent
getCreator
public com.stratelia.webactiv.beans.admin.UserDetail getCreator()
- Specified by:
getCreator
in interface com.silverpeas.SilverpeasContent
getCreationDate
public Date getCreationDate()
- Specified by:
getCreationDate
in interface com.silverpeas.SilverpeasContent
getTitle
public String getTitle()
- Specified by:
getTitle
in interface com.silverpeas.SilverpeasContent
getDescription
public String getDescription()
- Specified by:
getDescription
in interface com.silverpeas.SilverpeasContent
getContributionType
public String getContributionType()
- Specified by:
getContributionType
in interface com.silverpeas.SilverpeasContent
canBeAccessedBy
public boolean canBeAccessedBy(com.stratelia.webactiv.beans.admin.UserDetail user)
- Is the specified user can access this question?
A user can access a question if it has enough rights to access the QuestionReply instance in
which is managed this question.
- Specified by:
canBeAccessedBy
in interface com.silverpeas.SilverpeasContent
- Parameters:
user
- a user in Silverpeas.
- Returns:
- true if the user can access this question, false otherwise.
Copyright © 2016 Silverpeas. All Rights Reserved.