public interface CMSAdminSiteService
| Modifier and Type | Method and Description |
|---|---|
CatalogVersionModel |
getActiveCatalogVersion() |
CMSSiteModel |
getActiveSite()
Returns the active site (the site the current user is working on).
|
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
|
java.util.Map<java.lang.String,java.lang.String> |
getCloneContext()
Returns clone context.
|
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
|
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 |
setCloneContext(java.util.Map<java.lang.String,java.lang.String> context)
Set a clone context.
|
void |
setRestoreContext(java.util.Map<java.lang.String,java.lang.Object> context)
Set a restore context in the current session.
|
java.util.Collection<CMSSiteModel> getSites()
CMSSiteModel getSiteForId(java.lang.String id) throws AmbiguousIdentifierException, UnknownIdentifierException
id - the id of the siteAmbiguousIdentifierException - thrown when more than one object has been found.UnknownIdentifierException - thrown when no object has been foundvoid setActiveSiteForId(java.lang.String id)
throws AmbiguousIdentifierException,
UnknownIdentifierException
id - id of the siteAmbiguousIdentifierException - thrown when more than one object has been found.UnknownIdentifierException - thrown when no object has been foundvoid setActiveSite(CMSSiteModel site)
site - the cms site modelCMSSiteModel getActiveSite()
boolean hasActiveSite()
void setActiveCatalogVersion(java.lang.String catalogId,
java.lang.String versionId)
throws CMSItemNotFoundException
catalogId - the catalog idversionId - the version idCMSItemNotFoundException - if no catalog version with the given parameters is foundvoid setActiveCatalogVersion(CatalogVersionModel catalogVersion)
catalogVersion - the catalog version modelCatalogVersionModel getActiveCatalogVersion()
boolean hasActiveCatalogVersion()
java.util.Collection<ComposedTypeModel> getAllPageTypes()
boolean hasPreviewURL()
boolean hasPreviewURL(CMSSiteModel site)
site - the site to checkjava.util.Collection<CatalogModel> getAllCatalogs(CMSSiteModel site)
site. 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.site - the CMS sitevoid setCloneContext(java.util.Map<java.lang.String,java.lang.String> context)
context - clone contextjava.util.Map<java.lang.String,java.lang.String> getCloneContext()
void setRestoreContext(java.util.Map<java.lang.String,java.lang.Object> context)
context - restore contextjava.util.Map<java.lang.String,java.lang.Object> getRestoreContext()
Copyright © 2018 SAP SE. All Rights Reserved.