com.silverpeas.questionReply.model
Class QuestionDetail

java.lang.Object
  extended by 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

Field Summary
static String TYPE
           
 
Constructor Summary
QuestionDetail(Question question)
           
 
Method Summary
 boolean canBeAccessedBy(com.stratelia.webactiv.beans.admin.UserDetail user)
          Is the specified user can access this question?
 String getComponentInstanceId()
           
 String getContributionType()
           
 Date getCreationDate()
           
 com.stratelia.webactiv.beans.admin.UserDetail getCreator()
           
 String getDescription()
           
 String getId()
           
 Question getQuestion()
           
 String getSilverpeasContentId()
           
 String getTitle()
           
 void setQuestion(Question question)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE

public static final String TYPE
See Also:
Constant Field Values
Constructor Detail

QuestionDetail

public QuestionDetail(Question question)
Parameters:
question -
Method Detail

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.