|
Clearspace API (2.5.29) 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 newTrackback,
int objectType,
long objectID)
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(int objectType,
long objectID)
Factory method to create a trackback . |
void |
deleteAllTrackbacks(int objectType,
long objectID)
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(FeedbackResultFilter resultFilter,
int objectType,
long objectID)
Returns the number of incoming trackbacks on the object with the given objectID and objectType that match the criteria specified by the ResultFilter. |
int |
getTrackbackCount(int objectType,
long objectID)
Returns the number of incoming trackbacks on the object with the given objectID and objectType. |
JiveIterator<Trackback> |
getTrackbacks(FeedbackResultFilter resultFilter,
int objectType,
long objectID)
Returns a Iterable for all the incoming trackbacks on this object that match the criteria specified by the ResultFilter. |
JiveIterator<Trackback> |
getTrackbacks(int objectType,
long objectID)
Return an Iterable for all the incoming trackbacks on this object. |
| Methods inherited from interface com.jivesoftware.community.JiveManager |
|---|
destroy |
| 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 objectType,
long objectID)
objectType - objectID -
int getTrackbackCount(FeedbackResultFilter resultFilter,
int objectType,
long objectID)
resultFilter - a ResultFilter object to perform filtering and sorting with.objectType - objectID -
Trackback createTrackback(int objectType,
long objectID)
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.
objectType - objectID -
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 newTrackback,
int objectType,
long objectID)
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.
objectType - objectID - newTrackback - 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.
IllegalArgumentException - if the trackback does not belong to the object.
void deleteAllTrackbacks(int objectType,
long objectID)
JiveIterator<Trackback> getTrackbacks(int objectType,
long objectID)
objectType - objectID -
JiveIterator<Trackback> getTrackbacks(FeedbackResultFilter resultFilter,
int objectType,
long objectID)
resultFilter - a ResultFilter object to perform filtering and sorting with.objectType - objectID -
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||