Class SiteImpl
java.lang.Object
org.broadleafcommerce.common.site.domain.SiteImpl
- All Implemented Interfaces:
Serializable,AdminMainEntity,Status,Site,SiteAdminPresentation
@Entity
public class SiteImpl
extends Object
implements Site, SiteAdminPresentation, AdminMainEntity
Created by bpolster.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.broadleafcommerce.common.site.domain.SiteAdminPresentation
SiteAdminPresentation.GroupName, SiteAdminPresentation.GroupOrder, SiteAdminPresentation.TabName, SiteAdminPresentation.TabOrder -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ArchiveStatusprotected Booleanprotected Localeprotected Longprotected Stringprotected Stringprotected StringFields inherited from interface org.broadleafcommerce.common.admin.domain.AdminMainEntity
MAIN_ENTITY_NAME_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckCloneable(Site site) clone()Retrieve an deep copy of this site.booleanRetrieve a list of product, category and offer groupings that this site has access toused for default localegetId()Unique/internal id for a site.getName()The display name for a site.Used along withSite.getSiteResolutionType()to determine the current Site for a given request.Intended to be used along with the #getSiteIdentifierValue() by an implementation of SiteResolver to determine if this is the current site.inthashCode()booleanisActive()booleanbooleanThis method will return true when the given site was created based on a template.voidsetArchived(Character archived) voidsetCatalogs(List<Catalog> catalogs) Set the list of product, category and offer groupings that this site has access tovoidsetDeactivated(boolean deactivated) voidsetDefaultLocale(Locale defaultLocale) Sets the site default locale.voidSets the internal id for a site.voidSets the displayName for a site.voidsetSiteIdentifierType(String siteIdentifierType) voidsetSiteIdentifierValue(String siteIdentifierValue) voidsetSiteResolutionType(SiteResolutionType siteResolutionType) Sets the site resolution type.
-
Field Details
-
id
-
name
-
siteIdentifierType
-
siteIdentifierValue
-
deactivated
-
catalogs
-
defaultLocale
-
archiveStatus
-
-
Constructor Details
-
SiteImpl
public SiteImpl()
-
-
Method Details
-
getId
Description copied from interface:SiteUnique/internal id for a site. -
setId
Description copied from interface:SiteSets the internal id for a site. -
getName
Description copied from interface:SiteThe display name for a site. -
setName
Description copied from interface:SiteSets the displayName for a site. -
getSiteIdentifierType
- Specified by:
getSiteIdentifierTypein interfaceSite- Returns:
-
setSiteIdentifierType
- Specified by:
setSiteIdentifierTypein interfaceSite- See Also:
-
getSiteIdentifierValue
Description copied from interface:SiteUsed along withSite.getSiteResolutionType()to determine the current Site for a given request.- Specified by:
getSiteIdentifierValuein interfaceSite- Returns:
-
setSiteIdentifierValue
- Specified by:
setSiteIdentifierValuein interfaceSite
-
getSiteResolutionType
Description copied from interface:SiteIntended to be used along with the #getSiteIdentifierValue() by an implementation of SiteResolver to determine if this is the current site.- Specified by:
getSiteResolutionTypein interfaceSite- Returns:
-
setSiteResolutionType
Description copied from interface:SiteSets the site resolution type.- Specified by:
setSiteResolutionTypein interfaceSite- See Also:
-
getCatalogs
Description copied from interface:SiteRetrieve a list of product, category and offer groupings that this site has access to- Specified by:
getCatalogsin interfaceSite- Returns:
- a list of catalog groupings
-
setCatalogs
Description copied from interface:SiteSet the list of product, category and offer groupings that this site has access to- Specified by:
setCatalogsin interfaceSite- Parameters:
catalogs- a list of catalog groupings
-
getDefaultLocale
Description copied from interface:Siteused for default locale- Specified by:
getDefaultLocalein interfaceSite- Returns:
- Locale
-
setDefaultLocale
Description copied from interface:SiteSets the site default locale.- Specified by:
setDefaultLocalein interfaceSite
-
getArchived
- Specified by:
getArchivedin interfaceStatus
-
setArchived
- Specified by:
setArchivedin interfaceStatus
-
getArchiveStatus
- Specified by:
getArchiveStatusin interfaceSite
-
isActive
public boolean isActive() -
isDeactivated
public boolean isDeactivated()- Specified by:
isDeactivatedin interfaceSite
-
setDeactivated
public void setDeactivated(boolean deactivated) - Specified by:
setDeactivatedin interfaceSite
-
isTemplateSite
public boolean isTemplateSite()Description copied from interface:SiteThis method will return true when the given site was created based on a template.- Specified by:
isTemplateSitein interfaceSite- Returns:
- whether or not this site is a TemplateSite
-
checkCloneable
public void checkCloneable(Site site) throws CloneNotSupportedException, SecurityException, NoSuchMethodException -
clone
Description copied from interface:SiteRetrieve an deep copy of this site. Not bound by entity manager scope. -
getMainEntityName
- Specified by:
getMainEntityNamein interfaceAdminMainEntity- Returns:
- the display name of this entity for the admin screen
-
equals
-
hashCode
public int hashCode()
-