|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SiteManager
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 < :
Field Summary | |
---|---|
static java.lang.String |
ROLE
The Avalon role. |
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 locator)
Checks if the document does already exist. |
Document[] |
getDocuments(DocumentFactory identityMap,
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 publication,
java.lang.String area)
|
boolean |
isVisibleInNav(Document document)
Returns the visibility of a node in the navigation. |
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 |
setVisibleInNav(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. |
Field Detail |
---|
static final java.lang.String ROLE
Method Detail |
---|
boolean requires(DocumentFactory map, SiteNode dependingResource, SiteNode requiredResource) throws SiteException
map
- The identity map to operate on.dependingResource
- The depending resource.requiredResource
- The required resource.
SiteException
- if an error occurs.DocumentLocator[] getRequiredResources(DocumentFactory map, DocumentLocator locator) throws SiteException
map
- The identity map to operate on.locator
- The depending locator.
SiteException
- if an error occurs.SiteNode[] getRequiringResources(DocumentFactory map, SiteNode resource) throws SiteException
map
- The identity map to operate on.resource
- The required resource.
SiteException
- if an error occurs.void add(java.lang.String path, Document document) throws SiteException
path
- The path.document
- The document to add.
SiteException
- if the document is already contained.void set(java.lang.String path, Document document) throws SiteException
path
- The path.document
- The document to add.
SiteException
- if the document is already contained or if the path doesn't exist.boolean contains(Document resource) throws SiteException
resource
- The resource.
SiteException
- if an error occurs.boolean containsInAnyLanguage(Document resource) throws SiteException
resource
- The resource.
SiteException
- if an error occurs.void copy(Document sourceDocument, Document destinationDocument) throws SiteException
sourceDocument
- The source document.destinationDocument
- The destination document.
SiteException
- when something went wrong.void setVisibleInNav(Document document, boolean visibleInNav) throws SiteException
document
- The document.visibleInNav
- The visibility.
SiteException
- if an error occurs.boolean isVisibleInNav(Document document) throws SiteException
document
- The document.
SiteException
- if an error occurs.Document[] getDocuments(DocumentFactory identityMap, Publication publication, java.lang.String area) throws SiteException
identityMap
- The identityMap to use.publication
- The publication.area
- The area.
SiteException
- if an error occurs.SiteNode[] sortAscending(SiteNode[] nodes) throws SiteException
nodes
- The set.
SiteException
- if an error occurs.SiteStructure getSiteStructure(DocumentFactory map, Publication publication, java.lang.String area) throws SiteException
map
- The identity map.publication
- The publication.area
- The area.
SiteException
- if an error occurs.DocumentLocator getAvailableLocator(DocumentFactory factory, DocumentLocator locator) throws SiteException
factory
- The document factory.locator
- The locator.
SiteException
- if the new document could not be built.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |