Class TemporaryContentServiceImpl
- java.lang.Object
-
- org.bonitasoft.engine.temporary.content.TemporaryContentServiceImpl
-
- All Implemented Interfaces:
TemporaryContentService
@Service public class TemporaryContentServiceImpl extends java.lang.Object implements TemporaryContentService
- Author:
- Haroun EL ALAMI
-
-
Constructor Summary
Constructors Constructor Description TemporaryContentServiceImpl(java.lang.String cleanupDelay, PersistenceService platformPersistenceService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringadd(java.lang.String fileName, java.io.InputStream content, java.lang.String mimeType)booleancanStreamAfterTransactionCompletes()intcleanOutDatedTemporaryContent()STemporaryContentget(java.lang.String key)voidremove(STemporaryContent file)voidremoveAll(java.util.List<STemporaryContent> files)
-
-
-
Constructor Detail
-
TemporaryContentServiceImpl
public TemporaryContentServiceImpl(@Value("${bonita.runtime.temporary-content.cleanup.delay:PT1H}") java.lang.String cleanupDelay, PersistenceService platformPersistenceService)
-
-
Method Detail
-
add
public java.lang.String add(java.lang.String fileName, java.io.InputStream content, java.lang.String mimeType) throws SRecorderException, java.io.IOException, SPersistenceException- Specified by:
addin interfaceTemporaryContentService- Throws:
SRecorderExceptionjava.io.IOExceptionSPersistenceException
-
remove
public void remove(STemporaryContent file) throws SRecorderException, SPersistenceException
- Specified by:
removein interfaceTemporaryContentService- Throws:
SRecorderExceptionSPersistenceException
-
removeAll
public void removeAll(java.util.List<STemporaryContent> files) throws SRecorderException, SPersistenceException
- Specified by:
removeAllin interfaceTemporaryContentService- Throws:
SRecorderExceptionSPersistenceException
-
cleanOutDatedTemporaryContent
public int cleanOutDatedTemporaryContent() throws SPersistenceException- Specified by:
cleanOutDatedTemporaryContentin interfaceTemporaryContentService- Throws:
SPersistenceException
-
canStreamAfterTransactionCompletes
public boolean canStreamAfterTransactionCompletes()
- Specified by:
canStreamAfterTransactionCompletesin interfaceTemporaryContentService
-
get
public STemporaryContent get(java.lang.String key) throws SBonitaReadException, SObjectNotFoundException
- Specified by:
getin interfaceTemporaryContentService- Throws:
SBonitaReadExceptionSObjectNotFoundException
-
-