Class SitesServiceImpl
- java.lang.Object
-
- org.craftercms.studio.impl.v2.service.site.SitesServiceImpl
-
- All Implemented Interfaces:
SitesService
public class SitesServiceImpl extends Object implements SitesService
-
-
Constructor Summary
Constructors Constructor Description SitesServiceImpl(SitesService sitesServiceInternal, PublishingProgressServiceInternal publishingProgressServiceInternal, ContentRepository contentRepository, SiteService siteService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearPublishingLock(String siteId)
Clear publishing lock for siteList<org.craftercms.commons.plugin.model.PluginDescriptor>
getAvailableBlueprints()
Get list of available blueprintsorg.craftercms.commons.plugin.model.PluginDescriptor
getBlueprintDescriptor(String id)
Get the blueprint descriptor from the global repoString
getBlueprintLocation(String blueprintId)
Get blueprint locationPublishStatus
getPublishingStatus(String siteId)
Get publishing status for siteorg.craftercms.commons.plugin.model.PluginDescriptor
getSiteBlueprintDescriptor(String id)
Get the blueprint descriptor from a site repovoid
updateSite(String siteId, String name, String description)
Updates the name and description for the given site
-
-
-
Constructor Detail
-
SitesServiceImpl
@ConstructorProperties({"sitesServiceInternal","publishingProgressServiceInternal","contentRepository","siteService"}) public SitesServiceImpl(SitesService sitesServiceInternal, PublishingProgressServiceInternal publishingProgressServiceInternal, ContentRepository contentRepository, SiteService siteService)
-
-
Method Detail
-
getAvailableBlueprints
public List<org.craftercms.commons.plugin.model.PluginDescriptor> getAvailableBlueprints()
Description copied from interface:SitesService
Get list of available blueprints- Specified by:
getAvailableBlueprints
in interfaceSitesService
- Returns:
- list of blueprints
-
getBlueprintDescriptor
public org.craftercms.commons.plugin.model.PluginDescriptor getBlueprintDescriptor(String id)
Description copied from interface:SitesService
Get the blueprint descriptor from the global repo- Specified by:
getBlueprintDescriptor
in interfaceSitesService
- Parameters:
id
- the id of the blueprint- Returns:
- the descriptor object or null if not found
-
getBlueprintLocation
public String getBlueprintLocation(String blueprintId)
Description copied from interface:SitesService
Get blueprint location- Specified by:
getBlueprintLocation
in interfaceSitesService
- Parameters:
blueprintId
- blueprint id- Returns:
- blueprint location
-
getSiteBlueprintDescriptor
public org.craftercms.commons.plugin.model.PluginDescriptor getSiteBlueprintDescriptor(String id)
Description copied from interface:SitesService
Get the blueprint descriptor from a site repo- Specified by:
getSiteBlueprintDescriptor
in interfaceSitesService
- Parameters:
id
- the id of the site- Returns:
- the blueprint object or null if not found
-
updateSite
public void updateSite(String siteId, String name, String description) throws SiteNotFoundException, SiteAlreadyExistsException, InvalidParametersException
Description copied from interface:SitesService
Updates the name and description for the given site- Specified by:
updateSite
in interfaceSitesService
- Parameters:
siteId
- the id of the sitename
- the name of the sitedescription
- the description of the site- Throws:
SiteNotFoundException
- if the site doesn't existSiteAlreadyExistsException
InvalidParametersException
-
getPublishingStatus
public PublishStatus getPublishingStatus(String siteId) throws SiteNotFoundException
Description copied from interface:SitesService
Get publishing status for site- Specified by:
getPublishingStatus
in interfaceSitesService
- Parameters:
siteId
- site identifier- Returns:
- publishing status
- Throws:
SiteNotFoundException
-
clearPublishingLock
public void clearPublishingLock(String siteId) throws SiteNotFoundException
Description copied from interface:SitesService
Clear publishing lock for site- Specified by:
clearPublishingLock
in interfaceSitesService
- Parameters:
siteId
- site identifier- Throws:
SiteNotFoundException
-
-