Interface Site
- All Superinterfaces:
Serializable
,Status
- All Known Implementing Classes:
SiteImpl
Created by bpolster.
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Retrieve an deep copy of this site.Deprecated.Not used by Broadleaf - scheduled to remove on or after 3.3used for default localegetId()
Unique/internal id for a site.getName()
The display name for a site.Deprecated.usegetSiteResolutionType()
Intended to be used along with the #getSiteIdentifierValue() by the SiteResolver to determine if this is the current site.Used along withgetSiteResolutionType()
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.boolean
boolean
Deprecated.Not used by Broadleaf - scheduled to remove on or after 3.3void
setCatalogs
(List<Catalog> catalogs) Deprecated.Not used by Broadleaf - scheduled to remove on or after 3.3void
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) Deprecated.UsesetSiteResolutionType(SiteResolutionType)
Sets the site identifier type.void
setSiteIdentifierValue
(String siteIdentifierValue) void
setSiteResolutionType
(SiteResolutionType siteResolutionType) Sets the site resolution type.Methods inherited from interface org.broadleafcommerce.common.persistence.Status
getArchived, isActive, setArchived
-
Method Details
-
getId
Long getId()Unique/internal id for a site.- Returns:
-
setId
Sets the internal id for a site.- Parameters:
id
-
-
getName
String getName()The display name for a site.- Returns:
-
setName
Sets the displayName for a site.- Parameters:
name
-
-
getSiteIdentifierType
Deprecated.usegetSiteResolutionType()
Intended to be used along with the #getSiteIdentifierValue() by the SiteResolver to determine if this is the current site.- Returns:
-
setSiteIdentifierType
Deprecated.UsesetSiteResolutionType(SiteResolutionType)
Sets the site identifier type.- Parameters:
siteIdentifierType
-- See Also:
-
getSiteIdentifierValue
String getSiteIdentifierValue()Used along withgetSiteResolutionType()
to determine the current Site for a given request.- Returns:
-
setSiteIdentifierValue
- Parameters:
siteIdentifierValue
-
-
getSiteResolutionType
SiteResolutionType getSiteResolutionType()Intended to be used along with the #getSiteIdentifierValue() by an implementation of SiteResolver to determine if this is the current site.- Returns:
-
setSiteResolutionType
Sets the site resolution type.- Parameters:
siteResolutionType
-- See Also:
-
getCatalogs
Deprecated.Not used by Broadleaf - scheduled to remove on or after 3.3Retrieve a list of product, category and offer groupings that this site has access to- Returns:
- a list of catalog groupings
-
setCatalogs
Deprecated.Not used by Broadleaf - scheduled to remove on or after 3.3Set the list of product, category and offer groupings that this site has access to- Parameters:
catalogs
- a list of catalog groupings
-
getDefaultLocale
Locale getDefaultLocale()used for default locale- Returns:
- Locale
-
setDefaultLocale
Sets the site default locale.- Parameters:
defaultLocale
-
-
clone
Site clone()Retrieve an deep copy of this site. Not bound by entity manager scope.- Returns:
- a deep copy of this site
-
getArchiveStatus
ArchiveStatus getArchiveStatus() -
isDeactivated
boolean isDeactivated() -
setDeactivated
void setDeactivated(boolean deactivated) -
isTemplateSite
Deprecated.Not used by Broadleaf - scheduled to remove on or after 3.3This method will return true when the given site was created based on a template.- Returns:
- whether or not this site is a TemplateSite
-