public interface DynamicEntityService
AdminEntityService
instead. The
methods in this class will not attempt to recover from things like validation problems whereas AdminEntityService
will.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. |
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
add(PersistencePackage) except this is not bound to a transaction. |
PersistenceResponse |
nonTransactionalFetch(PersistencePackage persistencePackage,
CriteriaTransferObject cto) |
PersistenceResponse |
nonTransactionalInspect(PersistencePackage persistencePackage) |
PersistenceResponse |
nonTransactionalRemove(PersistencePackage persistencePackage)
The exact same as
remove(PersistencePackage) except this is not bound to a transaction. |
PersistenceResponse |
nonTransactionalUpdate(PersistencePackage persistencePackage)
The exact same as
update(PersistencePackage) except this is not bound to a transaction. |
PersistenceResponse |
remove(PersistencePackage persistencePackage) |
PersistenceResponse |
update(PersistencePackage persistencePackage) |
@PreAuthorize(value="isAuthenticated()") PersistenceResponse inspect(PersistencePackage persistencePackage) throws ServiceException
PersistenceResponse
that is returned will not have the PersistenceResponse.getEntity()
property set and this will return null.
Instead, this will populate PersistenceResponse.getDynamicResultSet()
.persistencePackage
- 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 inspect@PreAuthorize(value="isAuthenticated()") PersistenceResponse nonTransactionalInspect(PersistencePackage persistencePackage) throws ServiceException
ServiceException
@PreAuthorize(value="isAuthenticated()") PersistenceResponse fetch(PersistencePackage persistencePackage, CriteriaTransferObject cto) throws ServiceException
ServiceException
@PreAuthorize(value="isAuthenticated()") PersistenceResponse nonTransactionalFetch(PersistencePackage persistencePackage, CriteriaTransferObject cto) throws ServiceException
ServiceException
@PreAuthorize(value="isAuthenticated()") PersistenceResponse add(PersistencePackage persistencePackage) throws ServiceException
ValidationException
and not attempt to swallow them and wrap any other exceptions within
a ServiceException
that might have resulted in adding the given package.persistencePackage
- ServiceException
AdminEntityService#add(org.broadleafcommerce.openadmin.server.domain.PersistencePackageRequest)}
@PreAuthorize(value="isAuthenticated()") PersistenceResponse nonTransactionalAdd(PersistencePackage persistencePackage) throws ServiceException
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).persistencePackage
- ServiceException
@PreAuthorize(value="isAuthenticated()") PersistenceResponse update(PersistencePackage persistencePackage) throws ServiceException
ServiceException
@PreAuthorize(value="isAuthenticated()") PersistenceResponse nonTransactionalUpdate(PersistencePackage persistencePackage) throws ServiceException
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).persistencePackage
- ServiceException
@PreAuthorize(value="isAuthenticated()") PersistenceResponse remove(PersistencePackage persistencePackage) throws ServiceException
ServiceException
@PreAuthorize(value="isAuthenticated()") PersistenceResponse nonTransactionalRemove(PersistencePackage persistencePackage) throws ServiceException
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).persistencePackage
- ServiceException
Copyright © 2022. All rights reserved.