Jive API (3.0.13) Core Javadocs

com.jivesoftware.community
Interface JiveContentObject

All Superinterfaces:
JiveObject, UserAuthoredObject
All Known Subinterfaces:
Announcement, BlogPost, Comment, Document, ForumMessage, ForumThread, Media, Poll, PrivateMessage, Trackback, VersionableContentObject, Video

public interface JiveContentObject
extends JiveObject, UserAuthoredObject

A base object that most content objects in Jive SBS implement.


Nested Class Summary
static class JiveContentObject.Field
           
static class JiveContentObject.Status
           
 
Method Summary
 Document getBody()
          Return a summary of the jive object content.
 long getContainerID()
          Returns the system ID of the parent object.
 int getContainerType()
          Returns the type of the parent object.
 Date getCreationDate()
          Gets the creation date of the jive object
 JiveObjectType getJiveObjectType()
          Gets the object type object linking this object to the various subsystems.
 Date getModificationDate()
          Gets the modification date of the jive object
 String getPlainBody()
          Returns the body of the jive object content with no markup applied.
 String getPlainSubject()
          Returns the title of the jive object content with no markup applied
 JiveContentObject.Status getStatus()
          Returns the visibility of the content object.
 String getSubject()
          Return the title of the jive object content
 String getUnfilteredSubject()
          Returns the subject, bypassing any active filters.
 
Methods inherited from interface com.jivesoftware.community.JiveObject
getID, getObjectType
 
Methods inherited from interface com.jivesoftware.community.UserAuthoredObject
getAuthors, getUser
 

Method Detail

getSubject

String getSubject()
Return the title of the jive object content

Returns:
the title of the jive object content

getPlainSubject

String getPlainSubject()
Returns the title of the jive object content with no markup applied

Returns:
the title of the jive object content with no markup applied

getBody

Document getBody()
Return a summary of the jive object content.

Returns:
a summary of the jive object content.

getPlainBody

String getPlainBody()
Returns the body of the jive object content with no markup applied. In the case of a document with a binary body the text returned will be the document summary.

Returns:
the body of the jive object content with no markup applied

getCreationDate

Date getCreationDate()
Gets the creation date of the jive object

Returns:
the date the jive object was created

getModificationDate

Date getModificationDate()
Gets the modification date of the jive object

Returns:
the date the jive object was last modified

getUnfilteredSubject

String getUnfilteredSubject()
Returns the subject, bypassing any active filters. Because filters often provide security, this method should be used with caution. In particular, you should avoid showing unfiltered data in an environment where embedded HTML might be interpreted.

Unfiltered content is necessary for a few reasons. One is when saving Jive content to another persistence mechanism such as an XML format.

Returns:
the unfiltered subject of the object.

getStatus

JiveContentObject.Status getStatus()
Returns the visibility of the content object. Objects that are in a non published state (Draft,Awaiting moderation etc..) will have visiblity that will return false when visibility.isVisible() is called.

Returns:
visibility object containing the visibilty and name.

getContainerID

long getContainerID()
Returns the system ID of the parent object.

Returns:
The id of the parent container.
Since:
2.1

getContainerType

int getContainerType()
Returns the type of the parent object.

Returns:
The content type of the parent container.
Since:
2.1

getJiveObjectType

JiveObjectType getJiveObjectType()
Gets the object type object linking this object to the various subsystems.

Returns:
the JiveObjectType for the object.

Jive Product Page

Copyright © 1999-2007 Jive Software.