@Entity public class SiteImpl extends Object implements Site, SiteAdminPresentation, AdminMainEntity
SiteAdminPresentation.GroupName, SiteAdminPresentation.GroupOrder, SiteAdminPresentation.TabName, SiteAdminPresentation.TabOrder| Modifier and Type | Field and Description |
|---|---|
protected ArchiveStatus |
archiveStatus |
protected List<Catalog> |
catalogs |
protected Boolean |
deactivated |
protected Long |
id |
protected String |
name |
protected String |
siteIdentifierType |
protected String |
siteIdentifierValue |
MAIN_ENTITY_NAME_PROPERTY| Constructor and Description |
|---|
SiteImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkCloneable(Site site) |
Site |
clone()
Retrieve an deep copy of this site.
|
boolean |
equals(Object o) |
Character |
getArchived() |
ArchiveStatus |
getArchiveStatus() |
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 |
getMainEntityName() |
String |
getName()
The display name for a site.
|
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.
|
int |
hashCode() |
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 |
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 Boolean deactivated
protected ArchiveStatus archiveStatus
public void setId(Long id)
Sitepublic String getName()
Sitepublic void setName(String name)
Sitepublic String getSiteIdentifierType()
getSiteIdentifierType in interface Sitepublic void setSiteIdentifierType(String siteIdentifierType)
setSiteIdentifierType in interface SiteSite.getSiteIdentifierType()public String getSiteIdentifierValue()
SiteSite.getSiteResolutionType() to determine the current
Site for a given request.getSiteIdentifierValue in interface Sitepublic void setSiteIdentifierValue(String siteIdentifierValue)
setSiteIdentifierValue in interface Sitepublic SiteResolutionType getSiteResolutionType()
SitegetSiteResolutionType in interface Sitepublic void setSiteResolutionType(SiteResolutionType siteResolutionType)
SitesetSiteResolutionType in interface SiteSite.getSiteResolutionType()public List<Catalog> getCatalogs()
SitegetCatalogs in interface Sitepublic void setCatalogs(List<Catalog> catalogs)
SitesetCatalogs in interface Sitecatalogs - a list of catalog groupingspublic Character getArchived()
getArchived in interface Statuspublic void setArchived(Character archived)
setArchived in interface Statuspublic ArchiveStatus getArchiveStatus()
getArchiveStatus in interface Sitepublic boolean isDeactivated()
isDeactivated in interface Sitepublic void setDeactivated(boolean deactivated)
setDeactivated in interface Sitepublic boolean isTemplateSite()
SiteisTemplateSite in interface Sitepublic void checkCloneable(Site site) throws CloneNotSupportedException, SecurityException, NoSuchMethodException
public Site clone()
Sitepublic String getMainEntityName()
getMainEntityName in interface AdminMainEntityCopyright © 2019. All rights reserved.