public class BusinessDataServiceImpl extends Object implements BusinessDataService
| Constructor and Description |
|---|
BusinessDataServiceImpl(BusinessDataRepository businessDataRepository,
JsonBusinessDataSerializer jsonBusinessDataSerializer,
BusinessDataModelRepository businessDataModelRepository,
org.bonitasoft.engine.commons.TypeConverterUtil typeConverterUtil) |
| Modifier and Type | Method and Description |
|---|---|
Object |
callJavaOperation(Object businessObject,
Object valueToSetObjectWith,
String methodName,
String parameterType) |
Serializable |
getJsonChildEntity(String entityClassName,
Long identifier,
String childFieldName,
String businessDataURIPattern) |
Serializable |
getJsonEntities(String entityClassName,
List<Long> identifiers,
String businessDataURIPattern) |
Serializable |
getJsonEntity(String entityClassName,
Long identifier,
String businessDataURIPattern) |
Serializable |
getJsonQueryEntities(String entityClassName,
String queryName,
Map<String,Serializable> parameters,
Integer startIndex,
Integer maxResults,
String businessDataURIPattern) |
protected void |
invokeJavaMethod(Object objectToSet,
String methodName,
String parameterType,
Object valueToSet) |
boolean |
isBusinessData(Object data) |
protected Class<? extends Entity> |
loadClass(String returnType) |
protected Class<? extends Serializable> |
loadSerializableClass(String className) |
public BusinessDataServiceImpl(BusinessDataRepository businessDataRepository, JsonBusinessDataSerializer jsonBusinessDataSerializer, BusinessDataModelRepository businessDataModelRepository, org.bonitasoft.engine.commons.TypeConverterUtil typeConverterUtil)
public boolean isBusinessData(Object data)
isBusinessData in interface BusinessDataServicepublic Object callJavaOperation(Object businessObject, Object valueToSetObjectWith, String methodName, String parameterType) throws SBusinessDataNotFoundException, SBusinessDataRepositoryException
callJavaOperation in interface BusinessDataServiceSBusinessDataNotFoundExceptionSBusinessDataRepositoryExceptionprotected void invokeJavaMethod(Object objectToSet, String methodName, String parameterType, Object valueToSet) throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException
public Serializable getJsonEntity(String entityClassName, Long identifier, String businessDataURIPattern) throws SBusinessDataNotFoundException, SBusinessDataRepositoryException
getJsonEntity in interface BusinessDataServiceSBusinessDataNotFoundExceptionSBusinessDataRepositoryExceptionpublic Serializable getJsonEntities(String entityClassName, List<Long> identifiers, String businessDataURIPattern) throws SBusinessDataRepositoryException
getJsonEntities in interface BusinessDataServiceSBusinessDataRepositoryExceptionpublic Serializable getJsonChildEntity(String entityClassName, Long identifier, String childFieldName, String businessDataURIPattern) throws SBusinessDataNotFoundException, SBusinessDataRepositoryException
getJsonChildEntity in interface BusinessDataServiceSBusinessDataNotFoundExceptionSBusinessDataRepositoryExceptionpublic Serializable getJsonQueryEntities(String entityClassName, String queryName, Map<String,Serializable> parameters, Integer startIndex, Integer maxResults, String businessDataURIPattern) throws SBusinessDataRepositoryException
getJsonQueryEntities in interface BusinessDataServiceSBusinessDataRepositoryExceptionprotected Class<? extends Entity> loadClass(String returnType) throws SBusinessDataRepositoryException
SBusinessDataRepositoryExceptionprotected Class<? extends Serializable> loadSerializableClass(String className) throws SBusinessDataRepositoryException
SBusinessDataRepositoryExceptionCopyright © 2015 Bonitasoft S.A.. All rights reserved.