@Component(value="blMultiTenantPropagationUtil") public class MultiTenantPropagationUtilImpl extends Object implements MultiTenantPropagationUtil
| Modifier and Type | Field and Description |
|---|---|
protected MultiTenantDao |
multiTenantDao |
| Constructor and Description |
|---|
MultiTenantPropagationUtilImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
constructSandboxNameForCurrentCatalog(org.broadleafcommerce.common.site.domain.Catalog currentCatalog)
For a catalog, determine if it belongs to a standard site and of type
MultiTenantSiteCatalog.getPropagationMode()
SANDBOX. |
protected Class<?> |
getCeilingImpl(String classname,
javax.persistence.EntityManager em) |
String |
getDefaultDraftImportSandboxColor() |
String |
getDefaultDraftImportSandboxName() |
org.broadleafcommerce.common.util.Tuple<Class<?>,Long> |
getPersistencePackageEntityIdentification(org.broadleafcommerce.openadmin.dto.PersistencePackage persistencePackage,
javax.persistence.EntityManager em)
Retrieve the relevant entity classname and id information from a
PersistencePackage. |
boolean |
isProductionPropagationMode(org.broadleafcommerce.common.site.domain.Catalog currentCatalog)
For a catalog, determine if it belongs to a standard site, and if so, whether or not the
MultiTenantSiteCatalog.getPropagationMode()
is of the type PRODUCTION. |
boolean |
isPropagationRequired(org.broadleafcommerce.common.site.domain.Catalog currentCatalog)
For a catalog, determine if it belongs to a standard site, and if so, whether or not the
MultiTenantSiteCatalog.getMutabilityType()
is of the type SYNCED_COPY, which requires propagation. |
boolean |
isPropagationRequired(Object entity)
For a entity, determine if it is catalog discriminated and belongs to a standard site, and if so, whether or not the
MultiTenantSiteCatalog.getMutabilityType()
is of the type SYNCED_COPY, which requires propagation. |
protected MultiTenantDao multiTenantDao
public boolean isPropagationRequired(Object entity)
MultiTenantPropagationUtilMultiTenantSiteCatalog.getMutabilityType()
is of the type SYNCED_COPY, which requires propagation.isPropagationRequired in interface MultiTenantPropagationUtilpublic boolean isPropagationRequired(org.broadleafcommerce.common.site.domain.Catalog currentCatalog)
MultiTenantPropagationUtilMultiTenantSiteCatalog.getMutabilityType()
is of the type SYNCED_COPY, which requires propagation.isPropagationRequired in interface MultiTenantPropagationUtilpublic boolean isProductionPropagationMode(org.broadleafcommerce.common.site.domain.Catalog currentCatalog)
MultiTenantPropagationUtilMultiTenantSiteCatalog.getPropagationMode()
is of the type PRODUCTION. This type of propagation updates the production record (rather than creating a sandbox
version) in the target catalog.isProductionPropagationMode in interface MultiTenantPropagationUtilpublic String constructSandboxNameForCurrentCatalog(org.broadleafcommerce.common.site.domain.Catalog currentCatalog)
MultiTenantPropagationUtilMultiTenantSiteCatalog.getPropagationMode()
SANDBOX. If so, then return the configured sandbox name, otherwise return the configured default name.constructSandboxNameForCurrentCatalog in interface MultiTenantPropagationUtilpublic String getDefaultDraftImportSandboxName()
getDefaultDraftImportSandboxName in interface MultiTenantPropagationUtilpublic String getDefaultDraftImportSandboxColor()
getDefaultDraftImportSandboxColor in interface MultiTenantPropagationUtilpublic org.broadleafcommerce.common.util.Tuple<Class<?>,Long> getPersistencePackageEntityIdentification(org.broadleafcommerce.openadmin.dto.PersistencePackage persistencePackage, javax.persistence.EntityManager em)
MultiTenantPropagationUtilPersistencePackage. This represents the
backing persisted entity represented in the PersistencePackage.getPersistencePackageEntityIdentification in interface MultiTenantPropagationUtilCopyright © 2020. All rights reserved.