Class TemporaryContentServiceImpl
java.lang.Object
org.bonitasoft.engine.temporary.content.TemporaryContentServiceImpl
- All Implemented Interfaces:
TemporaryContentService
- Author:
- Haroun EL ALAMI
-
Constructor Summary
ConstructorsConstructorDescriptionTemporaryContentServiceImpl(String cleanupDelay, PersistenceService platformPersistenceService) -
Method Summary
Modifier and TypeMethodDescriptionadd(String fileName, InputStream content, String mimeType) booleanintvoidremove(STemporaryContent file) voidremoveAll(List<STemporaryContent> files)
-
Constructor Details
-
TemporaryContentServiceImpl
public TemporaryContentServiceImpl(@Value("${bonita.runtime.temporary-content.cleanup.delay:PT1H}") String cleanupDelay, PersistenceService platformPersistenceService)
-
-
Method Details
-
add
public String add(String fileName, InputStream content, String mimeType) throws SRecorderException, IOException, SPersistenceException - Specified by:
addin interfaceTemporaryContentService- Throws:
SRecorderExceptionIOExceptionSPersistenceException
-
remove
- Specified by:
removein interfaceTemporaryContentService- Throws:
SRecorderExceptionSPersistenceException
-
removeAll
public void removeAll(List<STemporaryContent> files) throws SRecorderException, SPersistenceException - Specified by:
removeAllin interfaceTemporaryContentService- Throws:
SRecorderExceptionSPersistenceException
-
cleanOutDatedTemporaryContent
- Specified by:
cleanOutDatedTemporaryContentin interfaceTemporaryContentService- Throws:
SPersistenceException
-
canStreamAfterTransactionCompletes
public boolean canStreamAfterTransactionCompletes()- Specified by:
canStreamAfterTransactionCompletesin interfaceTemporaryContentService
-
get
- Specified by:
getin interfaceTemporaryContentService- Throws:
SBonitaReadExceptionSObjectNotFoundException
-