|
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 TrackbackManager
Manages the trackback feature within Clearspace
| Method Summary | |
|---|---|
void |
addTrackback(Trackback trackback)
Adds a new trackback to this object When a trackback is being added, it is first run through all trackback interceptors that are installed. |
Trackback |
createTrackback()
Factory method to create a trackback . |
void |
deleteAllTrackbacks()
Deletes all trackbacks on the object. |
void |
deleteTrackback(Trackback trackback)
Deletes a trackback on this object. |
long |
getObjectID()
Returns the id of the object managed by this instance. |
int |
getObjectType()
Returns the type (one of the values in JiveConstants) of the object managed by this instance. |
Trackback |
getTrackback(long trackbackID)
Returns the Trackback with the supplied id. |
int |
getTrackbackCount()
Returns the number of incoming trackbacks on this object. |
int |
getTrackbackCount(FeedbackResultFilter resultFilter)
Returns the number of incoming trackbacks on this object that match the criteria specified by the ResultFilter. |
JiveIterator<Trackback> |
getTrackbacks()
Return an Iterable for all the incoming trackbacks on this object. |
JiveIterator<Trackback> |
getTrackbacks(FeedbackResultFilter resultFilter)
Returns a Iterable for all the incoming trackbacks on this object that match the criteria specified by the ResultFilter. |
| Method Detail |
|---|
long getObjectID()
int getObjectType()
JiveConstants) of the object managed by this instance.
JiveConstants) of the object managed by this instance.int getTrackbackCount()
int getTrackbackCount(FeedbackResultFilter resultFilter)
resultFilter - a ResultFilter object to perform filtering and
sorting with.
Trackback createTrackback()
Note: creating the Trackback object is only one step of the process. You must also add the trackback to the object before it is saved to the database.
Trackback getTrackback(long trackbackID)
throws com.jivesoftware.community.TrackbackNotFoundException
Trackback with the supplied id.
trackbackID - the id of the trackback to return;
Trackback with the supplied id.
TrackbackNotFoundException - if no trackback with that id exists.
void addTrackback(Trackback trackback)
throws RejectedException
When a trackback is being added, it is first run through all trackback interceptors that are installed. Each interceptor has the option to reject the trackback by throwing a RejectedException. For example, an interceptor might reject all trackbacks coming from a certain IP.
trackback - trackback to add to this object
RejectedException - if one of the installed
interceptors prevents the trackback from being posted.JiveInterceptorvoid deleteTrackback(Trackback trackback)
trackback - the trackback to delete.
java.lang.IllegalArgumentException - if the trackback does not belong to the object.void deleteAllTrackbacks()
JiveIterator<Trackback> getTrackbacks()
JiveIterator<Trackback> getTrackbacks(FeedbackResultFilter resultFilter)
resultFilter - a ResultFilter object to perform filtering and
sorting with.
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||