|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.lenya.cms.site.AbstractSiteManager
public abstract class AbstractSiteManager
Abstract base class for site managers.
| Nested Class Summary | |
|---|---|
class |
AbstractSiteManager.NodeComparator
Compares nodes according to the dependence relation. |
| Field Summary | |
|---|---|
protected org.apache.avalon.framework.service.ServiceManager |
manager
|
| Fields inherited from interface org.apache.lenya.cms.site.SiteManager |
|---|
ROLE |
| Constructor Summary | |
|---|---|
AbstractSiteManager()
Ctor. |
|
| Method Summary | |
|---|---|
protected boolean |
check(DocumentFactory map,
NodeSet set)
Checks if the dependence relation is a strict partial order. |
protected boolean |
isAntisymmetric(DocumentFactory map,
NodeSet set)
Checks if the dependence relation is antisymmetric. |
protected boolean |
isIrreflexive(DocumentFactory map,
NodeSet set)
Checks if the dependence relation is irreflexive. |
protected boolean |
isTransitive(DocumentFactory map,
NodeSet set)
Checks if the dependence relation is transitive. |
void |
service(org.apache.avalon.framework.service.ServiceManager manager)
|
SiteNode[] |
sortAscending(SiteNode[] nodes)
Sorts a set of nodes using the "requires" relation. |
| 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 |
| Methods inherited from interface org.apache.lenya.cms.site.SiteManager |
|---|
add, contains, containsInAnyLanguage, copy, getAvailableLocator, getDocuments, getRequiredResources, getRequiringResources, getSiteStructure, isVisibleInNav, requires, set, setVisibleInNav |
| Field Detail |
|---|
protected org.apache.avalon.framework.service.ServiceManager manager
| Constructor Detail |
|---|
public AbstractSiteManager()
manager - The service manager.| Method Detail |
|---|
public void service(org.apache.avalon.framework.service.ServiceManager manager)
throws org.apache.avalon.framework.service.ServiceException
service in interface org.apache.avalon.framework.service.Serviceableorg.apache.avalon.framework.service.ServiceExceptionServiceable.service(org.apache.avalon.framework.service.ServiceManager)
public SiteNode[] sortAscending(SiteNode[] nodes)
throws SiteException
SiteManager
sortAscending in interface SiteManagernodes - The set.
SiteException - if an error occurs.org.apache.lenya.cms.site.SiteManager#sortAscending(org.apache.lenya.cms.publication.util.DocumentSet)
protected boolean check(DocumentFactory map,
NodeSet set)
throws SiteException
map - The identity map to operate on.set - The document set to check.
SiteException - when something went wrong.
protected boolean isAntisymmetric(DocumentFactory map,
NodeSet set)
throws SiteException
map - The identity map to operate on.set - The document set to check.
SiteException - when something went wrong.
protected boolean isTransitive(DocumentFactory map,
NodeSet set)
throws SiteException
map - The identity map to operate on.set - The document set to check.
SiteException - when something went wrong.
protected boolean isIrreflexive(DocumentFactory map,
NodeSet set)
throws SiteException
map - The identity map to operate on.set - The document set.
SiteException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||