public class BusinessDataRetriever
extends java.lang.Object
| Constructor and Description |
|---|
BusinessDataRetriever(BusinessDataRepository businessDataRepository,
ServerProxyfier proxyfier) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getBusinessData(SRefBusinessDataInstance refBusinessDataInstance)
Retrieves a Business Data or a List of Business Data related to the given
SRefBusinessDataInstance
depending on its type (single Entity
if it's a SSimpleRefBusinessDataInstance or a ListSMultiRefBusinessDataInstance. |
java.util.List<org.bonitasoft.engine.bdm.Entity> |
getMultiBusinessData(SMultiRefBusinessDataInstance dataRef,
java.lang.Class<? extends org.bonitasoft.engine.bdm.Entity> bizClass)
Retrieves the list of Business Data related to the given
SMultiRefBusinessDataInstance. |
org.bonitasoft.engine.bdm.Entity |
getSimpleBusinessData(SSimpleRefBusinessDataInstance dataRef,
java.lang.Class<? extends org.bonitasoft.engine.bdm.Entity> bizClass)
Retrieves the Business Data related to the given
SSimpleRefBusinessDataInstance. |
public BusinessDataRetriever(BusinessDataRepository businessDataRepository, ServerProxyfier proxyfier)
public org.bonitasoft.engine.bdm.Entity getSimpleBusinessData(SSimpleRefBusinessDataInstance dataRef, java.lang.Class<? extends org.bonitasoft.engine.bdm.Entity> bizClass) throws SBusinessDataNotFoundException
SSimpleRefBusinessDataInstance. If the
SSimpleRefBusinessDataInstance does not
references any Business Data the result will be null.dataRef - the business data referencebizClass - the business data classSSimpleRefBusinessDataInstance or null if no Business Data
is referenced.SBusinessDataNotFoundException - when no Business Data is found for the given idpublic java.util.List<org.bonitasoft.engine.bdm.Entity> getMultiBusinessData(SMultiRefBusinessDataInstance dataRef, java.lang.Class<? extends org.bonitasoft.engine.bdm.Entity> bizClass)
SMultiRefBusinessDataInstance. If the
SMultiRefBusinessDataInstance does not
references any Business Data the result will em empty list.dataRef - the multi business data referencebizClass - the business data classSMultiRefBusinessDataInstance or empty list if no
Business Data is referenced.public java.lang.Object getBusinessData(SRefBusinessDataInstance refBusinessDataInstance) throws SBusinessDataNotFoundException, SExpressionEvaluationException
SRefBusinessDataInstance
depending on its type (single Entity
if it's a SSimpleRefBusinessDataInstance or a ListSMultiRefBusinessDataInstance.
This method will use getSimpleBusinessData(SSimpleRefBusinessDataInstance, Class) or
getMultiBusinessData(SMultiRefBusinessDataInstance, Class) based on the data reference typerefBusinessDataInstance - the business data referenceEntity or List<Entity> if the business data reference is a
SSimpleRefBusinessDataInstance or a
SMultiRefBusinessDataInstance respectivelySBusinessDataNotFoundExceptionSExpressionEvaluationException