Package com.logicaldoc.stamp
Class StampManager
java.lang.Object
com.logicaldoc.stamp.StampManager
Manager for stamp images
- Since:
- 7.3
- Author:
- Marco Meschieri - LogicalDOC
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyStamp
(long docId, Stamp stamp, com.logicaldoc.core.document.DocumentHistory transaction) void
delete
(long stampId) Deletes the given stamp and all related resourcescom.logicaldoc.core.conversion.FormatConverterManager
com.logicaldoc.core.document.DocumentDAO
com.logicaldoc.core.document.DocumentManager
byte[]
getStampBytes
(long stampId) Retrieves the unencrypted stream of the stamp imagecom.logicaldoc.core.store.Store
getStore()
void
setConfig
(com.logicaldoc.util.config.ContextProperties config) void
setConverterManager
(com.logicaldoc.core.conversion.FormatConverterManager converterManager) void
setDocDao
(com.logicaldoc.core.document.DocumentDAO docDao) void
setManager
(com.logicaldoc.core.document.DocumentManager manager) void
setStampDao
(StampDAO stampDao) void
setStampsFolder
(File stampsFolder) void
setStore
(com.logicaldoc.core.store.Store store)
-
Constructor Details
-
StampManager
public StampManager()
-
-
Method Details
-
getStampBytes
public byte[] getStampBytes(long stampId) throws com.logicaldoc.util.crypt.CryptUtil.EncryptionException, com.logicaldoc.core.PersistenceException, IOException Retrieves the unencrypted stream of the stamp image- Parameters:
stampId
- ID of the stamp- Returns:
- content of the stamp
- Throws:
com.logicaldoc.util.crypt.CryptUtil.EncryptionException
- Unable to decrypt the imagecom.logicaldoc.core.PersistenceException
- Error in the data layerIOException
- I/O error
-
delete
Deletes the given stamp and all related resources- Parameters:
stampId
- identifier of the stamp- Throws:
IOException
- cannot delete the stamp file
-
applyStamp
public void applyStamp(long docId, Stamp stamp, com.logicaldoc.core.document.DocumentHistory transaction) throws FeatureNotEnabledException, com.logicaldoc.core.PersistenceException, IOException, com.logicaldoc.util.crypt.CryptUtil.EncryptionException, com.logicaldoc.core.automation.AutomationException - Throws:
FeatureNotEnabledException
com.logicaldoc.core.PersistenceException
IOException
com.logicaldoc.util.crypt.CryptUtil.EncryptionException
com.logicaldoc.core.automation.AutomationException
-
getStampsFolder
-
setStampsFolder
-
getDocDao
public com.logicaldoc.core.document.DocumentDAO getDocDao() -
setDocDao
public void setDocDao(com.logicaldoc.core.document.DocumentDAO docDao) -
getStampDao
-
setStampDao
-
getStore
public com.logicaldoc.core.store.Store getStore() -
setStore
public void setStore(com.logicaldoc.core.store.Store store) -
getManager
public com.logicaldoc.core.document.DocumentManager getManager() -
setManager
public void setManager(com.logicaldoc.core.document.DocumentManager manager) -
getConverterManager
public com.logicaldoc.core.conversion.FormatConverterManager getConverterManager() -
setConverterManager
public void setConverterManager(com.logicaldoc.core.conversion.FormatConverterManager converterManager) -
setConfig
public void setConfig(com.logicaldoc.util.config.ContextProperties config)
-