Package org.bonitasoft.engine.resources
Class ProcessResourcesServiceImpl
java.lang.Object
org.bonitasoft.engine.resources.ProcessResourcesServiceImpl
- All Implemented Interfaces:
ProcessResourcesService
- Author:
- Baptiste Mesta
-
Field Summary
Fields inherited from interface org.bonitasoft.engine.resources.ProcessResourcesService
BAR_RESOURCE -
Constructor Summary
ConstructorsConstructorDescriptionProcessResourcesServiceImpl(Recorder recorder, ReadPersistenceService persistenceService) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(long processDefinitionId, String name, BARResourceType type, byte[] content) longcount(long processDefinitionId, BARResourceType type) get(long processDefinitionId, BARResourceType type, int from, int numberOfElements) get(long processDefinitionId, BARResourceType type, String name) getLight(long processDefinitionId, BARResourceType type, int from, int numberOfElements) voidremove(AbstractSBARResource resource) voidremoveAll(long processDefinitionId, BARResourceType type) voidupdate(AbstractSBARResource resource, byte[] content)
-
Constructor Details
-
ProcessResourcesServiceImpl
-
-
Method Details
-
add
public void add(long processDefinitionId, String name, BARResourceType type, byte[] content) throws SRecorderException - Specified by:
addin interfaceProcessResourcesService- Throws:
SRecorderException
-
update
- Specified by:
updatein interfaceProcessResourcesService- Throws:
SRecorderException
-
removeAll
public void removeAll(long processDefinitionId, BARResourceType type) throws SBonitaReadException, SRecorderException - Specified by:
removeAllin interfaceProcessResourcesService- Throws:
SBonitaReadExceptionSRecorderException
-
getLight
public List<SBARResourceLight> getLight(long processDefinitionId, BARResourceType type, int from, int numberOfElements) throws SBonitaReadException - Throws:
SBonitaReadException
-
get
public List<SBARResource> get(long processDefinitionId, BARResourceType type, int from, int numberOfElements) throws SBonitaReadException - Specified by:
getin interfaceProcessResourcesService- Throws:
SBonitaReadException
-
count
- Specified by:
countin interfaceProcessResourcesService- Throws:
SBonitaReadException
-
get
public SBARResource get(long processDefinitionId, BARResourceType type, String name) throws SBonitaReadException - Specified by:
getin interfaceProcessResourcesService- Throws:
SBonitaReadException
-
remove
- Specified by:
removein interfaceProcessResourcesService- Throws:
SRecorderException
-