public interface MultiTenantSite extends Serializable
Weaves in the idea of a Site owning a set of Catalogs
Actual properties weaved in are defined in MultiTenantSiteImpl
| Modifier and Type | Method and Description |
|---|---|
void |
buildTemplateSiteVisibleCatalogs(Set<org.broadleafcommerce.common.site.domain.Catalog> catalogs,
Set<Long> visitedSites,
Set<Long> visitedCatalogs) |
List<org.broadleafcommerce.openadmin.server.security.domain.AdminUser> |
getAdminUsers()
The list of admin users that are able to operate on this site and its children.
|
List<org.broadleafcommerce.common.site.domain.SiteCatalogXref> |
getAssignedCatalogs()
Deprecated.
this can be expensive depending on the member size. Consider a query approach instead. Review
MultiTenantSiteUtil
helper methods that may be applicable. |
List<SiteProfileXref> |
getAssignedProfiles()
Returns a list of
SiteCatalogXref that have been assigned to this site by its parent. |
org.broadleafcommerce.common.site.domain.Site |
getBaseProfile()
Returns the base profile which is an instance of
Site which has a SiteType.PROFILE or
null if not base profile has been set. |
List<org.broadleafcommerce.common.site.domain.Site> |
getChildProfiles()
If this site is a profile, return the list of other profiles who reference this one as their base profile
|
ConfigurationStatusType |
getConfigurationStatus()
Describes whether or not the catalog has been marked as finished for configuration.
|
org.broadleafcommerce.common.site.domain.Catalog |
getDefaultCatalog()
Returns the
Catalog that is the default catalog for this site. |
DeploymentStatus |
getDeploymentStatus()
For profile type sites, describes the lifecycle status of copying the profile related entities
|
List<org.broadleafcommerce.common.site.domain.Catalog> |
getManagedCatalogs()
Returns a list of
Catalogs that have been created by this site. |
org.broadleafcommerce.common.site.domain.Site |
getParent()
Reference to the site which this embed is contained.
|
Long |
getParentSiteId()
Returns the id of the
Site that created this site. |
SiteType |
getSiteType()
Returns the
SiteType |
Set<org.broadleafcommerce.common.site.domain.Catalog> |
getStandardSiteVisibleCatalogs()
Deprecated.
This implementation performs poorly for large quantity catalog assignments. Callers should be
refactored to ascertain catalog assignment information differently, likely through a more direct query oriented solution.
|
Set<org.broadleafcommerce.common.site.domain.Catalog> |
getTemplateSiteVisibleCatalogs() |
Boolean |
isHideFromProfileSelection()
Whether or not this profile should be hidden from profile selection.
|
void |
setAdminUsers(List<org.broadleafcommerce.openadmin.server.security.domain.AdminUser> adminUsers)
Sets the list of adminUsers for this site.
|
void |
setAssignedCatalogs(List<org.broadleafcommerce.common.site.domain.SiteCatalogXref> assignedCatalogs)
Deprecated.
this can be expensive depending on the member size. Consider a query approach instead. Review
MultiTenantSiteUtil
helper methods that may be applicable. |
void |
setAssignedProfiles(List<SiteProfileXref> assignedProfiles)
Sets the catalog assigned to this site.
|
void |
setBaseProfile(org.broadleafcommerce.common.site.domain.Site baseProfile)
Sets the base profile which is an instance of
Site which has a SiteType.PROFILE. |
void |
setChildProfiles(List<org.broadleafcommerce.common.site.domain.Site> childProfiles)
If this site is a profile, set the list of other profiles who reference this one as their base profile
|
void |
setConfigurationStatus(ConfigurationStatusType configurationStatus) |
void |
setDefaultCatalog(org.broadleafcommerce.common.site.domain.Catalog defaultCatalog)
Sets the default
Catalog for this site. |
void |
setDeploymentStatus(DeploymentStatus deploymentStatus)
For profile type sites, describes the lifecycle status of copying the profile related entities
|
void |
setHideFromProfileSelection(Boolean hideFromProfileSelection)
Set whether or not this profile should be hidden from profile selection.
|
void |
setManagedCatalogs(List<org.broadleafcommerce.common.site.domain.Catalog> ownedCatalogs)
Sets list of catalogs owned by this site.
|
void |
setParentSiteId(Long parentSiteId)
Sets the id
Site of SiteType.TEMPLATE that created this site |
void |
setSiteType(SiteType siteType)
Sets the
SiteType |
@Deprecated List<org.broadleafcommerce.common.site.domain.SiteCatalogXref> getAssignedCatalogs()
MultiTenantSiteUtil
helper methods that may be applicable.SiteCatalogXref that have been assigned to this site by its parent.@Deprecated void setAssignedCatalogs(List<org.broadleafcommerce.common.site.domain.SiteCatalogXref> assignedCatalogs)
MultiTenantSiteUtil
helper methods that may be applicable.assignedCatalogs - List<SiteProfileXref> getAssignedProfiles()
SiteCatalogXref that have been assigned to this site by its parent.void setAssignedProfiles(List<SiteProfileXref> assignedProfiles)
assignedCatalogs - List<org.broadleafcommerce.common.site.domain.Catalog> getManagedCatalogs()
Catalogs that have been created by this site.void setManagedCatalogs(List<org.broadleafcommerce.common.site.domain.Catalog> ownedCatalogs)
assignedCatalogs - List<org.broadleafcommerce.common.site.domain.Site> getChildProfiles()
void setChildProfiles(List<org.broadleafcommerce.common.site.domain.Site> childProfiles)
childProfiles - org.broadleafcommerce.common.site.domain.Catalog getDefaultCatalog()
Catalog that is the default catalog for this site. Default catalogs are only used with
Sites of type SiteType.STANDARD.Catalogvoid setDefaultCatalog(org.broadleafcommerce.common.site.domain.Catalog defaultCatalog)
Catalog for this site. Default catalogs are only used with
Sites of type SiteType.STANDARD.defaultCatalog - org.broadleafcommerce.common.site.domain.Site getBaseProfile()
Site which has a SiteType.PROFILE or
null if not base profile has been set.
Base profiles are used with Sites of type SiteType.STANDARD or SiteType.PROFILESitevoid setBaseProfile(org.broadleafcommerce.common.site.domain.Site baseProfile)
Site which has a SiteType.PROFILE.
Used to allow content changes to flow through a hierarchy.
Base profiles are used with Sites of type SiteType.STANDARD or SiteType.PROFILEbaseProfile - Long getParentSiteId()
Site that created this site.void setParentSiteId(Long parentSiteId)
Site of SiteType.TEMPLATE that created this siteparentSiteId - List<org.broadleafcommerce.openadmin.server.security.domain.AdminUser> getAdminUsers()
void setAdminUsers(List<org.broadleafcommerce.openadmin.server.security.domain.AdminUser> adminUsers)
adminUsers - @Deprecated Set<org.broadleafcommerce.common.site.domain.Catalog> getStandardSiteVisibleCatalogs()
IllegalArgumentException - when this site is not of SiteType.STANDARDBoolean isHideFromProfileSelection()
void setHideFromProfileSelection(Boolean hideFromProfileSelection)
hideFromProfileSelection - Set<org.broadleafcommerce.common.site.domain.Catalog> getTemplateSiteVisibleCatalogs()
void buildTemplateSiteVisibleCatalogs(Set<org.broadleafcommerce.common.site.domain.Catalog> catalogs, Set<Long> visitedSites, Set<Long> visitedCatalogs)
org.broadleafcommerce.common.site.domain.Site getParent()
DeploymentStatus getDeploymentStatus()
void setDeploymentStatus(DeploymentStatus deploymentStatus)
deploymentStatus - ConfigurationStatusType getConfigurationStatus()
void setConfigurationStatus(ConfigurationStatusType configurationStatus)
Copyright © 2020. All rights reserved.