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 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 image
      com.logicaldoc.core.PersistenceException - Error in the data layer
      IOException - I/O 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 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

      public File getStampsFolder()
    • setStampsFolder

      public void setStampsFolder(File stampsFolder)
    • getDocDao

      public com.logicaldoc.core.document.DocumentDAO getDocDao()
    • setDocDao

      public void setDocDao(com.logicaldoc.core.document.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)