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
-
Constructor Summary
-
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 theGlobalId
of the forum to which this thread belongs.getId()
Deprecated.Returns this object's local identifier,null
if the object was not identified locally using aLong
Id.Deprecated.Returns theRemoteId
of this object's instance identifier,null
if the object is only locally identified.Deprecated.Get the resources attached to a thread.boolean
Deprecated.Determine whether this thread is sponsored.void
setAllowedActions
(Integer[] allowedActions_) Deprecated.Set the actions that the user can do on this object.void
setCreator
(String creator_) Deprecated.Set the user name of the user who created this thread by posting the first message.void
setDateCreated
(Timestamp time_) Deprecated.Set the date-time when this thread was created.void
setDateModified
(Timestamp time_) Deprecated.Set this date-time when this thread was last modified.void
setForumId
(GlobalId forumId_) Deprecated.Set theGlobalId
of the forum to which this thread belongs.void
Deprecated.Sets this object's local identifier.void
setRemoteId
(RemoteId remoteId_) Deprecated.Sets this object's remote identifier.void
setResources
(Attachment[] attachments_) Deprecated.Set the resources attached to a thread.void
setSponsored
(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 theGlobalId
of the forum to which this thread belongs.- Returns:
- The
GlobalId
.
-
setForumId
Deprecated.Set theGlobalId
of the forum to which this thread belongs.- Parameters:
forumId_
-
-
getId
Deprecated.Description copied from interface:LocalId
Returns this object's local identifier,null
if the object was not identified locally using aLong
Id. -
setId
Deprecated.Description copied from interface:LocalId
Sets this object's local identifier. -
getRemoteId
Deprecated.Description copied from interface:GlobalId
Returns theRemoteId
of this object's instance identifier,null
if the object is only locally identified.- Specified by:
getRemoteId
in interfaceGlobalId
- Returns:
- Object's remote Id.
- See Also:
-
setRemoteId
Deprecated.Description copied from interface:GlobalId
Sets this object's remote identifier.- Specified by:
setRemoteId
in interfaceGlobalId
- Parameters:
remoteId_
- remove Id to set- See Also:
-
isSponsored
public boolean isSponsored()Deprecated.Determine whether this thread is sponsored.- Returns:
true
if the thread is sponsored,false
if not.
-
setSponsored
public void setSponsored(boolean sponsored_) Deprecated.Set whether this thread is sponsored.- Parameters:
sponsored_
-true
if the thread should be sponsored,false
if 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 aDiscussionThread
object is returned by the API. It CANNOT be used to update the allowed actions for aDiscussionThread
- Parameters:
allowedActions_
- An array of the actions.
-