public interface Site extends Serializable
Modifier and Type | Method and Description |
---|---|
Site |
clone()
Retrieve an deep copy of this site.
|
List<Catalog> |
getCatalogs()
Retrieve a list of product, category and offer groupings that
this site has access to
|
Long |
getId()
Unique/internal id for a site.
|
String |
getName()
The display name for a site.
|
SandBox |
getProductionSandbox()
If null, then this is a single-site installation.
|
String |
getSiteIdentifierType()
Deprecated.
use
getSiteResolutionType()
Intended to be used along with the #getSiteIdentifierValue()
by the SiteResolver to determine if this is the current site. |
String |
getSiteIdentifierValue()
Used along with
getSiteResolutionType() to determine the current
Site for a given request. |
SiteResolutionType |
getSiteResolutionType()
Intended to be used along with the #getSiteIdentifierValue()
by an implementation of SiteResolver to determine
if this is the current site.
|
boolean |
isDeactivated() |
boolean |
isTemplateSite()
This method will return true when the given site was created based on a template.
|
void |
setCatalogs(List<Catalog> catalogs)
Set the list of product, category and offer groupings that
this site has access to
|
void |
setDeactivated(boolean deactivated) |
void |
setId(Long id)
Sets the internal id for a site.
|
void |
setName(String name)
Sets the displayName for a site.
|
void |
setProductionSandbox(SandBox sandbox)
Sets the production sandbox.
|
void |
setSiteIdentifierType(String siteIdentifierType)
Deprecated.
Use
setSiteResolutionType(SiteResolutionType)
Sets the site identifier type. |
void |
setSiteIdentifierValue(String siteIdentifierValue) |
void |
setSiteResolutionType(SiteResolutionType siteResolutionType)
Sets the site resolution type.
|
Long getId()
void setId(Long id)
id
- String getName()
void setName(String name)
name
- String getSiteIdentifierType()
getSiteResolutionType()
Intended to be used along with the #getSiteIdentifierValue()
by the SiteResolver to determine if this is the current site.void setSiteIdentifierType(String siteIdentifierType)
setSiteResolutionType(SiteResolutionType)
Sets the site identifier type.siteIdentifierType
- getSiteIdentifierType()
String getSiteIdentifierValue()
getSiteResolutionType()
to determine the current
Site for a given request.void setSiteIdentifierValue(String siteIdentifierValue)
siteIdentifierValue
- SandBox getProductionSandbox()
void setProductionSandbox(SandBox sandbox)
sandbox
- getProductionSandbox();
SiteResolutionType getSiteResolutionType()
void setSiteResolutionType(SiteResolutionType siteResolutionType)
siteResolutionType
- getSiteResolutionType()
List<Catalog> getCatalogs()
void setCatalogs(List<Catalog> catalogs)
catalogs
- a list of catalog groupingsSite clone()
boolean isDeactivated()
void setDeactivated(boolean deactivated)
boolean isTemplateSite()
Copyright © 2014. All rights reserved.