Interface Thread
- All Superinterfaces:
- AmetysObject,- AttachableAmetysObject,- CommentableAmetysObject<RichTextComment>,- DataAwareAmetysObject,- DataHolder,- IndexableDataHolder,- ModelAwareDataAwareAmetysObject,- ModelAwareDataAwareAmetysObject,- ModelAwareDataHolder,- ModifiableAmetysObject,- ModifiableDataHolder,- ModifiableIndexableDataHolder,- ModifiableModelAwareDataAwareAmetysObject,- ModifiableModelAwareDataAwareAmetysObject,- ModifiableModelAwareDataHolder,- RemovableAmetysObject,- TagAwareAmetysObject,- TaggableAmetysObject
- All Known Implementing Classes:
- JCRThread
public interface Thread
extends ModifiableModelAwareDataAwareAmetysObject, RemovableAmetysObject, TaggableAmetysObject, AttachableAmetysObject, CommentableAmetysObject<RichTextComment>
Interface representing a forum's thread
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringComputed acceptedAnswer attributestatic final StringAttribute Attachmentsstatic final StringAttribute Authorstatic final StringAttribute Categorystatic final StringAttribute Categorystatic final StringAttribute Categorystatic final StringAttribute Commentsstatic final StringAttribute CommentAuthors, used to get number of comments without parsing themstatic final StringAttribute CommentsLength, used to get number of comments without parsing themstatic final StringAttribute Descriptionstatic final StringAttribute Description abstractstatic final StringAttribute Description for editingstatic final StringAttribute Description for editingstatic final StringAttribute Creationdatestatic final StringAttribute Threadidstatic final StringAttribute LastContribution : set on creation, updated for each anwer addedstatic final StringAttribute Lastmodifiedstatic final StringAttribute Tagsstatic final StringAttribute Labelstatic final StringComputed hasNotificationDot attributestatic final StringComputed isAuthor attributestatic final StringComputed unreadComments attributeFields inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolderALTERNATIVE_SUFFIX, COMMENTS_SUFFIX, STATUS_SUFFIX
- 
Method SummaryModifier and TypeMethodDescriptionGet the accepted answer.Get the author of the threadThe category of the threadGet the close author of the threadGet the thread's close date.The content of the threadGet the thread's creation date.getFlattenComments(boolean includeNotValidatedComments, boolean includeValidatedComments) Get the list of available comments (validated, not validated, both or none :))Get the thread's last contribution date.Get the thread's last modification date.getTitle()The title of the threadvoidsetAuthor(UserIdentity author) Set the author of this thread.voidsetCategory(ThreadCategoryEnum category) Set the category of the threadvoidsetCloseAuthor(UserIdentity author) Set the close author of this thread.voidsetCloseDate(ZonedDateTime date) Set the thread's close date.voidsetContent(RichText content) Set the content of the threadvoidsetCreationDate(ZonedDateTime startDate) Set the thread's creation date.voidSet the thread's contribution date.voidsetLastModified(ZonedDateTime date) Set the thread's modification date.voidSet the title of the threadMethods inherited from interface org.ametys.plugins.repository.AmetysObjectequals, getId, getName, getParent, getParentPath, getPath, hashCodeMethods inherited from interface org.ametys.cms.repository.AttachableAmetysObjectgetAttachments, setAttachmentsMethods inherited from interface org.ametys.cms.repository.CommentableAmetysObjectcreateComment, createComment, getComment, getCommentsMethods inherited from interface org.ametys.plugins.repository.data.ametysobject.DataAwareAmetysObjectcopyTo, copyTo, dataToJSON, dataToJSON, dataToSAX, dataToSAXMethods inherited from interface org.ametys.cms.data.ametysobject.ModelAwareDataAwareAmetysObjectgetSystemPropertyExtensionPoint, indexData, indexDataMethods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModelAwareDataAwareAmetysObjectdataToJSON, dataToJSONForEdition, dataToMap, dataToSAX, dataToSAXForEdition, getComments, getDataNames, getDefinition, getDifferences, getDifferences, getDifferences, getDifferences, getExternalValue, getLocalValue, getModel, getStatus, getValue, getValue, hasComments, hasDefinition, hasDifferences, hasDifferences, hasDifferences, hasDifferences, hasExternalValue, hasExternalValueOrEmpty, hasLocalValue, hasLocalValueOrEmpty, hasValue, hasValueOrEmptyMethods inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHoldercommentsToSAX, dataToJSON, dataToJSON, dataToJSON, dataToMap, dataToMap, dataToMap, dataToSAX, dataToSAX, dataToSAX, getDataNames, getType, getValue, hasValue, hasValueOrEmpty, isMultipleMethods inherited from interface org.ametys.plugins.repository.ModifiableAmetysObjectneedsSave, rename, revertChanges, saveChangesMethods inherited from interface org.ametys.plugins.repository.data.holder.ModifiableDataHoldergetRepositoryDataMethods inherited from interface org.ametys.cms.data.ametysobject.ModifiableModelAwareDataAwareAmetysObjectgetComposite, getComposite, getDataHolder, getExternalComposite, getExternalComposite, getExternalRepeater, getExternalRepeater, getLocalComposite, getLocalComposite, getLocalRepeater, getLocalRepeater, getParentDataHolder, getRepeater, getRepeater, getRootDataHolderMethods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModifiableModelAwareDataAwareAmetysObjectgetRepositoryData, removeExternalizableMetadataIfExists, removeExternalValue, removeLocalValue, removeValue, setComments, setExternalValue, setLocalValue, setStatus, setValue, synchronizeValues, synchronizeValues, synchronizeValues, synchronizeValuesMethods inherited from interface org.ametys.plugins.repository.RemovableAmetysObjectremoveMethods inherited from interface org.ametys.plugins.repository.tag.TagAwareAmetysObjectgetTagsMethods inherited from interface org.ametys.plugins.repository.tag.TaggableAmetysObjecttag, untag
- 
Field Details- 
ATTRIBUTE_IDAttribute Threadid- See Also:
 
