Package org.bonitasoft.engine.resources
Class ProcessResourcesServiceImpl
- java.lang.Object
-
- org.bonitasoft.engine.resources.ProcessResourcesServiceImpl
-
- All Implemented Interfaces:
ProcessResourcesService
public class ProcessResourcesServiceImpl extends java.lang.Object implements ProcessResourcesService
- Author:
- Baptiste Mesta
-
-
Field Summary
-
Fields inherited from interface org.bonitasoft.engine.resources.ProcessResourcesService
BAR_RESOURCE
-
-
Constructor Summary
Constructors Constructor Description ProcessResourcesServiceImpl(Recorder recorder, ReadPersistenceService persistenceService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(long processDefinitionId, java.lang.String name, BARResourceType type, byte[] content)longcount(long processDefinitionId, BARResourceType type)java.util.List<SBARResource>get(long processDefinitionId, BARResourceType type, int from, int numberOfElements)SBARResourceget(long processDefinitionId, BARResourceType type, java.lang.String name)java.util.List<SBARResourceLight>getLight(long processDefinitionId, BARResourceType type, int from, int numberOfElements)voidremove(AbstractSBARResource resource)voidremoveAll(long processDefinitionId, BARResourceType type)voidupdate(AbstractSBARResource resource, byte[] content)
-
-
-
Constructor Detail
-
ProcessResourcesServiceImpl
public ProcessResourcesServiceImpl(Recorder recorder, ReadPersistenceService persistenceService)
-
-
Method Detail
-
add
public void add(long processDefinitionId, java.lang.String name, BARResourceType type, byte[] content) throws SRecorderException- Specified by:
addin interfaceProcessResourcesService- Throws:
SRecorderException
-
update
public void update(AbstractSBARResource resource, byte[] content) throws SRecorderException
- 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 java.util.List<SBARResourceLight> getLight(long processDefinitionId, BARResourceType type, int from, int numberOfElements) throws SBonitaReadException
- Throws:
SBonitaReadException
-
get
public java.util.List<SBARResource> get(long processDefinitionId, BARResourceType type, int from, int numberOfElements) throws SBonitaReadException
- Specified by:
getin interfaceProcessResourcesService- Throws:
SBonitaReadException
-
count
public long count(long processDefinitionId, BARResourceType type) throws SBonitaReadException- Specified by:
countin interfaceProcessResourcesService- Throws:
SBonitaReadException
-
get
public SBARResource get(long processDefinitionId, BARResourceType type, java.lang.String name) throws SBonitaReadException
- Specified by:
getin interfaceProcessResourcesService- Throws:
SBonitaReadException
-
remove
public void remove(AbstractSBARResource resource) throws SRecorderException
- Specified by:
removein interfaceProcessResourcesService- Throws:
SRecorderException
-
-