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:
  • Field Details

    • id

      protected Long id
    • name

      protected String name
    • siteIdentifierType

      protected String siteIdentifierType
    • siteIdentifierValue

      protected String siteIdentifierValue
    • deactivated

      protected Boolean deactivated
    • catalogs

      protected List<Catalog> catalogs
    • defaultLocale

      protected Locale defaultLocale
    • archiveStatus

      protected ArchiveStatus archiveStatus
  • Constructor Details

    • SiteImpl

      public SiteImpl()
  • Method Details

    • getId

      public Long getId()
      Description copied from interface: Site
      Unique/internal id for a site.
      Specified by:
      getId in interface Site
      Returns:
    • setId

      public void setId(Long id)
      Description copied from interface: Site
      Sets the internal id for a site.
      Specified by:
      setId in interface Site
    • getName

      public String getName()
      Description copied from interface: Site
      The display name for a site.
      Specified by:
      getName in interface Site
      Returns:
    • setName

      public void setName(String name)
      Description copied from interface: Site
      Sets the displayName for a site.
      Specified by:
      setName in interface Site
    • getSiteIdentifierType

      public String getSiteIdentifierType()
      Specified by:
      getSiteIdentifierType in interface Site
      Returns:
    • setSiteIdentifierType

      public void setSiteIdentifierType(String siteIdentifierType)
      Specified by:
      setSiteIdentifierType in interface Site
      See Also:
    • getSiteIdentifierValue

      public String getSiteIdentifierValue()
      Description copied from interface: Site
      Used along with Site.getSiteResolutionType() to determine the current Site for a given request.
      Specified by:
      getSiteIdentifierValue in interface Site
      Returns:
    • setSiteIdentifierValue

      public void setSiteIdentifierValue(String siteIdentifierValue)
      Specified by:
      setSiteIdentifierValue in interface Site
    • getSiteResolutionType

      public SiteResolutionType 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 interface Site
      Returns:
    • setSiteResolutionType

      public void setSiteResolutionType(SiteResolutionType siteResolutionType)
      Description copied from interface: Site
      Sets the site resolution type.
      Specified by:
      setSiteResolutionType in interface Site
      See Also:
    • getCatalogs

      public List<Catalog> 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 interface Site
      Returns:
      a list of catalog groupings
    • setCatalogs

      public void setCatalogs(List<Catalog> catalogs)
      Description copied from interface: Site
      Set the list of product, category and offer groupings that this site has access to
      Specified by:
      setCatalogs in interface Site
      Parameters:
      catalogs - a list of catalog groupings
    • getDefaultLocale

      public Locale getDefaultLocale()
      Description copied from interface: Site
      used for default locale
      Specified by:
      getDefaultLocale in interface Site
      Returns:
      Locale
    • setDefaultLocale

      public void setDefaultLocale(Locale defaultLocale)
      Description copied from interface: Site
      Sets the site default locale.
      Specified by:
      setDefaultLocale in interface Site
    • getArchived

      public Character getArchived()
      Specified by:
      getArchived in interface Status
    • setArchived

      public void setArchived(Character archived)
      Specified by:
      setArchived in interface Status
    • getArchiveStatus

      public ArchiveStatus getArchiveStatus()
      Specified by:
      getArchiveStatus in interface Site
    • isActive

      public boolean isActive()
      Specified by:
      isActive in interface Status
    • isDeactivated

      public boolean isDeactivated()
      Specified by:
      isDeactivated in interface Site
    • setDeactivated

      public void setDeactivated(boolean deactivated)
      Specified by:
      setDeactivated in interface Site
    • 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 interface Site
      Returns:
      whether or not this site is a TemplateSite
    • checkCloneable

      public void checkCloneable(Site site) throws CloneNotSupportedException, SecurityException, NoSuchMethodException
      Throws:
      CloneNotSupportedException
      SecurityException
      NoSuchMethodException
    • clone

      public Site clone()
      Description copied from interface: Site
      Retrieve an deep copy of this site. Not bound by entity manager scope.
      Specified by:
      clone in interface Site
      Overrides:
      clone in class Object
      Returns:
      a deep copy of this site
    • getMainEntityName

      public String getMainEntityName()
      Specified by:
      getMainEntityName in interface AdminMainEntity
      Returns:
      the display name of this entity for the admin screen
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object