- 
ATTRIBUTE_TITLEAttribute Label- See Also:
 
- 
ATTRIBUTE_CONTENTAttribute Description- See Also:
 
- 
ATTRIBUTE_CONTENT_FOR_EDITINGAttribute Description for editing- See Also:
 
- 
ATTRIBUTE_CONTENT_FOR_RENDERINGAttribute Description for editing- See Also:
 
- 
ATTRIBUTE_CONTENT_ABSTRACTAttribute Description abstract- See Also:
 
- 
ATTRIBUTE_AUTHORAttribute Author- See Also:
 
- 
ATTRIBUTE_CREATIONDATEAttribute Creationdate- See Also:
 
- 
ATTRIBUTE_LASTMODIFIEDAttribute Lastmodified- See Also:
 
- 
ATTRIBUTE_LASTCONTRIBUTIONAttribute LastContribution : set on creation, updated for each anwer added- See Also:
 
- 
ATTRIBUTE_CATEGORYAttribute Category- See Also:
 
- 
ATTRIBUTE_CLOSEAUTHORAttribute Category- See Also:
 
- 
ATTRIBUTE_CLOSEDATEAttribute Category- See Also:
 
- 
ATTRIBUTE_ATTACHMENTSAttribute Attachments- See Also:
 
- 
ATTRIBUTE_TAGSAttribute Tags- See Also:
 
- 
ATTRIBUTE_COMMENTSAttribute Comments- See Also:
 
- 
ATTRIBUTE_COMMENTS_LENTGHAttribute CommentsLength, used to get number of comments without parsing them- See Also:
 
- 
ATTRIBUTE_COMMENTS_AUTHORSAttribute CommentAuthors, used to get number of comments without parsing them- See Also:
 
- 
HAS_UNOPENED_THREAD_NOTIFICATIONComputed hasNotificationDot attribute- See Also:
 
- 
ACCEPTED_ANSWER_COMMENT_IDComputed acceptedAnswer attribute- See Also:
 
- 
UNREAD_COMMENTSComputed unreadComments attribute- See Also:
 
- 
IS_AUTHORComputed isAuthor attribute- See Also:
 
 
- 
- 
Method Details- 
getTitleThe title of the thread- Returns:
- The title
 
- 
setTitleSet the title of the thread- Parameters:
- title- The title
 
- 
getContentThe content of the thread- Returns:
- The content
 
- 
setContentSet the content of the thread- Parameters:
- content- The content
 
- 
getAuthorGet the author of the thread- Returns:
- the author
 
- 
setAuthorSet the author of this thread.- Parameters:
- author- the author
 
- 
getCreationDateGet the thread's creation date.- Returns:
- the thread's creation date.
 
- 
setCreationDateSet the thread's creation date.- Parameters:
- startDate- the task's creation date.
 
- 
getLastModifiedGet the thread's last modification date.- Returns:
- the thread's last modification date.
 
- 
setLastModifiedSet the thread's modification date.- Parameters:
- date- the last modification date to set.
 
- 
getLastContributionGet the thread's last contribution date.- Returns:
- the thread's last contribution date.
 
- 
setLastContributionSet the thread's contribution date.- Parameters:
- date- the last contribution date to set.
 
- 
getCategoryThe category of the thread- Returns:
- The category
 
- 
setCategorySet the category of the thread- Parameters:
- category- The category
 
- 
getCloseAuthorGet the close author of the thread- Returns:
- the close author
 
- 
setCloseAuthorSet the close author of this thread.- Parameters:
- author- the close author
 
- 
getCloseDateGet the thread's close date.- Returns:
- the thread's close date.
 
- 
setCloseDateSet the thread's close date.- Parameters:
- date- the close date to set.
 
- 
getAcceptedAnswerGet the accepted answer.- Returns:
- the accepted answer if present, null otherwise.
 
- 
getFlattenCommentsList<RichTextComment> getFlattenComments(boolean includeNotValidatedComments, boolean includeValidatedComments) throws AmetysRepositoryException Get the list of available comments (validated, not validated, both or none :))- Parameters:
- includeNotValidatedComments- true to get the non validated comments.
- includeValidatedComments- true to get the validated comment.
- Returns:
- A non null list of comments on the ametys object.
- Throws:
- AmetysRepositoryException- if an error occurred
 
 
-