| 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface SiteStructure
Object to hold a site structure information.
| Method Summary | |
|---|---|
 SiteNode | 
add(java.lang.String path)
Adds a site node.  | 
 Link | 
add(java.lang.String path,
    Document doc)
Adds a link to a document.  | 
 SiteNode | 
add(java.lang.String path,
    java.lang.String followingSiblingPath)
Adds a site node before a specific other node.  | 
 boolean | 
contains(java.lang.String path)
Checks if a node is contained for a certain path.  | 
 boolean | 
contains(java.lang.String path,
         java.lang.String language)
Checks if a link is contained for a certain path and language.  | 
 boolean | 
containsByUuid(java.lang.String uuid,
               java.lang.String language)
Checks if the structure contains a link with a certain UUID and language.  | 
 boolean | 
containsInAnyLanguage(java.lang.String uuid)
Checks if the structure contains any language version of a document.  | 
 java.lang.String | 
getArea()
 | 
 Link | 
getByUuid(java.lang.String uuid,
          java.lang.String language)
Returns a node for a certain UUID.  | 
 SiteNode | 
getNode(java.lang.String path)
 | 
 SiteNode[] | 
getNodes()
 | 
 Publication | 
getPublication()
 | 
 Node | 
getRepositoryNode()
 | 
 SiteNode[] | 
getTopLevelNodes()
 | 
| Methods inherited from interface org.apache.lenya.cms.repository.RepositoryItem | 
|---|
getSession | 
| Method Detail | 
|---|
Node getRepositoryNode()
Publication getPublication()
java.lang.String getArea()
SiteNode[] getNodes()
SiteNode getNode(java.lang.String path)
                 throws SiteException
path - The path.
SiteException - if no node is contained for the path.boolean contains(java.lang.String path)
path - The path.
boolean contains(java.lang.String path,
                 java.lang.String language)
path - The path.language - The language.
boolean containsByUuid(java.lang.String uuid,
                       java.lang.String language)
uuid - The UUID.language - The language.
boolean containsInAnyLanguage(java.lang.String uuid)
uuid - The uuid.
Link getByUuid(java.lang.String uuid,
               java.lang.String language)
               throws SiteException
uuid - The UUID.language - The language.
SiteException - if no node is contained for the UUID.
Link add(java.lang.String path,
         Document doc)
         throws SiteException
path - The path.doc - The document.
SiteException - if the document is already contained or the node
         for this path already contains a link for this language.
SiteNode add(java.lang.String path)
             throws SiteException
path - The path.
SiteException - if the path is already contained.
SiteNode add(java.lang.String path,
             java.lang.String followingSiblingPath)
             throws SiteException
path - The path.followingSiblingPath - The path of the node which will be the
        following sibling of the node to insert.
SiteException - if the path is already contained.SiteNode[] getTopLevelNodes()
  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||