|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.lenya.cms.site.AbstractSiteManager org.apache.lenya.cms.site.topicmap.TopicMapSiteManager
public class TopicMapSiteManager
Site manager to support topic maps.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.lenya.cms.site.AbstractSiteManager |
---|
AbstractSiteManager.NodeComparator |
Field Summary |
---|
Fields inherited from class org.apache.lenya.cms.site.AbstractSiteManager |
---|
manager |
Fields inherited from interface org.apache.lenya.cms.site.SiteManager |
---|
ROLE |
Constructor Summary | |
---|---|
TopicMapSiteManager()
|
Method Summary | |
---|---|
void |
add(java.lang.String path,
Document document)
Adds a document to the site structure. |
boolean |
contains(Document resource)
Checks if the site structure contains a certain resource in a certain area. |
boolean |
containsInAnyLanguage(Document resource)
Checks if the site structure contains any language version of a certain resource in a certain area. |
void |
copy(Document sourceDocument,
Document destinationDocument)
Copies a document in the site structure. |
DocumentLocator |
getAvailableLocator(DocumentFactory factory,
DocumentLocator document)
Checks if the document does already exist. |
Document[] |
getDocuments(DocumentFactory map,
Publication publication,
java.lang.String area)
Returns all documents in a certain area. |
DocumentLocator[] |
getRequiredResources(DocumentFactory map,
DocumentLocator locator)
Returns the resources which are required by a certain resource. |
SiteNode[] |
getRequiringResources(DocumentFactory map,
SiteNode resource)
Returns the resources which require a certain resource. |
SiteStructure |
getSiteStructure(DocumentFactory map,
Publication publiation,
java.lang.String area)
|
boolean |
isVisibleInNav(Document document)
Returns the visibility of a node in the navigation. |
void |
move(SiteNode source,
java.lang.String destinationPath)
|
boolean |
requires(DocumentFactory map,
SiteNode dependingResource,
SiteNode requiredResource)
Checks if a resource requires another one. |
void |
set(java.lang.String path,
Document document)
Sets a document to the site structure. |
void |
setLabel(Document document,
java.lang.String label)
|
void |
setVisibleInNav(Document document,
boolean visibleInNav)
Sets the visibility of a node in the navigation. |
Methods inherited from class org.apache.lenya.cms.site.AbstractSiteManager |
---|
check, isAntisymmetric, isIrreflexive, isTransitive, service, sortAscending |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TopicMapSiteManager()
Method Detail |
---|
public boolean requires(DocumentFactory map, SiteNode dependingResource, SiteNode requiredResource) throws SiteException
SiteManager
map
- The identity map to operate on.dependingResource
- The depending resource.requiredResource
- The required resource.
SiteException
- if an error occurs.SiteManager.requires(org.apache.lenya.cms.publication.DocumentFactory,
org.apache.lenya.cms.site.SiteNode, org.apache.lenya.cms.site.SiteNode)
public SiteNode[] getRequiringResources(DocumentFactory map, SiteNode resource) throws SiteException
SiteManager
map
- The identity map to operate on.resource
- The required resource.
SiteException
- if an error occurs.SiteManager.getRequiringResources(org.apache.lenya.cms.publication.DocumentFactory,
org.apache.lenya.cms.site.SiteNode)
public void add(java.lang.String path, Document document) throws SiteException
SiteManager
path
- The path.document
- The document to add.
SiteException
- if the document is already contained.org.apache.lenya.cms.site.SiteManager#add(org.apache.lenya.cms.publication.Document)
public boolean contains(Document resource) throws SiteException
SiteManager
resource
- The resource.
SiteException
- if an error occurs.SiteManager.contains(org.apache.lenya.cms.publication.Document)
public boolean containsInAnyLanguage(Document resource) throws SiteException
SiteManager
resource
- The resource.
SiteException
- if an error occurs.SiteManager.containsInAnyLanguage(org.apache.lenya.cms.publication.Document)
public void copy(Document sourceDocument, Document destinationDocument) throws SiteException
SiteManager
sourceDocument
- The source document.destinationDocument
- The destination document.
SiteException
- when something went wrong.SiteManager.copy(org.apache.lenya.cms.publication.Document,
org.apache.lenya.cms.publication.Document)
public void setVisibleInNav(Document document, boolean visibleInNav) throws SiteException
SiteManager
document
- The document.visibleInNav
- The visibility.
SiteException
- if an error occurs.SiteManager.setVisibleInNav(org.apache.lenya.cms.publication.Document,
boolean)
public Document[] getDocuments(DocumentFactory map, Publication publication, java.lang.String area) throws SiteException
SiteManager
map
- The identityMap to use.publication
- The publication.area
- The area.
SiteException
- if an error occurs.SiteManager.getDocuments(org.apache.lenya.cms.publication.DocumentFactory,
org.apache.lenya.cms.publication.Publication, java.lang.String)
public SiteStructure getSiteStructure(DocumentFactory map, Publication publiation, java.lang.String area) throws SiteException
map
- The identity map.publiation
- The publication.area
- The area.
SiteException
- if an error occurs.SiteManager.getSiteStructure(org.apache.lenya.cms.publication.DocumentFactory,
org.apache.lenya.cms.publication.Publication, java.lang.String)
public DocumentLocator getAvailableLocator(DocumentFactory factory, DocumentLocator document) throws SiteException
SiteManager
factory
- The document factory.document
- The locator.
SiteException
- if the new document could not be built.org.apache.lenya.cms.site.SiteManager#getAvailableDocument(org.apache.lenya.cms.publication.Document)
public boolean isVisibleInNav(Document document) throws SiteException
SiteManager
document
- The document.
SiteException
- if an error occurs.public void set(java.lang.String path, Document document) throws SiteException
SiteManager
path
- The path.document
- The document to add.
SiteException
- if the document is already contained or if the path doesn't exist.public DocumentLocator[] getRequiredResources(DocumentFactory map, DocumentLocator locator) throws SiteException
SiteManager
map
- The identity map to operate on.locator
- The depending locator.
SiteException
- if an error occurs.public void move(SiteNode source, java.lang.String destinationPath) throws SiteException
SiteException
public void setLabel(Document document, java.lang.String label) throws SiteException
SiteException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |