public class SiteFactory extends DefaultTraversableAmetysObjectFactory
AmetysObjectFactory
for creating traversable Site
.Modifier and Type | Field and Description |
---|---|
private SiteConfigurationExtensionPoint |
_siteConfigurationExtensionPoint |
private SiteManager |
_siteManager |
_ametysFactoryExtensionPoint, _manager, _nodetype, _repository, _resolver, _scheme
Constructor and Description |
---|
SiteFactory() |
Modifier and Type | Method and Description |
---|---|
Site |
getAmetysObject(Node node,
String parentPath)
Creates a
AmetysObject from a persistent JCR node. |
SiteConfigurationExtensionPoint |
getSiteConfigurationTypeExtensionPoint()
Retrieves the site configuration type extension point
|
(package private) SiteManager |
getSiteManager() |
void |
service(ServiceManager smanager) |
createChild, getChild, getChildren, hasChild
configure, getAmetysObjectById, getAmetysObjectById, getNode, getNodetypes, getParent, getScheme, getWorkspaceNode, hasAmetysObjectForId
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
private SiteManager _siteManager
private SiteConfigurationExtensionPoint _siteConfigurationExtensionPoint
public SiteFactory()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class SimpleAmetysObjectFactory
ServiceException
public Site getAmetysObject(Node node, String parentPath) throws AmetysRepositoryException
JCRAmetysObjectFactory
AmetysObject
from a persistent JCR node.getAmetysObject
in interface JCRAmetysObjectFactory<SimpleAmetysObject>
getAmetysObject
in class DefaultTraversableAmetysObjectFactory
node
- the JCR node to use.parentPath
- the parent Path in the Ametys hierarchy,
may be null
if not known yet.AmetysRepositoryException
- if an error occurs.SiteManager getSiteManager()
public SiteConfigurationExtensionPoint getSiteConfigurationTypeExtensionPoint()