| java.lang.Object org.sakaiproject.news.impl.BasicNewsService
Method Summary | |
public String | archive(String siteId, Document doc, Stack stack, String arg3, List attachments) | public void | destroy() Returns to uninitialized state. | public NewsChannel | getChannel(String source) Retrieves a NewsChannel object indexed by a URL.
Parameters: source - The url for the channel. | public List | getChannels() Retrieves a list of URLs for NewsChannel objects currently indexed by the service. | public Entity | getEntity(Reference ref) | public Collection | getEntityAuthzGroups(Reference ref) | public Collection | getEntityAuthzGroups(Reference ref, String userId) | public String | getEntityDescription(Reference ref) | public ResourceProperties | getEntityResourceProperties(Reference ref) | public String | getEntityUrl(Reference ref) | public HttpAccess | getHttpAccess() | public String | getLabel() | public List | getNewsitems(String source) Retrieves a list of items from an rss feed.
Parameters: source - The url for the feed. | public List | getNewsitems(String source, Filter filter) Retrieves a list of items from an rss feed.
Parameters: source - The url for the feed. Parameters: filter - A filtering object to accept NewsItems, or null if no filtering is desired. | public void | init() Final initialization, once all dependencies are set. | public boolean | isUpdateAvailable(String source) Checks whether an update is available for the rss news feed.
Parameters: source - The url for the feed. | public String | merge(String siteId, Element root, String archivePath, String fromSiteId, Map attachmentNames, Map userIdTrans, Set userListAllowImport) | public String[] | myToolIds() | public boolean | parseEntityReference(String reference, Reference ref) | public void | removeChannel(String source) Removes a NewsChannel object from the service. | public void | setMemoryService(MemoryService service) Dependency: MemoryService. | public void | transferCopyEntities(String fromContext, String toContext, List ids) | public String | trimToNull(String value) | protected void | updateChannel(String source)
Checks whether channel is cached. | public boolean | willArchiveMerge() | public boolean | willImport() |
ATTR_TOP_REFRESH | final public static String ATTR_TOP_REFRESH(Code) | | |
DEFAULT_EXPIRATION | final protected static int DEFAULT_EXPIRATION(Code) | | |
destroy | public void destroy()(Code) | | Returns to uninitialized state.
|
getChannels | public List getChannels()(Code) | | Retrieves a list of URLs for NewsChannel objects currently indexed by the service.
A list of NewsChannel objects (possibly empty). |
init | public void init()(Code) | | Final initialization, once all dependencies are set.
|
isUpdateAvailable | public boolean isUpdateAvailable(String source)(Code) | | Checks whether an update is available for the rss news feed.
Parameters: source - The url for the feed. true if update is available, false otherwise exception: NewsConnectionException - ,for errors making the connection. exception: NewsFormatException - ,for errors in the URL or errors parsing the feed. |
removeChannel | public void removeChannel(String source)(Code) | | Removes a NewsChannel object from the service.
Parameters: source - The url for the channel. |
setMemoryService | public void setMemoryService(MemoryService service)(Code) | | Dependency: MemoryService.
Parameters: service - The MemoryService. |
willArchiveMerge | public boolean willArchiveMerge()(Code) | | |
willImport | public boolean willImport()(Code) | | |
|
|