Class BusinessDataServiceImpl
java.lang.Object
org.bonitasoft.engine.business.data.impl.BusinessDataServiceImpl
- All Implemented Interfaces:
BusinessDataService
@Service
@ConditionalOnSingleCandidate(BusinessDataService.class)
public class BusinessDataServiceImpl
extends Object
implements BusinessDataService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BusinessDataModelRepositoryprotected final BusinessDataRepository -
Constructor Summary
ConstructorsConstructorDescriptionBusinessDataServiceImpl(BusinessDataRepository businessDataRepository, JsonBusinessDataSerializer jsonBusinessDataSerializer, BusinessDataModelRepository businessDataModelRepository, TypeConverterUtil typeConverterUtil, BusinessDataReloader businessDataReloader, CountQueryProvider countQueryProvider) -
Method Summary
Modifier and TypeMethodDescriptioncallJavaOperation(Object businessObject, Object valueToSetObjectWith, String methodName, String parameterType) getJsonChildEntity(String entityClassName, Long identifier, String childFieldName, String businessDataURIPattern) getJsonEntities(String entityClassName, List<Long> identifiers, String businessDataURIPattern) getJsonEntity(String entityClassName, Long identifier, String businessDataURIPattern) org.bonitasoft.engine.bpm.businessdata.BusinessDataQueryResultgetJsonQueryEntities(String entityClassName, String queryName, Map<String, Serializable> parameters, Integer startIndex, Integer maxResults, String businessDataURIPattern) protected voidinvokeJavaMethod(Object objectToSet, String methodName, String parameterType, Object valueToSet) booleanisBusinessData(Object data) protected Class<? extends org.bonitasoft.engine.bdm.Entity>protected Class<? extends Serializable>loadSerializableClass(String className)
-
Field Details
-
businessDataRepository
-
businessDataModelRepository
-
-
Constructor Details
-
BusinessDataServiceImpl
public BusinessDataServiceImpl(BusinessDataRepository businessDataRepository, JsonBusinessDataSerializer jsonBusinessDataSerializer, BusinessDataModelRepository businessDataModelRepository, TypeConverterUtil typeConverterUtil, BusinessDataReloader businessDataReloader, CountQueryProvider countQueryProvider)
-
-
Method Details
-
isBusinessData
- Specified by:
isBusinessDatain interfaceBusinessDataService
-
callJavaOperation
public Object callJavaOperation(Object businessObject, Object valueToSetObjectWith, String methodName, String parameterType) throws SBusinessDataNotFoundException, SBusinessDataRepositoryException - Specified by:
callJavaOperationin interfaceBusinessDataService- Throws:
SBusinessDataNotFoundExceptionSBusinessDataRepositoryException
-
invokeJavaMethod
protected void invokeJavaMethod(Object objectToSet, String methodName, String parameterType, Object valueToSet) throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException -
getJsonEntity
public Serializable getJsonEntity(String entityClassName, Long identifier, String businessDataURIPattern) throws SBusinessDataNotFoundException, SBusinessDataRepositoryException - Specified by:
getJsonEntityin interfaceBusinessDataService- Throws:
SBusinessDataNotFoundExceptionSBusinessDataRepositoryException
-
getJsonEntities
public Serializable getJsonEntities(String entityClassName, List<Long> identifiers, String businessDataURIPattern) throws SBusinessDataRepositoryException - Specified by:
getJsonEntitiesin interfaceBusinessDataService- Throws:
SBusinessDataRepositoryException
-
getJsonChildEntity
public Serializable getJsonChildEntity(String entityClassName, Long identifier, String childFieldName, String businessDataURIPattern) throws SBusinessDataNotFoundException, SBusinessDataRepositoryException - Specified by:
getJsonChildEntityin interfaceBusinessDataService- Throws:
SBusinessDataNotFoundExceptionSBusinessDataRepositoryException
-
getJsonQueryEntities
public org.bonitasoft.engine.bpm.businessdata.BusinessDataQueryResult getJsonQueryEntities(String entityClassName, String queryName, Map<String, Serializable> parameters, Integer startIndex, Integer maxResults, String businessDataURIPattern) throws SBusinessDataRepositoryException- Specified by:
getJsonQueryEntitiesin interfaceBusinessDataService- Throws:
SBusinessDataRepositoryException
-
loadClass
protected Class<? extends org.bonitasoft.engine.bdm.Entity> loadClass(String returnType) throws SBusinessDataRepositoryException - Throws:
SBusinessDataRepositoryException
-
loadSerializableClass
protected Class<? extends Serializable> loadSerializableClass(String className) throws SBusinessDataRepositoryException - Throws:
SBusinessDataRepositoryException
-