@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)
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 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 ArchiveStatus getArchiveStatus()
getArchiveStatus
in interface Site
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
public Site clone()
Site
public String getMainEntityName()
getMainEntityName
in interface AdminMainEntity
Copyright © 2019. All rights reserved.