Class StampManager


  • public class StampManager
    extends Object
    Manager for stamp images
    Since:
    7.3
    Author:
    Marco Meschieri - LogicalDOC
    • Constructor Detail

      • StampManager

        public StampManager()
    • 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)