@Service(value="blDynamicEntityRemoteService") public class DynamicEntityRemoteService extends Object implements DynamicEntityService
| Modifier and Type | Field and Description |
|---|---|
protected ExploitProtectionService |
exploitProtectionService |
protected static Map<BatchPersistencePackage,BatchDynamicResultSet> |
METADATA_CACHE |
protected PersistenceThreadManager |
persistenceThreadManager |
protected StreamingTransactionCapableUtil |
transUtil |
| Constructor and Description |
|---|
DynamicEntityRemoteService() |
| Modifier and Type | Method and Description |
|---|---|
PersistenceResponse |
add(PersistencePackage persistencePackage)
This will throw a
ValidationException and not attempt to swallow them and wrap any other exceptions within
a ServiceException that might have resulted in adding the given package. |
protected void |
cleanEntity(Entity entity) |
PersistenceResponse |
fetch(PersistencePackage persistencePackage,
CriteriaTransferObject cto) |
PersistenceResponse |
inspect(PersistencePackage persistencePackage)
Builds all of the metadata associated with a particular request for an entity.
|
PersistenceResponse |
nonTransactionalAdd(PersistencePackage persistencePackage)
The exact same as
DynamicEntityService.add(PersistencePackage) except this is not bound to a transaction. |
PersistenceResponse |
nonTransactionalRemove(PersistencePackage persistencePackage)
The exact same as
DynamicEntityService.remove(PersistencePackage) except this is not bound to a transaction. |
PersistenceResponse |
nonTransactionalUpdate(PersistencePackage persistencePackage)
The exact same as
DynamicEntityService.update(PersistencePackage) except this is not bound to a transaction. |
protected ServiceException |
recreateSpecificServiceException(ServiceException e,
String message,
Throwable cause) |
PersistenceResponse |
remove(PersistencePackage persistencePackage) |
PersistenceResponse |
update(PersistencePackage persistencePackage) |
protected static final Map<BatchPersistencePackage,BatchDynamicResultSet> METADATA_CACHE
protected ExploitProtectionService exploitProtectionService
protected PersistenceThreadManager persistenceThreadManager
protected StreamingTransactionCapableUtil transUtil
protected ServiceException recreateSpecificServiceException(ServiceException e, String message, Throwable cause)
public PersistenceResponse inspect(PersistencePackage persistencePackage) throws ServiceException
DynamicEntityServicePersistenceResponse
that is returned will not have the PersistenceResponse.getEntity() property set and this will return null.
Instead, this will populate PersistenceResponse.getDynamicResultSet().inspect in interface DynamicEntityServicepersistencePackage - the package that should be passed through the admin pipeline to build the metadataPersistenceResponse with the PersistenceResponse.getDynamicResultSet() set with the
metadata of the built properties for this particular entityServiceException - wraps whatever internal exception that might have occurred as a result of the inspectpublic PersistenceResponse fetch(PersistencePackage persistencePackage, CriteriaTransferObject cto) throws ServiceException
fetch in interface DynamicEntityServiceServiceExceptionprotected void cleanEntity(Entity entity) throws ServiceException
ServiceExceptionpublic PersistenceResponse add(PersistencePackage persistencePackage) throws ServiceException
DynamicEntityServiceValidationException and not attempt to swallow them and wrap any other exceptions within
a ServiceException that might have resulted in adding the given package.add in interface DynamicEntityServiceServiceExceptionAdminEntityService#add(org.broadleafcommerce.openadmin.server.domain.PersistencePackageRequest)}public PersistenceResponse update(PersistencePackage persistencePackage) throws ServiceException
update in interface DynamicEntityServiceServiceExceptionpublic PersistenceResponse remove(PersistencePackage persistencePackage) throws ServiceException
remove in interface DynamicEntityServiceServiceExceptionpublic PersistenceResponse nonTransactionalAdd(PersistencePackage persistencePackage) throws ServiceException
DynamicEntityServiceDynamicEntityService.add(PersistencePackage) except this is not bound to a transaction. This is useful when
transactions are handled by the caller that has its own rollback logic (like when batching multiple adds).nonTransactionalAdd in interface DynamicEntityServiceServiceExceptionpublic PersistenceResponse nonTransactionalUpdate(PersistencePackage persistencePackage) throws ServiceException
DynamicEntityServiceDynamicEntityService.update(PersistencePackage) except this is not bound to a transaction. This is useful when
transactions are handled by the caller that has its own rollback logic (like when batching multiple updates).nonTransactionalUpdate in interface DynamicEntityServiceServiceExceptionpublic PersistenceResponse nonTransactionalRemove(PersistencePackage persistencePackage) throws ServiceException
DynamicEntityServiceDynamicEntityService.remove(PersistencePackage) except this is not bound to a transaction. This is useful when
transactions are handled by the caller that has its own rollback logic (like when batching multiple removes).nonTransactionalRemove in interface DynamicEntityServiceServiceExceptionCopyright © 2017. All rights reserved.