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 |
remove(PersistencePackage persistencePackage) |
PersistenceResponse |
update(PersistencePackage persistencePackage) |
@Secured(value="PERMISSION_OTHER_DEFAULT") 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@Secured(value="PERMISSION_OTHER_DEFAULT") PersistenceResponse fetch(PersistencePackage persistencePackage, CriteriaTransferObject cto) throws ServiceException
ServiceException@Secured(value="PERMISSION_OTHER_DEFAULT") 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 - ServiceExceptionAdminEntityService#add(org.broadleafcommerce.openadmin.server.domain.PersistencePackageRequest)}@Secured(value="PERMISSION_OTHER_DEFAULT") PersistenceResponse update(PersistencePackage persistencePackage) throws ServiceException
ServiceException@Secured(value="PERMISSION_OTHER_DEFAULT") PersistenceResponse remove(PersistencePackage persistencePackage) throws ServiceException
ServiceExceptionCopyright © 2017. All rights reserved.