Package com.appiancorp.suiteapi.forums
Class DiscussionThread
java.lang.Object
com.appiancorp.suiteapi.forums.DiscussionThread
- All Implemented Interfaces:
GlobalId,LocalId,Serializable
@DiscussionThreadDataType
@Deprecated
public class DiscussionThread
extends Object
implements GlobalId
Deprecated.
The Discussion Forums functionality will be removed in a future release. Use the News feed
and related smart services to build applications with similar functionality.
Abstraction of a set of messages where one message is the root and
all other messages are replies. Replies are descendants of the root.
This class manages the properties related to the entire set of
messages. It does not directly contain the actual messages.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionInteger[]Deprecated.Get the actions that the user can do on this object.Deprecated.Get the user name of the user who created this thread by posting the first message.Deprecated.Get the date-time when this thread was created.Deprecated.Get this date-time when this thread was last modified.Deprecated.Get theGlobalIdof the forum to which this thread belongs.getId()Deprecated.Returns this object's local identifier,nullif the object was not identified locally using aLongId.Deprecated.Returns theRemoteIdof this object's instance identifier,nullif the object is only locally identified.Deprecated.Get the resources attached to a thread.booleanDeprecated.Determine whether this thread is sponsored.voidsetAllowedActions(Integer[] allowedActions_) Deprecated.Set the actions that the user can do on this object.voidsetCreator(String creator_) Deprecated.Set the user name of the user who created this thread by posting the first message.voidsetDateCreated(Timestamp time_) Deprecated.Set the date-time when this thread was created.voidsetDateModified(Timestamp time_) Deprecated.Set this date-time when this thread was last modified.voidsetForumId(GlobalId forumId_) Deprecated.Set theGlobalIdof the forum to which this thread belongs.voidDeprecated.Sets this object's local identifier.voidsetRemoteId(RemoteId remoteId_) Deprecated.Sets this object's remote identifier.voidsetResources(Attachment[] attachments_) Deprecated.Set the resources attached to a thread.voidsetSponsored(boolean sponsored_) Deprecated.Set whether this thread is sponsored.
-
Field Details
-
SORT_BY_ID
Deprecated. -
SORT_BY_ROOT_MESSAGE_ID
Deprecated. -
SORT_BY_MESSAGE_COUNT
Deprecated. -
SORT_BY_DATE_CREATED
Deprecated. -
SORT_BY_CREATOR
Deprecated. -
SORT_BY_SPONSORED
Deprecated. -
SORT_BY_DATE_MODIFIED
Deprecated.
-
-
Constructor Details
-
DiscussionThread
public DiscussionThread()Deprecated.
-
-
Method Details
-
getCreator
Deprecated.Get the user name of the user who created this thread by posting the first message.- Returns:
- The user name.
-
setCreator
Deprecated.Set the user name of the user who created this thread by posting the first message.- Parameters:
creator_- The user name.
-
getDateCreated
Deprecated.Get the date-time when this thread was created.- Returns:
- The timestamp.
-
setDateCreated
Deprecated.Set the date-time when this thread was created.- Parameters:
time_- The timestamp
-
getDateModified
Deprecated.Get this date-time when this thread was last modified.- Returns:
- The timestamp.
-
setDateModified
Deprecated.Set this date-time when this thread was last modified.- Parameters:
time_- The timestamp.
-
getForumId
Deprecated.Get theGlobalIdof the forum to which this thread belongs.- Returns:
- The
GlobalId.
-
setForumId
Deprecated.Set theGlobalIdof the forum to which this thread belongs.- Parameters:
forumId_-
-
getId
Deprecated.Description copied from interface:LocalIdReturns this object's local identifier,nullif the object was not identified locally using aLongId. -
setId
Deprecated.Description copied from interface:LocalIdSets this object's local identifier. -
getRemoteId
Deprecated.Description copied from interface:GlobalIdReturns theRemoteIdof this object's instance identifier,nullif the object is only locally identified.- Specified by:
getRemoteIdin interfaceGlobalId- Returns:
- Object's remote Id.
- See Also:
-
setRemoteId
Deprecated.Description copied from interface:GlobalIdSets this object's remote identifier.- Specified by:
setRemoteIdin interfaceGlobalId- Parameters:
remoteId_- remove Id to set- See Also:
-
isSponsored
public boolean isSponsored()Deprecated.Determine whether this thread is sponsored.- Returns:
trueif the thread is sponsored,falseif not.
-
setSponsored
public void setSponsored(boolean sponsored_) Deprecated.Set whether this thread is sponsored.- Parameters:
sponsored_-trueif the thread should be sponsored,falseif not.
-
getResources
Deprecated.Get the resources attached to a thread.- Returns:
- Objects identifying the resources.
-
setResources
Deprecated.Set the resources attached to a thread.- Parameters:
attachments_- Objects identifying the resources.
-
getAllowedActions
Deprecated.Get the actions that the user can do on this object.- Returns:
- An array of the actions.
-
setAllowedActions
Deprecated.Set the actions that the user can do on this object. NOTE: This setter exists only to allow for proper bean conversions when aDiscussionThreadobject is returned by the API. It CANNOT be used to update the allowed actions for aDiscussionThread- Parameters:
allowedActions_- An array of the actions.
-