public class DefaultCMSAdminSiteService extends AbstractCMSAdminService implements CMSAdminSiteService
AbstractService.SerializableDTOACTIVECATALOGVERSION, ACTIVESITE, CLONE_CONTEXT, RESTORE_CONTEXTmodelService, sessionService, txManagertenant| Constructor and Description |
|---|
DefaultCMSAdminSiteService() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<CatalogModel> |
getAllCatalogs(CMSSiteModel site)
Returns all catalogs for the specified site
site. |
java.util.Collection<ComposedTypeModel> |
getAllPageTypes()
returns all composed type which extend the AbstractPage
|
protected CatalogVersionService |
getCatalogVersionService() |
java.util.Map<java.lang.String,java.lang.String> |
getCloneContext()
Returns clone context.
|
protected CMSSiteDao |
getCmsSiteDao() |
java.util.Map<java.lang.String,java.lang.Object> |
getRestoreContext()
Returns restore context.
|
CMSSiteModel |
getSiteForId(java.lang.String id)
Returns a site with the given ID
|
java.util.Collection<CMSSiteModel> |
getSites()
Get all sites which are defined in the CMS
|
protected TypeService |
getTypeService() |
boolean |
hasActiveCatalogVersion()
checks if the current user has set an active catalog version
|
boolean |
hasActiveSite()
checks if the current user has set an active site
|
boolean |
hasPreviewURL()
check if the active site has a preview url
|
boolean |
hasPreviewURL(CMSSiteModel site)
check if the given site has a preview url
|
void |
setActiveCatalogVersion(CatalogVersionModel catalogVersion)
Set a catalog version as active.
|
void |
setActiveCatalogVersion(java.lang.String catalogId,
java.lang.String versionId)
Set a catalog version (via catalog id and version id) as active.
|
void |
setActiveSite(CMSSiteModel site)
Sets a site as active (the site the current user is working on)
|
void |
setActiveSiteForId(java.lang.String id)
Sets a site as active (the site the current user is working on)
|
void |
setCatalogVersionService(CatalogVersionService catalogVersionService) |
void |
setCloneContext(java.util.Map<java.lang.String,java.lang.String> context)
Set a clone context.
|
void |
setCmsSiteDao(CMSSiteDao cmsSiteDao) |
void |
setRestoreContext(java.util.Map<java.lang.String,java.lang.Object> context)
Set a restore context in the current session.
|
void |
setTypeService(TypeService typeService) |
getActiveCatalogVersion, getActiveSite, getBaseSiteService, getUserService, setBaseSiteService, setUserServicegetModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerafterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplaceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetActiveCatalogVersion, getActiveSitepublic java.util.Collection<CMSSiteModel> getSites()
CMSAdminSiteServicegetSites in interface CMSAdminSiteServicepublic boolean hasActiveSite()
CMSAdminSiteServicehasActiveSite in interface CMSAdminSiteServicepublic void setActiveSite(CMSSiteModel site)
CMSAdminSiteServicesetActiveSite in interface CMSAdminSiteServicesite - the cms site modelpublic boolean hasActiveCatalogVersion()
CMSAdminSiteServicehasActiveCatalogVersion in interface CMSAdminSiteServicepublic void setActiveCatalogVersion(java.lang.String catalogId,
java.lang.String versionId)
throws CMSItemNotFoundException
CMSAdminSiteServicesetActiveCatalogVersion in interface CMSAdminSiteServicecatalogId - the catalog idversionId - the version idCMSItemNotFoundException - if no catalog version with the given parameters is foundpublic boolean hasPreviewURL()
CMSAdminSiteServicehasPreviewURL in interface CMSAdminSiteServicepublic boolean hasPreviewURL(CMSSiteModel site)
CMSAdminSiteServicehasPreviewURL in interface CMSAdminSiteServicesite - the site to checkpublic void setActiveCatalogVersion(CatalogVersionModel catalogVersion)
CMSAdminSiteServicesetActiveCatalogVersion in interface CMSAdminSiteServicecatalogVersion - the catalog version modelpublic java.util.Collection<ComposedTypeModel> getAllPageTypes()
CMSAdminSiteServicegetAllPageTypes in interface CMSAdminSiteServiceprotected CMSSiteDao getCmsSiteDao()
public void setCmsSiteDao(CMSSiteDao cmsSiteDao)
protected CatalogVersionService getCatalogVersionService()
public void setCatalogVersionService(CatalogVersionService catalogVersionService)
protected TypeService getTypeService()
public void setTypeService(TypeService typeService)
public java.util.Collection<CatalogModel> getAllCatalogs(CMSSiteModel site)
CMSAdminSiteServicesite. This means all the content catalogs of the
site as well as the product and classification system catalogs which belong to the stores associated
with the site.getAllCatalogs in interface CMSAdminSiteServicesite - the CMS sitepublic CMSSiteModel getSiteForId(java.lang.String id) throws AmbiguousIdentifierException, UnknownIdentifierException
CMSAdminSiteServicegetSiteForId in interface CMSAdminSiteServiceid - the id of the siteAmbiguousIdentifierException - thrown when more than one object has been found.UnknownIdentifierException - thrown when no object has been foundpublic void setActiveSiteForId(java.lang.String id)
throws AmbiguousIdentifierException,
UnknownIdentifierException
CMSAdminSiteServicesetActiveSiteForId in interface CMSAdminSiteServiceid - id of the siteAmbiguousIdentifierException - thrown when more than one object has been found.UnknownIdentifierException - thrown when no object has been foundpublic void setCloneContext(java.util.Map<java.lang.String,java.lang.String> context)
CMSAdminSiteServicesetCloneContext in interface CMSAdminSiteServicecontext - clone contextpublic java.util.Map<java.lang.String,java.lang.String> getCloneContext()
CMSAdminSiteServicegetCloneContext in interface CMSAdminSiteServicepublic void setRestoreContext(java.util.Map<java.lang.String,java.lang.Object> context)
CMSAdminSiteServicesetRestoreContext in interface CMSAdminSiteServicecontext - restore contextpublic java.util.Map<java.lang.String,java.lang.Object> getRestoreContext()
CMSAdminSiteServicegetRestoreContext in interface CMSAdminSiteServiceCopyright © 2018 SAP SE. All Rights Reserved.