|
Clearspace API (1.10.16) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Trackback
A container for jive trackback data.
TrackBacks, "...a framework for peer-to-peer communication and notifications between web sites", are defined here:
http://www.sixapart.com/pronet/docs/trackback_spec
In additon to the external trackback specification above, this
class supports an internal trackback concept. An internal trackback
is simply a trackback between JiveContentObjects.
| Method Summary | |
|---|---|
java.util.Date |
getCreationDate()
Returns the date this trackback was created. |
java.lang.String |
getExcerpt()
Returns the excerpt of the trackback. |
long |
getID()
Returns the id of this trackback, or -1 if this trackback hasn't been added to the database yet. |
java.lang.String |
getIPAddress()
Returns the IP address of the person that authored this comment. |
JiveContentObject |
getJiveContentObject()
Returns the JiveContentObject this trackback belongs to. |
java.util.Date |
getModificationDate()
Returns the date this trackback was last modified. |
java.util.Map |
getProperties()
Retrieve a map of all the extended properties for the trackback. |
java.lang.String |
getSenderName()
Returns the sender name of the trackback. |
java.lang.String |
getTitle()
Returns the title of the trackback. |
java.lang.String |
getUnfilteredProperty(java.lang.String name)
Returns an extended property of the trackback, bypassing any filters. |
java.lang.String |
getURL()
Returns the URL of the trackback. |
boolean |
isModerated()
Returns true if the trackbacks is moderated, false otherwise. |
void |
save()
Saves the state of this trackback to the database |
void |
setCreationDate(java.util.Date creationDate)
Sets the creation date of this trackback. |
void |
setExcerpt(java.lang.String excerpt)
Set the excerpt of the trackback. |
void |
setIPAddress(java.lang.String ipaddress)
Set the IP address of the person who authored this trackback. |
void |
setModerated(boolean moderated)
Sets whether the trackbacks is moderated or not. |
void |
setModificationDate(java.util.Date modificationDate)
Sets the date this trackback was last modified. |
void |
setSenderName(java.lang.String senderName)
Set the sender name of the trackback. |
void |
setTitle(java.lang.String title)
Set the title of the trackback. |
void |
setURL(java.lang.String url)
Set the URL of the trackback. |
| Methods inherited from interface com.jivesoftware.community.JiveObject |
|---|
getObjectType |
| Method Detail |
|---|
long getID()
getID in interface JiveObjectJiveContentObject getJiveContentObject()
JiveContentObject this trackback belongs to.
JiveContentObject this trackback belongs to.java.lang.String getTitle()
void setTitle(java.lang.String title)
throws UnauthorizedException
title - the title of the trackback
UnauthorizedException - if user is not allowed to edit the titlejava.lang.String getExcerpt()
void setExcerpt(java.lang.String excerpt)
throws UnauthorizedException
excerpt - the excerpt of the trackback
UnauthorizedException - if user is not allowed to edit the excerptjava.lang.String getURL()
void setURL(java.lang.String url)
throws UnauthorizedException
url - the url of the trackback
UnauthorizedException - if user is not allowed to edit the urljava.lang.String getSenderName()
void setSenderName(java.lang.String senderName)
throws UnauthorizedException
senderName - the name of the sender
UnauthorizedException - if user is not allowed to edit the sender namejava.lang.String getIPAddress()
void setIPAddress(java.lang.String ipaddress)
throws UnauthorizedException
ipaddress - the IP address of the person who authored this trackback.
UnauthorizedException - if user is not allowed to edit IP addressboolean isModerated()
If the trackbacks value is less than the blog's minimum, then the trackbacks will not be displayed by default.
void setModerated(boolean moderated)
throws UnauthorizedException
When calling this method results in a trackbacks become unmoderated, then the actions listed above will all be executed. Any change in moderation also results in the modified date of the trackbacks being updated.
Only administrators and moderators can call this method.
The authToken of the user must be passed into this method as a parameter for moderation auditing purposes.
moderated - true if the trackbacks is to be moderated, false otherwise.
UnauthorizedException - if does not have Permissions.SYSTEM_ADMIN,
BlogPermissions.BLOG_ADMIN or Permissions.MODERATOR permissions.java.util.Date getCreationDate()
void setCreationDate(java.util.Date creationDate)
throws UnauthorizedException
creationDate - the date this trackback was created.
UnauthorizedException - if does not have ADMIN permissions.java.util.Date getModificationDate()
void setModificationDate(java.util.Date modificationDate)
throws UnauthorizedException
modificationDate - the date this trackback was modified.
UnauthorizedException - if not allowed to edit the trackback.java.util.Map getProperties()
Values returned from the map are filtered through the filter system. To retrieve unfiltered
property values use the getUnfilteredProperty(String) method.
java.lang.String getUnfilteredProperty(java.lang.String name)
Because properties are not filtered before being returned, this method should be used with caution. In particular, you should avoid showing unfiltered data in an environment where embedded HTML might be interpreted.
name - the name of the property to get.
void save()
throws UnauthorizedException
UnauthorizedException - If the user is not allowed to modify this trackback
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||