public class ParameterServiceImpl extends Object implements ParameterService
| Modifier and Type | Field and Description |
|---|---|
static int |
PAGE_SIZE |
static String |
PARAMETER |
| Constructor and Description |
|---|
ParameterServiceImpl(Recorder recorder,
org.bonitasoft.engine.persistence.ReadPersistenceService persistenceService,
EventService eventService) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAll(long processDefinitionId,
Map<String,String> parameters)
Store all parameters provided to the specific process in file system
|
boolean |
containsNullValues(long processDefinitionId)
Check if the specific process contains null-valued parameter or not.
|
void |
deleteAll(long processDefinitionId)
Delete all parameters for a specific processDefinition
|
List<SParameter> |
get(long processDefinitionId,
int fromIndex,
int numberOfResult,
OrderBy order)
Get parameters in a specific interval for specific process, this is used for pagination
|
SParameter |
get(long processDefinitionId,
String parameterName)
Get parameter by name in specific process
|
Map<String,String> |
getAll(long processDefinitionId)
return all parameters in a map
|
List<SParameter> |
getNullValues(long processDefinitionId,
int fromIndex,
int numberOfResult,
OrderBy order)
Get a list of parameters will null values in order in specific process
|
void |
update(long processDefinitionId,
String parameterName,
String parameterValue)
Update specific parameter value in a process
|
public static final int PAGE_SIZE
public static final String PARAMETER
public ParameterServiceImpl(Recorder recorder, org.bonitasoft.engine.persistence.ReadPersistenceService persistenceService, EventService eventService)
public void update(long processDefinitionId,
String parameterName,
String parameterValue)
throws SParameterNameNotFoundException,
org.bonitasoft.engine.persistence.SBonitaReadException,
org.bonitasoft.engine.commons.exceptions.SObjectModificationException
ParameterServiceupdate in interface ParameterServiceprocessDefinitionId - identifier of processDefinitionparameterName - name of the parameter will be updatedparameterValue - new value of the parameterSParameterNameNotFoundException - error thrown if no parameter found for the specific parameterNameorg.bonitasoft.engine.persistence.SBonitaReadExceptionorg.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionpublic void addAll(long processDefinitionId,
Map<String,String> parameters)
throws org.bonitasoft.engine.commons.exceptions.SObjectCreationException,
org.bonitasoft.engine.persistence.SBonitaReadException,
org.bonitasoft.engine.commons.exceptions.SObjectModificationException
ParameterServiceaddAll in interface ParameterServiceprocessDefinitionId - identifier of processDefinitionparameters - parameters will be stored in file systemorg.bonitasoft.engine.commons.exceptions.SObjectCreationExceptionorg.bonitasoft.engine.persistence.SBonitaReadExceptionorg.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionpublic Map<String,String> getAll(long processDefinitionId) throws SParameterProcessNotFoundException, org.bonitasoft.engine.persistence.SBonitaReadException
ParameterServicegetAll in interface ParameterServiceSParameterProcessNotFoundExceptionorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic void deleteAll(long processDefinitionId)
throws SParameterProcessNotFoundException,
org.bonitasoft.engine.persistence.SBonitaReadException,
org.bonitasoft.engine.commons.exceptions.SObjectModificationException
ParameterServicedeleteAll in interface ParameterServiceprocessDefinitionId - ID of processDefinitionSParameterProcessNotFoundException - error thrown if no parameters configuration file found in file systemorg.bonitasoft.engine.persistence.SBonitaReadExceptionorg.bonitasoft.engine.commons.exceptions.SObjectModificationExceptionpublic List<SParameter> get(long processDefinitionId, int fromIndex, int numberOfResult, OrderBy order) throws org.bonitasoft.engine.persistence.SBonitaReadException
ParameterServiceget in interface ParameterServiceprocessDefinitionId - identifier of processDefinitionfromIndex - index of the record to be retrieved from. First record has index 0numberOfResult - number of result we want to get. Maximum number of result returned.order - OrderBy object, contains information to do orderorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic SParameter get(long processDefinitionId, String parameterName) throws org.bonitasoft.engine.persistence.SBonitaReadException
ParameterServiceget in interface ParameterServiceprocessDefinitionId - identifier of processDefinitionparameterName - name of parameterorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<SParameter> getNullValues(long processDefinitionId, int fromIndex, int numberOfResult, OrderBy order) throws SParameterProcessNotFoundException, org.bonitasoft.engine.persistence.SBonitaReadException
ParameterServicegetNullValues in interface ParameterServiceprocessDefinitionId - identifier of processDefinitionfromIndex - index of the record to be retrieved from. First record has index 0numberOfResult - number of result we want to get. Maximum number of result returned.order - OrderBy object, contains information to do orderSParameterProcessNotFoundException - error thrown if no parameters configuration file found in file systemorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic boolean containsNullValues(long processDefinitionId)
throws org.bonitasoft.engine.persistence.SBonitaReadException
ParameterServicecontainsNullValues in interface ParameterServiceprocessDefinitionId - The ID of the process definitionorg.bonitasoft.engine.persistence.SBonitaReadExceptionCopyright © 2018 Bonitasoft S.A.. All rights reserved.