Class Reply
java.lang.Object
org.silverpeas.core.persistence.datasource.model.jpa.AbstractJpaEntity<Reply,org.silverpeas.core.persistence.datasource.model.identifier.UniqueIntegerIdentifier>
org.silverpeas.core.persistence.datasource.model.jpa.BasicJpaEntity<Reply,org.silverpeas.core.persistence.datasource.model.identifier.UniqueIntegerIdentifier>
org.silverpeas.components.questionreply.model.Reply
- All Implemented Interfaces:
Serializable,org.silverpeas.core.contribution.model.Contribution,org.silverpeas.core.contribution.model.WithAttachment,org.silverpeas.core.Instance<org.silverpeas.core.contribution.model.Contribution>,org.silverpeas.core.Nameable,org.silverpeas.core.persistence.datasource.model.IdentifiableEntity,org.silverpeas.core.security.Securable,org.silverpeas.core.SilverpeasResource
@Entity
public class Reply
extends org.silverpeas.core.persistence.datasource.model.jpa.BasicJpaEntity<Reply,org.silverpeas.core.persistence.datasource.model.identifier.UniqueIntegerIdentifier>
implements org.silverpeas.core.contribution.model.Contribution, org.silverpeas.core.contribution.model.WithAttachment
A reply to a question of a FAQ. The reply belongs to the FAQ of its question.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanBeAccessedBy(org.silverpeas.core.admin.user.model.User user) org.silverpeas.core.admin.user.model.UserlongGets the unique identifier of this reply as a long value.org.silverpeas.core.contribution.model.ContributionIdentifierGets the unique identifier of the FAQ this reply belongs to, that is to say the one of its question.org.silverpeas.core.admin.user.model.UserintintGets the question this reply answers.longgetTitle()booleanorg.silverpeas.core.admin.user.model.UserDetailvoidsetContent(String content) voidvoidsetCreationDate(String creationDate) voidsetCreationDate(Date creationDate) voidsetCreatorId(String creatorId) Sets the unique identifier of this reply.voidsetPrivateReply(int privateReply) voidsetPublicReply(int publicReply) voidsetQuestion(Question question) voidorg.silverpeas.core.ResourceReferenceGets a reference to this reply, for example to get the documents attached to it.toString()voidwriteWysiwygContent(String wysiwygContent) Methods inherited from class org.silverpeas.core.persistence.datasource.model.jpa.BasicJpaEntity
performBeforePersist, performBeforeRemove, performBeforeUpdateMethods inherited from class org.silverpeas.core.persistence.datasource.model.jpa.AbstractJpaEntity
equals, getId, getNativeId, hashCode, isPersistedMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.silverpeas.core.contribution.model.Contribution
getContributionType, getDescription, getModel, getName, getResourcePathMethods inherited from interface org.silverpeas.core.Instance
getParentMethods inherited from interface org.silverpeas.core.security.Securable
canBeDeletedBy, canBeFiledInBy, canBeModifiedBy
-
Constructor Details
-
Reply
public Reply() -
Reply
-
Reply
-
-
Method Details
-
setId
Sets the unique identifier of this reply. It is for web entities representing an existing reply.- Overrides:
setIdin classorg.silverpeas.core.persistence.datasource.model.jpa.AbstractJpaEntity<Reply,org.silverpeas.core.persistence.datasource.model.identifier.UniqueIntegerIdentifier> - Parameters:
id- the unique identifier of the reply.- Returns:
- itself.
-
getIdAsLong
public long getIdAsLong()Gets the unique identifier of this reply as a long value.- Returns:
- the unique identifier of this reply.
-
getQuestion
Gets the question this reply answers.- Returns:
- the question of the reply.
-
setQuestion
-
getQuestionId
public long getQuestionId() -
getInstanceId
Gets the unique identifier of the FAQ this reply belongs to, that is to say the one of its question.- Returns:
- the unique identifier of a QuestionReply instance.
-
toResourceReference
public org.silverpeas.core.ResourceReference toResourceReference()Gets a reference to this reply, for example to get the documents attached to it.- Returns:
- a reference to this reply.
-
getTitle
- Specified by:
getTitlein interfaceorg.silverpeas.core.contribution.model.Contribution
-
canBeAccessedBy
public boolean canBeAccessedBy(org.silverpeas.core.admin.user.model.User user) - Specified by:
canBeAccessedByin interfaceorg.silverpeas.core.contribution.model.Contribution- Specified by:
canBeAccessedByin interfaceorg.silverpeas.core.security.Securable
-
getContent
-
getCreatorId
-
getIdentifier
public org.silverpeas.core.contribution.model.ContributionIdentifier getIdentifier()- Specified by:
getIdentifierin interfaceorg.silverpeas.core.contribution.model.Contribution- Specified by:
getIdentifierin interfaceorg.silverpeas.core.SilverpeasResource
-
getCreator
public org.silverpeas.core.admin.user.model.User getCreator()- Specified by:
getCreatorin interfaceorg.silverpeas.core.SilverpeasResource
-
getCreationDate
- Specified by:
getCreationDatein interfaceorg.silverpeas.core.SilverpeasResource
-
getLastUpdater
public org.silverpeas.core.admin.user.model.User getLastUpdater()- Specified by:
getLastUpdaterin interfaceorg.silverpeas.core.SilverpeasResource
-
getLastUpdateDate
- Specified by:
getLastUpdateDatein interfaceorg.silverpeas.core.SilverpeasResource
-
getCreationDateAsString
-
getPublicReply
public int getPublicReply() -
getPrivateReply
public int getPrivateReply() -
setCreatorId
-
setCreationDate
public void setCreationDate() -
setCreationDate
-
setCreationDate
-
setTitle
-
setContent
-
setPublicReply
public void setPublicReply(int publicReply) -
setPrivateReply
public void setPrivateReply(int privateReply) -
readCreatorName
-
readAuthor
public org.silverpeas.core.admin.user.model.UserDetail readAuthor() -
loadWysiwygContent
-
readCurrentWysiwygContent
-
writeWysiwygContent
-
isIndexable
public boolean isIndexable()- Specified by:
isIndexablein interfaceorg.silverpeas.core.contribution.model.Contribution
-
toString
-