@Service(value="blStaticAssetStorageService") public class StaticAssetStorageServiceImpl extends Object implements StaticAssetStorageService
| Modifier and Type | Class and Description |
|---|---|
static class |
StaticAssetStorageServiceImpl.CleanupOperation |
| Modifier and Type | Field and Description |
|---|---|
protected ArtifactService |
artifactService |
protected String |
cacheDirectory |
protected Thread |
cleanupThread |
protected boolean |
cleanupThreadEnabled |
protected NamedOperationManager |
namedOperationManager |
protected StaticAssetService |
staticAssetService |
protected StaticAssetStorageDao |
staticAssetStorageDao |
| Constructor and Description |
|---|
StaticAssetStorageServiceImpl() |
protected String cacheDirectory
protected boolean cleanupThreadEnabled
protected StaticAssetService staticAssetService
protected ArtifactService artifactService
protected StaticAssetStorageDao staticAssetStorageDao
protected NamedOperationManager namedOperationManager
protected Thread cleanupThread
@PreDestroy public void destroy()
protected StaticAsset findStaticAsset(String fullUrl, SandBox sandBox)
@Transactional(value="blTransactionManagerAssetStorageInfo") public Map<String,String> getCacheFileModel(String fullUrl, SandBox sandBox, Map<String,String> parameterMap) throws Exception
getCacheFileModel in interface StaticAssetStorageServiceException@Transactional(value="blTransactionManagerAssetStorageInfo") public StaticAssetStorage findStaticAssetStorageById(Long id)
findStaticAssetStorageById in interface StaticAssetStorageService@Transactional(value="blTransactionManagerAssetStorageInfo") public StaticAssetStorage create()
create in interface StaticAssetStorageService@Transactional(value="blTransactionManagerAssetStorageInfo") public StaticAssetStorage readStaticAssetStorageByStaticAssetId(Long id)
readStaticAssetStorageByStaticAssetId in interface StaticAssetStorageService@Transactional(value="blTransactionManagerAssetStorageInfo") public StaticAssetStorage save(StaticAssetStorage assetStorage)
save in interface StaticAssetStorageService@Transactional(value="blTransactionManagerAssetStorageInfo") public void delete(StaticAssetStorage assetStorage)
delete in interface StaticAssetStorageService@Transactional(value="blTransactionManagerAssetStorageInfo") public Blob createBlob(org.springframework.web.multipart.MultipartFile uploadedFile) throws IOException
createBlob in interface StaticAssetStorageServiceIOExceptionprotected void clearObsoleteCacheFiles(StaticAsset staticAsset, File cacheFile)
protected void createCacheFile(InputStream is, File cacheFile) throws SQLException, IOException
SQLExceptionIOExceptionprotected String constructCacheFileName(StaticAsset staticAsset, Map<String,String> parameterMap)
public String getCacheDirectory()
public void setCacheDirectory(String cacheDirectory)
public boolean isCleanupThreadEnabled()
public void setCleanupThreadEnabled(boolean cleanupThreadEnabled)
Copyright © 2013. All rights reserved.