@Entity public class SiteImpl extends Object implements Site, Status
Modifier and Type | Field and Description |
---|---|
protected ArchiveStatus |
archiveStatus |
protected List<Catalog> |
catalogs |
protected Boolean |
deactivated |
protected Long |
id |
protected String |
name |
protected SandBox |
productionSandbox |
protected String |
siteIdentifierType |
protected String |
siteIdentifierValue |
Constructor and Description |
---|
SiteImpl() |
Modifier and Type | Method and Description |
---|---|
void |
checkCloneable(Site site) |
Site |
clone()
Retrieve an deep copy of this site.
|
Character |
getArchived() |
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() |
String |
getSiteIdentifierValue()
Used along with
Site.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 |
isActive() |
boolean |
isDeactivated() |
boolean |
isTemplateSite()
This method will return true when the given site was created based on a template.
|
void |
setArchived(Character archived) |
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 productionSandbox)
Sets the production sandbox.
|
void |
setSiteIdentifierType(String siteIdentifierType) |
void |
setSiteIdentifierValue(String siteIdentifierValue) |
void |
setSiteResolutionType(SiteResolutionType siteResolutionType)
Sets the site resolution type.
|
protected Long id
protected String name
protected String siteIdentifierType
protected String siteIdentifierValue
protected SandBox productionSandbox
protected Boolean deactivated
protected ArchiveStatus archiveStatus
public void setId(Long id)
Site
public String getName()
Site
public void setName(String name)
Site
public String getSiteIdentifierType()
getSiteIdentifierType
in interface Site
public void setSiteIdentifierType(String siteIdentifierType)
setSiteIdentifierType
in interface Site
Site.getSiteIdentifierType()
public String getSiteIdentifierValue()
Site
Site.getSiteResolutionType()
to determine the current
Site for a given request.getSiteIdentifierValue
in interface Site
public void setSiteIdentifierValue(String siteIdentifierValue)
setSiteIdentifierValue
in interface Site
public SandBox getProductionSandbox()
Site
getProductionSandbox
in interface Site
public void setProductionSandbox(SandBox productionSandbox)
Site
setProductionSandbox
in interface Site
Site.getProductionSandbox();
public SiteResolutionType getSiteResolutionType()
Site
getSiteResolutionType
in interface Site
public void setSiteResolutionType(SiteResolutionType siteResolutionType)
Site
setSiteResolutionType
in interface Site
Site.getSiteResolutionType()
public List<Catalog> getCatalogs()
Site
getCatalogs
in interface Site
public void setCatalogs(List<Catalog> catalogs)
Site
setCatalogs
in interface Site
catalogs
- a list of catalog groupingspublic Character getArchived()
getArchived
in interface Status
public void setArchived(Character archived)
setArchived
in interface Status
public boolean isDeactivated()
isDeactivated
in interface Site
public void setDeactivated(boolean deactivated)
setDeactivated
in interface Site
public boolean isTemplateSite()
Site
isTemplateSite
in interface Site
public void checkCloneable(Site site) throws CloneNotSupportedException, SecurityException, NoSuchMethodException
Copyright © 2014. All rights reserved.