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 Details

    • SORT_BY_ID

      public static final Integer SORT_BY_ID
      Deprecated.
    • SORT_BY_ROOT_MESSAGE_ID

      public static final Integer SORT_BY_ROOT_MESSAGE_ID
      Deprecated.
    • SORT_BY_MESSAGE_COUNT

      public static final Integer SORT_BY_MESSAGE_COUNT
      Deprecated.
    • SORT_BY_DATE_CREATED

      public static final Integer SORT_BY_DATE_CREATED
      Deprecated.
    • SORT_BY_CREATOR

      public static final Integer SORT_BY_CREATOR
      Deprecated.
    • SORT_BY_SPONSORED

      public static final Integer SORT_BY_SPONSORED
      Deprecated.
    • SORT_BY_DATE_MODIFIED

      public static final Integer SORT_BY_DATE_MODIFIED
      Deprecated.
  • Constructor Details

    • DiscussionThread

      public DiscussionThread()
      Deprecated.
  • Method Details

    • getCreator

      public String getCreator()
      Deprecated.
      Get the user name of the user who created this thread by posting the first message.
      Returns:
      The user name.
    • setCreator

      public void setCreator(String creator_)
      Deprecated.
      Set the user name of the user who created this thread by posting the first message.
      Parameters:
      creator_ - The user name.
    • getDateCreated

      public Timestamp getDateCreated()
      Deprecated.
      Get the date-time when this thread was created.
      Returns:
      The timestamp.
    • setDateCreated

      public void setDateCreated(Timestamp time_)
      Deprecated.
      Set the date-time when this thread was created.
      Parameters:
      time_ - The timestamp
    • getDateModified

      public Timestamp getDateModified()
      Deprecated.
      Get this date-time when this thread was last modified.
      Returns:
      The timestamp.
    • setDateModified

      public void setDateModified(Timestamp time_)
      Deprecated.
      Set this date-time when this thread was last modified.
      Parameters:
      time_ - The timestamp.
    • getForumId

      public GlobalId getForumId()
      Deprecated.
      Get the GlobalId of the forum to which this thread belongs.
      Returns:
      The GlobalId.
    • setForumId

      public void setForumId(GlobalId forumId_)
      Deprecated.
      Set the GlobalId of the forum to which this thread belongs.
      Parameters:
      forumId_ -
    • getId

      public Long getId()
      Deprecated.
      Description copied from interface: LocalId
      Returns this object's local identifier, null if the object was not identified locally using a Long Id.
      Specified by:
      getId in interface LocalId
      Returns:
      Object's Id
      See Also:
    • setId

      public void setId(Long id_)
      Deprecated.
      Description copied from interface: LocalId
      Sets this object's local identifier.
      Specified by:
      setId in interface LocalId
      Parameters:
      id_ - Id to set
      See Also:
    • getRemoteId

      public RemoteId getRemoteId()
      Deprecated.
      Description copied from interface: GlobalId
      Returns the RemoteId of this object's instance identifier, null if the object is only locally identified.
      Specified by:
      getRemoteId in interface GlobalId
      Returns:
      Object's remote Id.
      See Also:
    • setRemoteId

      public void setRemoteId(RemoteId remoteId_)
      Deprecated.
      Description copied from interface: GlobalId
      Sets this object's remote identifier.
      Specified by:
      setRemoteId in interface GlobalId
      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

      public Attachment[] getResources()
      Deprecated.
      Get the resources attached to a thread.
      Returns:
      Objects identifying the resources.
    • setResources

      public void setResources(Attachment[] attachments_)
      Deprecated.
      Set the resources attached to a thread.
      Parameters:
      attachments_ - Objects identifying the resources.
    • getAllowedActions

      public Integer[] getAllowedActions()
      Deprecated.
      Get the actions that the user can do on this object.
      Returns:
      An array of the actions.
    • setAllowedActions

      public void setAllowedActions(Integer[] allowedActions_)
      Deprecated.
      Set the actions that the user can do on this object. NOTE: This setter exists only to allow for proper bean conversions when a DiscussionThread object is returned by the API. It CANNOT be used to update the allowed actions for a DiscussionThread
      Parameters:
      allowedActions_ - An array of the actions.