Java Doc for I_CmsResourceCollector.java in  » Content-Management-System » opencms » org » opencms » file » collectors » 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 » Content Management System » opencms » org.opencms.file.collectors 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.opencms.file.collectors.I_CmsResourceCollector

All known Subclasses:   org.opencms.file.collectors.A_CmsResourceCollector,
I_CmsResourceCollector
public interface I_CmsResourceCollector extends Comparable(Code)
A collector that generates list of org.opencms.file.CmsResource objects from the VFS.


author:
   Alexander Kandzior
version:
   $Revision: 1.12 $
since:
   6.0.0





Method Summary
 ListgetCollectorNames()
    
 StringgetCreateLink(CmsObject cms)
    
 StringgetCreateLink(CmsObject cms, String collectorName, String param)
    
 StringgetCreateParam(CmsObject cms)
    
 StringgetCreateParam(CmsObject cms, String collectorName, String param)
    
 StringgetDefaultCollectorName()
    
 StringgetDefaultCollectorParam()
    
 intgetOrder()
     Returns the "order weight" of this collector.

The "order weight" is important because two collector classes may provide a collector with the same name.

 ListgetResults(CmsObject cms)
    
 ListgetResults(CmsObject cms, String collectorName, String param)
    
 voidsetDefaultCollectorName(String collectorName)
    
 voidsetDefaultCollectorParam(String param)
    
 voidsetOrder(int order)
    



Method Detail
getCollectorNames
List getCollectorNames()(Code)
Returns a list of all collector names (Strings) this collector implementation supports.

a list of all collector names this collector implementation supports




getCreateLink
String getCreateLink(CmsObject cms) throws CmsException, CmsDataAccessException(Code)
Returns the link that must be executed when a user clicks on the direct edit "new" button on a list created by the default collector.

If this method returns null, it indicated that the selected collector implementation does not support a "create link", and so no "new" button will should shown on lists generated with this collector.


Parameters:
  cms - the current CmsObject the link to execute after a "new" button was clicked
throws:
  CmsException - if something goes wrong
throws:
  CmsDataAccessException - if the parameter attribute of the corresponding collector tag is invalid
See Also:   I_CmsResourceCollector.getCreateParam(CmsObject,String,String)




getCreateLink
String getCreateLink(CmsObject cms, String collectorName, String param) throws CmsException, CmsDataAccessException(Code)
Returns the link that must be executed when a user clicks on the direct edit "new" button on a list created by the named collector.

If this method returns null, it indicated that the selected collector implementation does not support a "create link", and so no "new" button will should shown on lists generated with this collector.


Parameters:
  cms - the current CmsObject
Parameters:
  collectorName - the name of the collector to use
Parameters:
  param - an optional collector parameter the link to execute after a "new" button was clicked
throws:
  CmsException - if something goes wrong
throws:
  CmsDataAccessException - if the parameter attribute of the corresponding collector tag is invalid
See Also:   I_CmsResourceCollector.getCreateParam(CmsObject,String,String)




getCreateParam
String getCreateParam(CmsObject cms) throws CmsDataAccessException(Code)
Returns the default parameter that must be passed to the I_CmsResourceCollector.getCreateLink(CmsObject,String,String) method.

If this method returns null, it indicates that the selected collector implementation does not support a "create link", and so no "new" button will should shown on lists generated with this collector.


Parameters:
  cms - the current CmsObject the parameter that will be passed to the I_CmsResourceCollector.getCreateLink(CmsObject,String,String) method, or null
throws:
  CmsDataAccessException - if the param attrib of the corresponding collector tag is invalid
See Also:   I_CmsResourceCollector.getCreateLink(CmsObject,String,String)




getCreateParam
String getCreateParam(CmsObject cms, String collectorName, String param) throws CmsDataAccessException(Code)
Returns the parameter that must be passed to the I_CmsResourceCollector.getCreateLink(CmsObject,String,String) method.

If this method returns null, it indicates that the selected collector implementation does not support a "create link", and so no "new" button will should shown on lists generated with this collector.


Parameters:
  cms - the current CmsObject
Parameters:
  collectorName - the name of the collector to use
Parameters:
  param - an optional collector parameter from the current page context the parameter that will be passed to the I_CmsResourceCollector.getCreateLink(CmsObject,String,String) method, or null
throws:
  CmsDataAccessException - if the parameter attribute of the corresponding collector tag is invalid
See Also:   I_CmsResourceCollector.getCreateLink(CmsObject,String,String)




getDefaultCollectorName
String getDefaultCollectorName()(Code)
Returns the default collector name to use for collecting resources.

the default collector name




getDefaultCollectorParam
String getDefaultCollectorParam()(Code)
Returns the default collector parameter to use for collecting resources.

the default collector parameter




getOrder
int getOrder()(Code)
Returns the "order weight" of this collector.

The "order weight" is important because two collector classes may provide a collector with the same name. If this is the case, the collector implementation with the higher order number "overrules" the lower order number class.

the "order weight" of this collector




getResults
List getResults(CmsObject cms) throws CmsDataAccessException, CmsException(Code)
Returns a list of org.opencms.file.CmsResource Objects that are gathered in the VFS using the default collector name and parameter.


Parameters:
  cms - the current CmsObject a list of CmsXmlContent objects
throws:
  CmsException - if something goes wrong
throws:
  CmsDataAccessException - if the parameter attribute of the corresponding collector tag is invalid




getResults
List getResults(CmsObject cms, String collectorName, String param) throws CmsDataAccessException, CmsException(Code)
Returns a list of org.opencms.file.CmsResource Objects that are gathered in the VFS using the named collector.


Parameters:
  cms - the current CmsObject
Parameters:
  collectorName - the name of the collector to use
Parameters:
  param - an optional collector parameter a list of CmsXmlContent objects
throws:
  CmsException - if something goes wrong
throws:
  CmsDataAccessException - if the parameter attribute of the corresponding collector tag is invalid




setDefaultCollectorName
void setDefaultCollectorName(String collectorName)(Code)
Sets the default collector name to use for collecting resources.


Parameters:
  collectorName - the default collector name




setDefaultCollectorParam
void setDefaultCollectorParam(String param)(Code)
Sets the default collector parameter to use for collecting resources.


Parameters:
  param - the default collector parameter




setOrder
void setOrder(int order)(Code)
Sets the "order weight" of this collector.


Parameters:
  order - the order weight to set
See Also:   I_CmsResourceCollector.getOrder()




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