Class AbstractSitemapElementFactory
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory
org.ametys.plugins.repository.jcr.DefaultTraversableAmetysObjectFactory
org.ametys.web.repository.page.jcr.AbstractSitemapElementFactory
- All Implemented Interfaces:
AmetysObjectFactory<SimpleAmetysObject>
,JCRAmetysObjectFactory<SimpleAmetysObject>
,Component
,Configurable
,LogEnabled
,Serviceable
- Direct Known Subclasses:
DefaultPageFactory
,SitemapFactory
AmetysObjectFactory
for creating AbstractSitemapElement
.-
Field Summary
Fields inherited from class org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory
_ametysFactoryExtensionPoint, _manager, _nodetype, _repository, _resolver, _scheme
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the extension point of page data typesGet the view parameters manager<A extends AmetysObject>
AresolveAmetysObject
(javax.jcr.Node node) Resolves anAmetysObject
from a node.void
service
(ServiceManager serviceManager) Methods inherited from class org.ametys.plugins.repository.jcr.DefaultTraversableAmetysObjectFactory
createChild, getAmetysObject, getChild, getChildren, hasChild
Methods inherited from class org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory
configure, getAmetysObjectById, getAmetysObjectById, getNode, getNodetypes, getParent, getScheme, getWorkspaceNode, hasAmetysObjectForId
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Constructor Details
-
AbstractSitemapElementFactory
public AbstractSitemapElementFactory()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classSimpleAmetysObjectFactory
- Throws:
ServiceException
-
resolveAmetysObject
public <A extends AmetysObject> A resolveAmetysObject(javax.jcr.Node node) throws AmetysRepositoryException, javax.jcr.RepositoryException Resolves anAmetysObject
from a node.- Type Parameters:
A
- the actual type ofAmetysObject
.- Parameters:
node
- the node.- Returns:
- the
AmetysObject
resolved. - Throws:
AmetysRepositoryException
- if an error occurs.javax.jcr.RepositoryException
- if a JCR error occurs.
-
getPageDataTypeExtensionPoint
Retrieves the extension point of page data types- Returns:
- the extension point of page data types
-
getViewParametersManager
Get the view parameters manager- Returns:
- the view parameters manager
-