2006-11-06 05:16:01 +08:00
|
|
|
package hudson;
|
|
|
|
|
|
|
|
|
|
import java.util.Calendar;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Provides a RSS feed view of the data.
|
|
|
|
|
*
|
|
|
|
|
* @author Kohsuke Kawaguchi
|
|
|
|
|
*/
|
|
|
|
|
public interface FeedAdapter<E> {
|
2006-12-18 02:01:17 +08:00
|
|
|
/**
|
|
|
|
|
* Gets the human readable title of the entry.
|
|
|
|
|
* In RSS readers, this is usually displayed like an e-mail subject.
|
|
|
|
|
*/
|
2006-11-06 05:16:01 +08:00
|
|
|
String getEntryTitle(E entry);
|
2006-12-18 02:01:17 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Gets the URL that represents this entry.
|
|
|
|
|
* Relative to context root of the Hudson.
|
|
|
|
|
*/
|
2006-11-06 05:16:01 +08:00
|
|
|
String getEntryUrl(E entry);
|
2006-12-18 02:01:17 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Unique ID of each entry.
|
|
|
|
|
* RSS readers use this to determine what feeds are new and what are not.
|
|
|
|
|
*/
|
2006-11-06 05:16:01 +08:00
|
|
|
String getEntryID(E entry);
|
2006-12-18 02:01:17 +08:00
|
|
|
|
|
|
|
|
/**
|
2006-12-22 01:53:20 +08:00
|
|
|
* Timestamp of the last change in this entry.
|
2006-12-18 02:01:17 +08:00
|
|
|
*/
|
2006-11-06 05:16:01 +08:00
|
|
|
Calendar getEntryTimestamp(E entry);
|
|
|
|
|
}
|