public class MultiTenantAdminEntityServiceImpl extends org.broadleafcommerce.openadmin.server.service.AdminEntityServiceImpl implements MultiTenantAdminEntityService
| Modifier and Type | Field and Description |
|---|---|
protected com.broadleafcommerce.enterprise.workflow.admin.service.event.CacheInvalidationProducer |
cacheInvalidationProducer |
protected com.broadleafcommerce.enterprise.workflow.admin.clone.CloneManager |
cloneManager |
protected com.broadleafcommerce.enterprise.workflow.dao.EntityItemDao |
entityItemDao |
protected com.broadleafcommerce.enterprise.workflow.admin.service.EntityItemService |
entityItemService |
protected org.broadleafcommerce.common.sandbox.service.SandBoxService |
sandBoxService |
protected org.broadleafcommerce.common.util.StreamingTransactionCapableUtil |
transUtil |
protected com.broadleafcommerce.enterprise.workflow.service.WorkflowSandBoxItemService |
workflowSandBoxItemService |
| Constructor and Description |
|---|
MultiTenantAdminEntityServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addItemRecord(Set<Serializable> relatedRecords,
String entityClassName,
Long entityId) |
protected void |
addRecordsToSet(List<com.broadleafcommerce.enterprise.workflow.domain.WorkflowSandBoxItem> workflowSandBoxItems,
Set<Serializable> relatedRecords,
Long entityId) |
org.broadleafcommerce.openadmin.server.service.persistence.PersistenceResponse |
addSubCollectionEntity(org.broadleafcommerce.openadmin.web.form.entity.EntityForm entityForm,
org.broadleafcommerce.openadmin.dto.ClassMetadata mainMetadata,
org.broadleafcommerce.openadmin.dto.Property field,
org.broadleafcommerce.openadmin.dto.Entity parentEntity,
List<org.broadleafcommerce.openadmin.dto.SectionCrumb> sectionCrumbs) |
protected void |
addSubCollectionItemRecord(Set<Serializable> relatedRecords,
com.broadleafcommerce.enterprise.workflow.domain.WorkflowSandBoxItem workflowSandBoxItem,
com.broadleafcommerce.enterprise.workflow.domain.change.EntityItem entityItem) |
protected javax.persistence.EntityManager |
getEntityManager(String className) |
protected Serializable |
getItemRecord(String entityClassName,
Long entityId) |
protected Serializable |
getItemRecord(com.broadleafcommerce.enterprise.workflow.domain.WorkflowSandBoxItem item,
Map<String,Long> dups)
Deprecated.
|
protected Class |
getPersistentClass(String classname) |
org.broadleafcommerce.openadmin.server.service.persistence.PersistenceResponse |
getRecord(org.broadleafcommerce.openadmin.server.domain.PersistencePackageRequest request,
String id,
org.broadleafcommerce.openadmin.dto.ClassMetadata cmd,
boolean isCollectionRequest) |
org.broadleafcommerce.openadmin.server.service.persistence.PersistenceResponse |
getRecordsForCollection(org.broadleafcommerce.openadmin.dto.ClassMetadata containingClassMetadata,
org.broadleafcommerce.openadmin.dto.Entity containingEntity,
org.broadleafcommerce.openadmin.dto.Property collectionProperty,
org.broadleafcommerce.openadmin.dto.FilterAndSortCriteria[] fascs,
Integer startIndex,
Integer maxIndex,
List<org.broadleafcommerce.openadmin.dto.SectionCrumb> sectionCrumbs) |
protected List<Serializable> |
getRelatedMapFieldRecords(com.broadleafcommerce.enterprise.workflow.domain.change.Entity entity,
Long entityId) |
protected boolean |
hasActiveSandboxRecord(Class entityClass,
Long entityId) |
org.broadleafcommerce.openadmin.server.service.persistence.PersistenceResponse |
removeSubCollectionEntity(org.broadleafcommerce.openadmin.dto.ClassMetadata mainMetadata,
org.broadleafcommerce.openadmin.dto.Property field,
org.broadleafcommerce.openadmin.dto.Entity parentEntity,
String itemId,
String priorKey,
List<org.broadleafcommerce.openadmin.dto.SectionCrumb> sectionCrumbs) |
org.broadleafcommerce.openadmin.server.service.persistence.PersistenceResponse |
removeSubCollectionEntity(org.broadleafcommerce.openadmin.dto.ClassMetadata mainMetadata,
org.broadleafcommerce.openadmin.dto.Property field,
org.broadleafcommerce.openadmin.dto.Entity parentEntity,
String itemId,
String alternateId,
String priorKey,
List<org.broadleafcommerce.openadmin.dto.SectionCrumb> sectionCrumbs) |
void |
revertEntity(org.broadleafcommerce.openadmin.web.form.entity.EntityForm entityForm,
String id)
Reverts the entity to it's original state before a change was made and deployed,
matching its parent site's state.
|
void |
revertEntity(String entityType,
String id)
Deprecated.
|
protected void |
sandBoxArchiveProductionObjects(Long entityId,
List<com.broadleafcommerce.enterprise.workflow.domain.WorkflowSandBoxItem> workflowSandBoxItems) |
org.broadleafcommerce.openadmin.server.service.persistence.PersistenceResponse |
updateSubCollectionEntity(org.broadleafcommerce.openadmin.web.form.entity.EntityForm entityForm,
org.broadleafcommerce.openadmin.dto.ClassMetadata mainMetadata,
org.broadleafcommerce.openadmin.dto.Property field,
org.broadleafcommerce.openadmin.dto.Entity parentEntity,
String collectionItemId,
List<org.broadleafcommerce.openadmin.dto.SectionCrumb> sectionCrumbs) |
org.broadleafcommerce.openadmin.server.service.persistence.PersistenceResponse |
updateSubCollectionEntity(org.broadleafcommerce.openadmin.web.form.entity.EntityForm entityForm,
org.broadleafcommerce.openadmin.dto.ClassMetadata mainMetadata,
org.broadleafcommerce.openadmin.dto.Property field,
org.broadleafcommerce.openadmin.dto.Entity parentEntity,
String collectionItemId,
String alternateId,
List<org.broadleafcommerce.openadmin.dto.SectionCrumb> sectionCrumbs) |
add, add, addEntity, clearEntityManager, ensureEntityMarkedAsValidationFailure, fetch, getAdvancedCollectionRecord, getAdvancedCollectionRecord, getAllRecordsForAllSubCollections, getClassMetadata, getContextSpecificRelationshipId, getDefaultCto, getDefaultMaxResults, getDynamicEntityDao, getForeignEntityName, getIdProperty, getPagedRecordsForCollection, getPropertiesFromEntityForm, getRecords, getRecordsForAllSubCollections, getRecordsForAllSubCollections, getRecordsForCollection, getRecordsForSelectedTab, getRequestForEntityForm, inspect, populateParentRecordStructure, remove, remove, removeEntity, toIdFieldType, update, update, updateEntity, updateTabInfoclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, add, addEntity, clearEntityManager, fetch, getAdvancedCollectionRecord, getAdvancedCollectionRecord, getAllRecordsForAllSubCollections, getClassMetadata, getContextSpecificRelationshipId, getForeignEntityName, getIdProperty, getPagedRecordsForCollection, getRecords, getRecordsForAllSubCollections, getRecordsForAllSubCollections, getRecordsForCollection, getRecordsForSelectedTab, getRequestForEntityForm, inspect, populateParentRecordStructure, remove, remove, removeEntity, update, update, updateEntityprotected com.broadleafcommerce.enterprise.workflow.admin.clone.CloneManager cloneManager
protected com.broadleafcommerce.enterprise.workflow.service.WorkflowSandBoxItemService workflowSandBoxItemService
protected com.broadleafcommerce.enterprise.workflow.admin.service.EntityItemService entityItemService
protected com.broadleafcommerce.enterprise.workflow.dao.EntityItemDao entityItemDao
protected com.broadleafcommerce.enterprise.workflow.admin.service.event.CacheInvalidationProducer cacheInvalidationProducer
protected org.broadleafcommerce.common.util.StreamingTransactionCapableUtil transUtil
protected org.broadleafcommerce.common.sandbox.service.SandBoxService sandBoxService
public org.broadleafcommerce.openadmin.server.service.persistence.PersistenceResponse getRecord(org.broadleafcommerce.openadmin.server.domain.PersistencePackageRequest request,
String id,
org.broadleafcommerce.openadmin.dto.ClassMetadata cmd,
boolean isCollectionRequest)
throws org.broadleafcommerce.common.exception.ServiceException
getRecord in interface org.broadleafcommerce.openadmin.server.service.AdminEntityServicegetRecord in class org.broadleafcommerce.openadmin.server.service.AdminEntityServiceImplorg.broadleafcommerce.common.exception.ServiceExceptionpublic org.broadleafcommerce.openadmin.server.service.persistence.PersistenceResponse getRecordsForCollection(org.broadleafcommerce.openadmin.dto.ClassMetadata containingClassMetadata,
org.broadleafcommerce.openadmin.dto.Entity containingEntity,
org.broadleafcommerce.openadmin.dto.Property collectionProperty,
org.broadleafcommerce.openadmin.dto.FilterAndSortCriteria[] fascs,
Integer startIndex,
Integer maxIndex,
List<org.broadleafcommerce.openadmin.dto.SectionCrumb> sectionCrumbs)
throws org.broadleafcommerce.common.exception.ServiceException
getRecordsForCollection in interface org.broadleafcommerce.openadmin.server.service.AdminEntityServicegetRecordsForCollection in class org.broadleafcommerce.openadmin.server.service.AdminEntityServiceImplorg.broadleafcommerce.common.exception.ServiceExceptionpublic org.broadleafcommerce.openadmin.server.service.persistence.PersistenceResponse addSubCollectionEntity(org.broadleafcommerce.openadmin.web.form.entity.EntityForm entityForm,
org.broadleafcommerce.openadmin.dto.ClassMetadata mainMetadata,
org.broadleafcommerce.openadmin.dto.Property field,
org.broadleafcommerce.openadmin.dto.Entity parentEntity,
List<org.broadleafcommerce.openadmin.dto.SectionCrumb> sectionCrumbs)
throws org.broadleafcommerce.common.exception.ServiceException,
ClassNotFoundException
addSubCollectionEntity in interface org.broadleafcommerce.openadmin.server.service.AdminEntityServiceaddSubCollectionEntity in class org.broadleafcommerce.openadmin.server.service.AdminEntityServiceImplorg.broadleafcommerce.common.exception.ServiceExceptionClassNotFoundExceptionpublic org.broadleafcommerce.openadmin.server.service.persistence.PersistenceResponse removeSubCollectionEntity(org.broadleafcommerce.openadmin.dto.ClassMetadata mainMetadata,
org.broadleafcommerce.openadmin.dto.Property field,
org.broadleafcommerce.openadmin.dto.Entity parentEntity,
String itemId,
String priorKey,
List<org.broadleafcommerce.openadmin.dto.SectionCrumb> sectionCrumbs)
throws org.broadleafcommerce.common.exception.ServiceException
removeSubCollectionEntity in interface org.broadleafcommerce.openadmin.server.service.AdminEntityServiceremoveSubCollectionEntity in class org.broadleafcommerce.openadmin.server.service.AdminEntityServiceImplorg.broadleafcommerce.common.exception.ServiceExceptionpublic org.broadleafcommerce.openadmin.server.service.persistence.PersistenceResponse removeSubCollectionEntity(org.broadleafcommerce.openadmin.dto.ClassMetadata mainMetadata,
org.broadleafcommerce.openadmin.dto.Property field,
org.broadleafcommerce.openadmin.dto.Entity parentEntity,
String itemId,
String alternateId,
String priorKey,
List<org.broadleafcommerce.openadmin.dto.SectionCrumb> sectionCrumbs)
throws org.broadleafcommerce.common.exception.ServiceException
removeSubCollectionEntity in interface org.broadleafcommerce.openadmin.server.service.AdminEntityServiceremoveSubCollectionEntity in class org.broadleafcommerce.openadmin.server.service.AdminEntityServiceImplorg.broadleafcommerce.common.exception.ServiceExceptionpublic org.broadleafcommerce.openadmin.server.service.persistence.PersistenceResponse updateSubCollectionEntity(org.broadleafcommerce.openadmin.web.form.entity.EntityForm entityForm,
org.broadleafcommerce.openadmin.dto.ClassMetadata mainMetadata,
org.broadleafcommerce.openadmin.dto.Property field,
org.broadleafcommerce.openadmin.dto.Entity parentEntity,
String collectionItemId,
List<org.broadleafcommerce.openadmin.dto.SectionCrumb> sectionCrumbs)
throws org.broadleafcommerce.common.exception.ServiceException,
ClassNotFoundException
updateSubCollectionEntity in interface org.broadleafcommerce.openadmin.server.service.AdminEntityServiceupdateSubCollectionEntity in class org.broadleafcommerce.openadmin.server.service.AdminEntityServiceImplorg.broadleafcommerce.common.exception.ServiceExceptionClassNotFoundExceptionpublic org.broadleafcommerce.openadmin.server.service.persistence.PersistenceResponse updateSubCollectionEntity(org.broadleafcommerce.openadmin.web.form.entity.EntityForm entityForm,
org.broadleafcommerce.openadmin.dto.ClassMetadata mainMetadata,
org.broadleafcommerce.openadmin.dto.Property field,
org.broadleafcommerce.openadmin.dto.Entity parentEntity,
String collectionItemId,
String alternateId,
List<org.broadleafcommerce.openadmin.dto.SectionCrumb> sectionCrumbs)
throws org.broadleafcommerce.common.exception.ServiceException,
ClassNotFoundException
updateSubCollectionEntity in interface org.broadleafcommerce.openadmin.server.service.AdminEntityServiceupdateSubCollectionEntity in class org.broadleafcommerce.openadmin.server.service.AdminEntityServiceImplorg.broadleafcommerce.common.exception.ServiceExceptionClassNotFoundException@Transactional(value="blTransactionManager")
public void revertEntity(org.broadleafcommerce.openadmin.web.form.entity.EntityForm entityForm,
String id)
throws org.broadleafcommerce.common.exception.ServiceException
MultiTenantAdminEntityServicerevertEntity in interface MultiTenantAdminEntityServiceentityForm - - DTO of the entity to be reverted.id - - the id of the entity to be revertedorg.broadleafcommerce.common.exception.ServiceExceptionprotected Class getPersistentClass(String classname) throws ClassNotFoundException
ClassNotFoundExceptionprotected javax.persistence.EntityManager getEntityManager(String className)
@Deprecated public void revertEntity(String entityType, String id) throws org.broadleafcommerce.common.exception.ServiceException
MultiTenantAdminEntityServicerevertEntity in interface MultiTenantAdminEntityServiceentityType - - the type of the entity to be reverted.id - - the id of the entity to be reverted.org.broadleafcommerce.common.exception.ServiceExceptionprotected void sandBoxArchiveProductionObjects(Long entityId, List<com.broadleafcommerce.enterprise.workflow.domain.WorkflowSandBoxItem> workflowSandBoxItems)
protected void addRecordsToSet(List<com.broadleafcommerce.enterprise.workflow.domain.WorkflowSandBoxItem> workflowSandBoxItems, Set<Serializable> relatedRecords, Long entityId)
protected void addSubCollectionItemRecord(Set<Serializable> relatedRecords, com.broadleafcommerce.enterprise.workflow.domain.WorkflowSandBoxItem workflowSandBoxItem, com.broadleafcommerce.enterprise.workflow.domain.change.EntityItem entityItem)
protected List<Serializable> getRelatedMapFieldRecords(com.broadleafcommerce.enterprise.workflow.domain.change.Entity entity, Long entityId)
protected void addItemRecord(Set<Serializable> relatedRecords, String entityClassName, Long entityId)
protected Serializable getItemRecord(String entityClassName, Long entityId)
@Deprecated protected Serializable getItemRecord(com.broadleafcommerce.enterprise.workflow.domain.WorkflowSandBoxItem item, Map<String,Long> dups)
Copyright © 2020. All rights reserved.