Class NewsInfo
- java.lang.Object
-
- com.opentext.livelink.service.core.ServiceDataObject
-
- com.opentext.livelink.service.collaboration.NewsInfo
-
- All Implemented Interfaces:
IServiceDataObject
,java.io.Serializable
public class NewsInfo extends ServiceDataObject implements java.io.Serializable
NewsInfo represents a news item.- Version:
- 2013-08-26
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NewsInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NewsAttachment[]
getAttachments()
Gets the attachments related to the news item.NewsAttachment
getAttachments(int index)
Gets the value at the specified index in the Attachments array.java.lang.Long
getCreatedBy()
Gets the ID of the member who created the news item.java.util.Date
getEffectiveDate()
Gets the effective (start) date of the news item.java.util.Date
getExpirationDate()
Gets the expiration date of the news item.java.lang.String
getHeadline()
Gets the headline of the news item.long
getID()
Gets the ID of the news item.java.lang.String
getName()
Gets the name of the news item.long
getParentID()
Gets the parent ID of the news item.java.lang.String
getStory()
Gets the story of the news item.void
load(com.opentext.api.LLValue value)
Deserialize an ServiceDataObject from an LLValue that is received from Livelink.void
setAttachments(int index, NewsAttachment value)
Sets the value at the specified index in the fAttachments array.void
setAttachments(NewsAttachment[] value)
Sets the attachments related to the news item.void
setCreatedBy(java.lang.Long value)
Sets the ID of the member who created the news item.void
setEffectiveDate(java.util.Date value)
Sets the effective (start) date of the news item.void
setExpirationDate(java.util.Date value)
Sets the expiration date of the news item.void
setHeadline(java.lang.String value)
Sets the headline of the news item.void
setID(long value)
Sets the ID of the news item.void
setName(java.lang.String value)
Sets the name of the news item.void
setParentID(long value)
Sets the parent ID of the news item.void
setStory(java.lang.String value)
Sets the story of the news item.com.opentext.api.LLValue
toLLValue()
Serialize an SDO object to an LLValue that can be sent to Livelink.java.lang.String
toString()
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(NewsAttachment[] value)
Sets the attachments related to the news item.
-
getAttachments
public NewsAttachment[] getAttachments()
Gets the attachments related to the news item.
-
setAttachments
public void setAttachments(int index, NewsAttachment value)
Sets the value at the specified index in the fAttachments array.
-
getAttachments
public NewsAttachment getAttachments(int index)
Gets the value at the specified index in the Attachments array.
-
setCreatedBy
public void setCreatedBy(java.lang.Long value)
Sets the ID of the member who created the news item.
-
getCreatedBy
public java.lang.Long getCreatedBy()
Gets the ID of the member who created the news item.
-
setEffectiveDate
public void setEffectiveDate(java.util.Date value)
Sets the effective (start) date of the news item.
-
getEffectiveDate
public java.util.Date getEffectiveDate()
Gets the effective (start) date of the news item.
-
setExpirationDate
public void setExpirationDate(java.util.Date value)
Sets the expiration date of the news item.
-
getExpirationDate
public java.util.Date getExpirationDate()
Gets the expiration date of the news item.
-
setHeadline
public void setHeadline(java.lang.String value)
Sets the headline of the news item.
-
getHeadline
public java.lang.String getHeadline()
Gets the headline of the news item.
-
setID
public void setID(long value)
Sets the ID of the news item.
-
getID
public long getID()
Gets the ID of the news item.
-
setName
public void setName(java.lang.String value)
Sets the name of the news item.
-
getName
public java.lang.String getName()
Gets the name of the news item.
-
setParentID
public void setParentID(long value)
Sets the parent ID of the news item.
-
getParentID
public long getParentID()
Gets the parent ID of the news item.
-
setStory
public void setStory(java.lang.String value)
Sets the story of the news item.
-
getStory
public java.lang.String getStory()
Gets the story of the news item.
-
load
public void load(com.opentext.api.LLValue value)
Description copied from interface:IServiceDataObject
Deserialize 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:
load
in interfaceIServiceDataObject
- Overrides:
load
in classServiceDataObject
- Parameters:
value
- the LLValue containing the data to be loaded
-
toLLValue
public com.opentext.api.LLValue toLLValue()
Description copied from interface:IServiceDataObject
Serialize 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:
toLLValue
in interfaceIServiceDataObject
- Overrides:
toLLValue
in classServiceDataObject
- Returns:
- Returns the LLValue object that represents this SDO
-
toString
public java.lang.String toString()
Description copied from class:ServiceDataObject
Returns 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:
toString
in classServiceDataObject
-
-