Class RepositorySiteServiceDAL
- java.lang.Object
-
- org.craftercms.studio.impl.v1.service.site.AbstractSiteServiceDAL
-
- org.craftercms.studio.impl.v1.service.site.dal.RepositorySiteServiceDAL
-
- All Implemented Interfaces:
SiteServiceDAL
public class RepositorySiteServiceDAL extends AbstractSiteServiceDAL
use content repository as data access layer for site configuration- Author:
- russdanner
-
-
Field Summary
Fields Modifier and Type Field Description protected ContentService
_contentService
-
Constructor Summary
Constructors Constructor Description RepositorySiteServiceDAL()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentService
getContentService()
getter for content serviceorg.dom4j.Document
getSiteConfiguration(String site)
given a site ID return the configuration as a document This method allows extensions to add additional properties to the configuration that are not made available through the site configuration objectvoid
setConfigFilePath(String configFilePath)
void
setContentService(ContentService service)
setter for content service
-
-
-
Field Detail
-
_contentService
protected ContentService _contentService
-
-
Method Detail
-
setConfigFilePath
public void setConfigFilePath(String configFilePath)
-
getSiteConfiguration
public org.dom4j.Document getSiteConfiguration(String site) throws SiteConfigNotFoundException
given a site ID return the configuration as a document This method allows extensions to add additional properties to the configuration that are not made available through the site configuration object- Parameters:
site
- the name of the site- Returns:
- a Document containing the entire site configuration
- Throws:
SiteConfigNotFoundException
-
getContentService
public ContentService getContentService()
getter for content service
-
setContentService
public void setContentService(ContentService service)
setter for content service
-
-