Java Doc for BasicNewsService.java in  » ERP-CRM-Financial » sakai » org » sakaiproject » news » impl » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » sakai » org.sakaiproject.news.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.sakaiproject.news.impl.BasicNewsService

BasicNewsService
public class BasicNewsService implements NewsService,EntityTransferrer(Code)

BasicNewsService implements the NewsService using the Rome RSS package.



Field Summary
final public static  StringATTR_TOP_REFRESH
    
final protected static  intDEFAULT_EXPIRATION
    
protected  MemoryServicem_memoryService
     Dependency: MemoryService.
protected  Cachem_storage
    


Method Summary
public  Stringarchive(String siteId, Document doc, Stack stack, String arg3, List attachments)
    
public  voiddestroy()
     Returns to uninitialized state.
public  NewsChannelgetChannel(String source)
     Retrieves a NewsChannel object indexed by a URL.
Parameters:
  source - The url for the channel.
public  ListgetChannels()
     Retrieves a list of URLs for NewsChannel objects currently indexed by the service.
public  EntitygetEntity(Reference ref)
    
public  CollectiongetEntityAuthzGroups(Reference ref)
    
public  CollectiongetEntityAuthzGroups(Reference ref, String userId)
    
public  StringgetEntityDescription(Reference ref)
    
public  ResourcePropertiesgetEntityResourceProperties(Reference ref)
    
public  StringgetEntityUrl(Reference ref)
    
public  HttpAccessgetHttpAccess()
    
public  StringgetLabel()
    
public  ListgetNewsitems(String source)
     Retrieves a list of items from an rss feed.
Parameters:
  source - The url for the feed.
public  ListgetNewsitems(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  voidinit()
     Final initialization, once all dependencies are set.
public  booleanisUpdateAvailable(String source)
     Checks whether an update is available for the rss news feed.
Parameters:
  source - The url for the feed.
public  Stringmerge(String siteId, Element root, String archivePath, String fromSiteId, Map attachmentNames, Map userIdTrans, Set userListAllowImport)
    
public  String[]myToolIds()
    
public  booleanparseEntityReference(String reference, Reference ref)
    
public  voidremoveChannel(String source)
     Removes a NewsChannel object from the service.
public  voidsetMemoryService(MemoryService service)
     Dependency: MemoryService.
public  voidtransferCopyEntities(String fromContext, String toContext, List ids)
    
public  StringtrimToNull(String value)
    
protected  voidupdateChannel(String source)
    

Checks whether channel is cached.

public  booleanwillArchiveMerge()
    
public  booleanwillImport()
    

Field Detail
ATTR_TOP_REFRESH
final public static String ATTR_TOP_REFRESH(Code)



DEFAULT_EXPIRATION
final protected static int DEFAULT_EXPIRATION(Code)



m_memoryService
protected MemoryService m_memoryService(Code)
Dependency: MemoryService.



m_storage
protected Cache m_storage(Code)





Method Detail
archive
public String archive(String siteId, Document doc, Stack stack, String arg3, List attachments)(Code)



destroy
public void destroy()(Code)
Returns to uninitialized state.



getChannel
public NewsChannel getChannel(String source) throws NewsConnectionException, NewsFormatException(Code)
Retrieves a NewsChannel object indexed by a URL.
Parameters:
  source - The url for the channel. A NewsChannel object (possibly null).
exception:
  NewsConnectionException - ,for errors making the connection.
exception:
  NewsFormatException - ,for errors in the URL or errors parsing the feed.



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).



getEntity
public Entity getEntity(Reference ref)(Code)



getEntityAuthzGroups
public Collection getEntityAuthzGroups(Reference ref)(Code)



getEntityAuthzGroups
public Collection getEntityAuthzGroups(Reference ref, String userId)(Code)



getEntityDescription
public String getEntityDescription(Reference ref)(Code)



getEntityResourceProperties
public ResourceProperties getEntityResourceProperties(Reference ref)(Code)



getEntityUrl
public String getEntityUrl(Reference ref)(Code)



getHttpAccess
public HttpAccess getHttpAccess()(Code)



getLabel
public String getLabel()(Code)



getNewsitems
public List getNewsitems(String source) throws NewsConnectionException, NewsFormatException(Code)
Retrieves a list of items from an rss feed.
Parameters:
  source - The url for the feed. A list of NewsItem objects retrieved from the feed.
exception:
  NewsConnectionException - ,for errors making the connection.
exception:
  NewsFormatException - ,for errors in the URL or errors parsing the feed.



getNewsitems
public List getNewsitems(String source, Filter filter) throws NewsConnectionException, NewsFormatException(Code)
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. A list of NewsItem objects retrieved from the feed.
exception:
  NewsConnectionException - ,for errors making the connection.
exception:
  NewsFormatException - ,for errors in the URL or errors parsing the feed.



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.



merge
public String merge(String siteId, Element root, String archivePath, String fromSiteId, Map attachmentNames, Map userIdTrans, Set userListAllowImport)(Code)



myToolIds
public String[] myToolIds()(Code)



parseEntityReference
public boolean parseEntityReference(String reference, Reference ref)(Code)



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.



transferCopyEntities
public void transferCopyEntities(String fromContext, String toContext, List ids)(Code)



trimToNull
public String trimToNull(String value)(Code)



updateChannel
protected void updateChannel(String source) throws NewsConnectionException, NewsFormatException(Code)

Checks whether channel is cached. If not or if it's expired, retrieve the feed and update the cache


Parameters:
  source - The url for the news feed
exception:
  NewsConnectionException - ,for errors making the connection.
exception:
  NewsFormatException - ,for errors in the URL or errors parsing the feed.



willArchiveMerge
public boolean willArchiveMerge()(Code)



willImport
public boolean willImport()(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.