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, com.logicaldoc.core.automation.AutomationException
      Throws:
      FeatureNotEnabledException
      com.logicaldoc.core.PersistenceException
      IOException
      com.logicaldoc.util.crypt.CryptUtil.EncryptionException
      com.logicaldoc.core.automation.AutomationException
    • 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)
    • 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)