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.Storer
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
setStorer
(com.logicaldoc.core.store.Storer storer)
-
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 - Throws:
FeatureNotEnabledException
com.logicaldoc.core.PersistenceException
IOException
com.logicaldoc.util.crypt.CryptUtil.EncryptionException
-
getStampsFolder
-
setStampsFolder
-
getDocDao
public com.logicaldoc.core.document.DocumentDAO getDocDao() -
setDocDao
public void setDocDao(com.logicaldoc.core.document.DocumentDAO docDao) -
getStampDao
-
setStampDao
-
getStorer
public com.logicaldoc.core.store.Storer getStorer() -
setStorer
public void setStorer(com.logicaldoc.core.store.Storer storer) -
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)
-