Java Doc for SiteManager.java in  » Content-Management-System » apache-lenya-2.0 » org » apache » lenya » cms » site » 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 » apache lenya 2.0 » org.apache.lenya.cms.site 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.lenya.cms.site.SiteManager

All known Subclasses:   org.apache.lenya.cms.site.AbstractSiteManager,
SiteManager
public interface SiteManager (Code)

A site structure management component.

A site manager has a dependence relation, which is always applied to documents of a single language. This means a document may not require a document of another language. Dependence on a set of resources must be a strict partial order < :

  • irreflexive: d < d does not hold for any resource d
  • antisymmetric: d < e and e < d implies d=e
  • transitive: d < e and e < f implies d < f

version:
   $Id: SiteManager.java 475069 2006-11-15 00:01:13Z andreas $


Field Summary
 StringROLE
     The Avalon role.


Method Summary
 voidadd(String path, Document document)
     Adds a document to the site structure.
 booleancontains(Document resource)
     Checks if the site structure contains a certain resource in a certain area.
Parameters:
  resource - The resource.
 booleancontainsInAnyLanguage(Document resource)
     Checks if the site structure contains any language version of a certain resource in a certain area.
Parameters:
  resource - The resource.
 voidcopy(Document sourceDocument, Document destinationDocument)
     Copies a document in the site structure.
 DocumentLocatorgetAvailableLocator(DocumentFactory factory, DocumentLocator locator)
     Checks if the document does already exist.
 Document[]getDocuments(DocumentFactory identityMap, Publication publication, String area)
     Returns all documents in a certain area.
Parameters:
  identityMap - The identityMap to use.
Parameters:
  publication - The publication.
Parameters:
  area - The area.
 DocumentLocator[]getRequiredResources(DocumentFactory map, DocumentLocator locator)
     Returns the resources which are required by a certain resource.
Parameters:
  map - The identity map to operate on.
Parameters:
  locator - The depending locator.
 SiteNode[]getRequiringResources(DocumentFactory map, SiteNode resource)
     Returns the resources which require a certain resource.
Parameters:
  map - The identity map to operate on.
Parameters:
  resource - The required resource.
 SiteStructuregetSiteStructure(DocumentFactory map, Publication publication, String area)
    
Parameters:
  map - The identity map.
Parameters:
  publication - The publication.
Parameters:
  area - The area.
 booleanisVisibleInNav(Document document)
     Returns the visibility of a node in the navigation.
Parameters:
  document - The document.
 booleanrequires(DocumentFactory map, SiteNode dependingResource, SiteNode requiredResource)
     Checks if a resource requires another one.
Parameters:
  map - The identity map to operate on.
Parameters:
  dependingResource - The depending resource.
Parameters:
  requiredResource - The required resource.
 voidset(String path, Document document)
     Sets a document to the site structure.
 voidsetVisibleInNav(Document document, boolean visibleInNav)
     Sets the visibility of a node in the navigation.
 SiteNode[]sortAscending(SiteNode[] nodes)
     Sorts a set of nodes using the "requires" relation.
Parameters:
  nodes - The set.

Field Detail
ROLE
String ROLE(Code)
The Avalon role.





Method Detail
add
void add(String path, Document document) throws SiteException(Code)
Adds a document to the site structure.
Parameters:
  path - The path.
Parameters:
  document - The document to add.
throws:
  SiteException - if the document is already contained.



contains
boolean contains(Document resource) throws SiteException(Code)
Checks if the site structure contains a certain resource in a certain area.
Parameters:
  resource - The resource. A boolean value.
throws:
  SiteException - if an error occurs.



containsInAnyLanguage
boolean containsInAnyLanguage(Document resource) throws SiteException(Code)
Checks if the site structure contains any language version of a certain resource in a certain area.
Parameters:
  resource - The resource. A boolean value.
throws:
  SiteException - if an error occurs.



copy
void copy(Document sourceDocument, Document destinationDocument) throws SiteException(Code)
Copies a document in the site structure.
Parameters:
  sourceDocument - The source document.
Parameters:
  destinationDocument - The destination document.
throws:
  SiteException - when something went wrong.



getAvailableLocator
DocumentLocator getAvailableLocator(DocumentFactory factory, DocumentLocator locator) throws SiteException(Code)
Checks if the document does already exist. If it does, returns a non-existing document with a similar document ID. If it does not, the original document is returned.
Parameters:
  factory - The document factory.
Parameters:
  locator - The locator. A locator.
throws:
  SiteException - if the new document could not be built.



getDocuments
Document[] getDocuments(DocumentFactory identityMap, Publication publication, String area) throws SiteException(Code)
Returns all documents in a certain area.
Parameters:
  identityMap - The identityMap to use.
Parameters:
  publication - The publication.
Parameters:
  area - The area. An array of documents.
throws:
  SiteException - if an error occurs.



getRequiredResources
DocumentLocator[] getRequiredResources(DocumentFactory map, DocumentLocator locator) throws SiteException(Code)
Returns the resources which are required by a certain resource.
Parameters:
  map - The identity map to operate on.
Parameters:
  locator - The depending locator. An array of resources.
throws:
  SiteException - if an error occurs.



getRequiringResources
SiteNode[] getRequiringResources(DocumentFactory map, SiteNode resource) throws SiteException(Code)
Returns the resources which require a certain resource.
Parameters:
  map - The identity map to operate on.
Parameters:
  resource - The required resource. An array of resources.
throws:
  SiteException - if an error occurs.



getSiteStructure
SiteStructure getSiteStructure(DocumentFactory map, Publication publication, String area) throws SiteException(Code)

Parameters:
  map - The identity map.
Parameters:
  publication - The publication.
Parameters:
  area - The area. The object that holds the site structure information.
throws:
  SiteException - if an error occurs.



isVisibleInNav
boolean isVisibleInNav(Document document) throws SiteException(Code)
Returns the visibility of a node in the navigation.
Parameters:
  document - The document. A boolean value.
throws:
  SiteException - if an error occurs.



requires
boolean requires(DocumentFactory map, SiteNode dependingResource, SiteNode requiredResource) throws SiteException(Code)
Checks if a resource requires another one.
Parameters:
  map - The identity map to operate on.
Parameters:
  dependingResource - The depending resource.
Parameters:
  requiredResource - The required resource. A boolean value.
throws:
  SiteException - if an error occurs.



set
void set(String path, Document document) throws SiteException(Code)
Sets a document to the site structure.
Parameters:
  path - The path.
Parameters:
  document - The document to add.
throws:
  SiteException - if the document is already contained or if the path doesn't exist.



setVisibleInNav
void setVisibleInNav(Document document, boolean visibleInNav) throws SiteException(Code)
Sets the visibility of a node in the navigation. It is meant to hide specific nodes within the "public" navigation whereas the node is visible within the info/site area.
Parameters:
  document - The document.
Parameters:
  visibleInNav - The visibility.
throws:
  SiteException - if an error occurs.



sortAscending
SiteNode[] sortAscending(SiteNode[] nodes) throws SiteException(Code)
Sorts a set of nodes using the "requires" relation.
Parameters:
  nodes - The set. A sorted array of nodes.
throws:
  SiteException - if an error occurs.



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