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 ArchiveStatus
protected Boolean
protected Locale
protected Long
protected String
protected String
protected String
Fields inherited from interface org.broadleafcommerce.common.admin.domain.AdminMainEntity
MAIN_ENTITY_NAME_PROPERTY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkCloneable
(Site site) clone()
Retrieve an deep copy of this site.boolean
Retrieve 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.int
hashCode()
boolean
isActive()
boolean
boolean
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 tovoid
setDeactivated
(boolean deactivated) void
setDefaultLocale
(Locale defaultLocale) Sets the site default locale.void
Sets the internal id for a site.void
Sets the displayName for a site.void
setSiteIdentifierType
(String siteIdentifierType) void
setSiteIdentifierValue
(String siteIdentifierValue) void
setSiteResolutionType
(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:Site
Unique/internal id for a site. -
setId
Description copied from interface:Site
Sets the internal id for a site. -
getName
Description copied from interface:Site
The display name for a site. -
setName
Description copied from interface:Site
Sets the displayName for a site. -
getSiteIdentifierType
- Specified by:
getSiteIdentifierType
in interfaceSite
- Returns:
-
setSiteIdentifierType
- Specified by:
setSiteIdentifierType
in interfaceSite
- See Also:
-
getSiteIdentifierValue
Description copied from interface:Site
Used along withSite.getSiteResolutionType()
to determine the current Site for a given request.- Specified by:
getSiteIdentifierValue
in interfaceSite
- Returns:
-
setSiteIdentifierValue
- Specified by:
setSiteIdentifierValue
in interfaceSite
-
getSiteResolutionType
Description copied from interface:Site
Intended to be used along with the #getSiteIdentifierValue() by an implementation of SiteResolver to determine if this is the current site.- Specified by:
getSiteResolutionType
in interfaceSite
- Returns:
-
setSiteResolutionType
Description copied from interface:Site
Sets the site resolution type.- Specified by:
setSiteResolutionType
in interfaceSite
- See Also:
-
getCatalogs
Description copied from interface:Site
Retrieve a list of product, category and offer groupings that this site has access to- Specified by:
getCatalogs
in interfaceSite
- Returns:
- a list of catalog groupings
-
setCatalogs
Description copied from interface:Site
Set the list of product, category and offer groupings that this site has access to- Specified by:
setCatalogs
in interfaceSite
- Parameters:
catalogs
- a list of catalog groupings
-
getDefaultLocale
Description copied from interface:Site
used for default locale- Specified by:
getDefaultLocale
in interfaceSite
- Returns:
- Locale
-
setDefaultLocale
Description copied from interface:Site
Sets the site default locale.- Specified by:
setDefaultLocale
in interfaceSite
-
getArchived
- Specified by:
getArchived
in interfaceStatus
-
setArchived
- Specified by:
setArchived
in interfaceStatus
-
getArchiveStatus
- Specified by:
getArchiveStatus
in interfaceSite
-
isActive
public boolean isActive() -
isDeactivated
public boolean isDeactivated()- Specified by:
isDeactivated
in interfaceSite
-
setDeactivated
public void setDeactivated(boolean deactivated) - Specified by:
setDeactivated
in interfaceSite
-
isTemplateSite
public boolean isTemplateSite()Description copied from interface:Site
This method will return true when the given site was created based on a template.- Specified by:
isTemplateSite
in 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:Site
Retrieve an deep copy of this site. Not bound by entity manager scope. -
getMainEntityName
- Specified by:
getMainEntityName
in interfaceAdminMainEntity
- Returns:
- the display name of this entity for the admin screen
-
equals
-
hashCode
public int hashCode()
-