Class DiscussionItem
- java.lang.Object
-
- com.opentext.livelink.service.core.ServiceDataObject
-
- com.opentext.livelink.service.collaboration.DiscussionItem
-
- All Implemented Interfaces:
IServiceDataObject,java.io.Serializable
public class DiscussionItem extends ServiceDataObject implements java.io.Serializable
DiscussionItem is the abstract class for Topic and Reply objects. It provides a base class used to return generic lists of topics and replies.- Version:
- 2013-10-25
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DiscussionItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TopicAttachment[]getAttachments()Gets the attachments related to the discussion item.TopicAttachmentgetAttachments(int index)Gets the value at the specified index in the Attachments array.java.lang.StringgetContent()Gets the content of the discussion item.longgetID()Gets the ID of the discussion item.longgetOrdering()Gets the order of the discussion item.longgetParentID()Gets the parent ID of the discussion item.longgetPostedBy()Gets the ID of the user who posted the discussion item.java.util.DategetPostedDate()Gets the date the discussion item was posted.java.lang.StringgetSubject()Gets the subject of the discussion item.voidload(com.opentext.api.LLValue value)Deserialize an ServiceDataObject from an LLValue that is received from Livelink.voidsetAttachments(int index, TopicAttachment value)Sets the value at the specified index in the fAttachments array.voidsetAttachments(TopicAttachment[] value)Sets the attachments related to the discussion item.voidsetContent(java.lang.String value)Sets the content of the discussion item.voidsetID(long value)Sets the ID of the discussion item.voidsetOrdering(long value)Sets the order of the discussion item.voidsetParentID(long value)Sets the parent ID of the discussion item.voidsetPostedBy(long value)Sets the ID of the user who posted the discussion item.voidsetPostedDate(java.util.Date value)Sets the date the discussion item was posted.voidsetSubject(java.lang.String value)Sets the subject of the discussion item.com.opentext.api.LLValuetoLLValue()Serialize an SDO object to an LLValue that can be sent to Livelink.java.lang.StringtoString()Returns a string representation of the object consisting of the object name and any features and their values within square brackets.
-
-
-
Method Detail
-
setAttachments
public void setAttachments(TopicAttachment[] value)
Sets the attachments related to the discussion item.
-
getAttachments
public TopicAttachment[] getAttachments()
Gets the attachments related to the discussion item.
-
setAttachments
public void setAttachments(int index, TopicAttachment value)Sets the value at the specified index in the fAttachments array.
-
getAttachments
public TopicAttachment getAttachments(int index)
Gets the value at the specified index in the Attachments array.
-
setContent
public void setContent(java.lang.String value)
Sets the content of the discussion item.
-
getContent
public java.lang.String getContent()
Gets the content of the discussion item.
-
setID
public void setID(long value)
Sets the ID of the discussion item.
-
getID
public long getID()
Gets the ID of the discussion item.
-
setOrdering
public void setOrdering(long value)
Sets the order of the discussion item.
-
getOrdering
public long getOrdering()
Gets the order of the discussion item.
-
setParentID
public void setParentID(long value)
Sets the parent ID of the discussion item.
-
getParentID
public long getParentID()
Gets the parent ID of the discussion item.
-
setPostedBy
public void setPostedBy(long value)
Sets the ID of the user who posted the discussion item.
-
getPostedBy
public long getPostedBy()
Gets the ID of the user who posted the discussion item.
-
setPostedDate
public void setPostedDate(java.util.Date value)
Sets the date the discussion item was posted.
-
getPostedDate
public java.util.Date getPostedDate()
Gets the date the discussion item was posted.
-
setSubject
public void setSubject(java.lang.String value)
Sets the subject of the discussion item.
-
getSubject
public java.lang.String getSubject()
Gets the subject of the discussion item.
-
load
public void load(com.opentext.api.LLValue value)
Description copied from interface:IServiceDataObjectDeserialize an ServiceDataObject from an LLValue that is received from Livelink. The LLValue is an Assoc that contains all of the features of this SDO. These features may refer to other SDOs and contain arrays of primitive values or SDOs. Each referenced SDO, will have its load() method called as well. Note: this is an internal method not meant to be called by clients.- Specified by:
loadin interfaceIServiceDataObject- Overrides:
loadin classServiceDataObject- Parameters:
value- the LLValue containing the data to be loaded
-
toLLValue
public com.opentext.api.LLValue toLLValue()
Description copied from interface:IServiceDataObjectSerialize an SDO object to an LLValue that can be sent to Livelink. Each feature of the SDO is stored in a key of the LLValue Assoc. Any references to other SDOs cause their toLLValue() method to be called. Note: this is an internal method not meant to be called by clients.- Specified by:
toLLValuein interfaceIServiceDataObject- Overrides:
toLLValuein classServiceDataObject- Returns:
- Returns the LLValue object that represents this SDO
-
toString
public java.lang.String toString()
Description copied from class:ServiceDataObjectReturns a string representation of the object consisting of the object name and any features and their values within square brackets. Intended for simple debugging or logging of an SDO.- Overrides:
toStringin classServiceDataObject
-
-