Package com.logicaldoc.stamp
Class StampManager
- java.lang.Object
-
- com.logicaldoc.stamp.StampManager
-
public class StampManager extends Object
Manager for stamp images- Since:
- 7.3
- Author:
- Marco Meschieri - LogicalDOC
-
-
Constructor Summary
Constructors Constructor Description StampManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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
getConverterManager()
com.logicaldoc.core.document.dao.DocumentDAO
getDocDao()
com.logicaldoc.core.document.DocumentManager
getManager()
byte[]
getStampBytes(long stampId)
Retrieves the unencrypted stream of the stamp imageStampDAO
getStampDao()
File
getStampsFolder()
com.logicaldoc.core.store.Storer
getStorer()
void
setConfig(com.logicaldoc.util.config.ContextProperties config)
void
setConverterManager(com.logicaldoc.core.conversion.FormatConverterManager converterManager)
void
setDocDao(com.logicaldoc.core.document.dao.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)
-
-
-
Method Detail
-
getStampBytes
public byte[] getStampBytes(long stampId) throws Exception
Retrieves the unencrypted stream of the stamp image- Parameters:
stampId
- ID of the stamp- Returns:
- content of the stamp
- Throws:
Exception
- a generic error
-
delete
public void delete(long stampId) throws IOException
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 Exception
- Throws:
Exception
-
getStampsFolder
public File getStampsFolder()
-
setStampsFolder
public void setStampsFolder(File stampsFolder)
-
getDocDao
public com.logicaldoc.core.document.dao.DocumentDAO getDocDao()
-
setDocDao
public void setDocDao(com.logicaldoc.core.document.dao.DocumentDAO docDao)
-
getStampDao
public StampDAO getStampDao()
-
setStampDao
public void setStampDao(StampDAO stampDao)
-
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)
-
-