Class ImportFolder

  • All Implemented Interfaces:
    Serializable

    public class ImportFolder
    extends com.logicaldoc.core.PersistentObject
    A local or remote importFolder such as a samba directory
    Since:
    2.0
    Author:
    Marco Meschieri - LogicalDOC
    See Also:
    Serialized Form
    • Field Detail

      • PROVIDER_SMB

        public static String PROVIDER_SMB
      • PROVIDER_SMB2

        public static String PROVIDER_SMB2
      • PROVIDER_SMB3

        public static String PROVIDER_SMB3
      • PROVIDER_FILE

        public static String PROVIDER_FILE
      • PROVIDER_FTP

        public static String PROVIDER_FTP
      • PROVIDER_FTPS

        public static String PROVIDER_FTPS
      • PROVIDER_SFTP

        public static String PROVIDER_SFTP
      • POLICY_NEW_VERSION

        public static int POLICY_NEW_VERSION
      • POLICY_NEW_DOCUMENT

        public static int POLICY_NEW_DOCUMENT
    • Constructor Detail

      • ImportFolder

        public ImportFolder()
    • Method Detail

      • getBatch

        public long getBatch()
      • setBatch

        public void setBatch​(long batch)
      • getTemplateId

        public Long getTemplateId()
      • setTemplateId

        public void setTemplateId​(Long templateId)
      • getLanguage

        public String getLanguage()
      • setLanguage

        public void setLanguage​(String language)
      • getProvider

        public String getProvider()
      • setProvider

        public void setProvider​(String provider)
      • getPath

        public String getPath()
      • setPath

        public void setPath​(String url)
      • getUsername

        public String getUsername()
      • setUsername

        public void setUsername​(String userName)
      • getDepth

        public int getDepth()
      • setDepth

        public void setDepth​(int depth)
      • getHost

        public String getHost()
      • setHost

        public void setHost​(String host)
      • getPort

        public String getPort()
      • setPort

        public void setPort​(String port)
      • getPassword

        public String getPassword()
      • getPasswordDecrypted

        public String getPasswordDecrypted()
      • setPassword

        public void setPassword​(String password)
      • decryptPassword

        public static String decryptPassword​(String password)
      • getUrl

        public String getUrl()
        Composes the complete importFolder's url
        Returns:
        url of the import folder
      • getDisplayUrl

        public String getDisplayUrl()
        Composes the displayable importFolder's url
        Returns:
        the display url
      • isAllowed

        public boolean isAllowed​(String filename)
        Check if the specified filename is allowed or not.
        Parameters:
        filename - The filename to check
        Returns:
        True if filename matches the includes and not the excludes
      • getEnabled

        public int getEnabled()
      • setEnabled

        public void setEnabled​(int enabled)
      • getMaxSize

        public Integer getMaxSize()
        The maximum file size, expressed in bytes
        Returns:
        the maximum size
      • setMaxSize

        public void setMaxSize​(Integer maxSize)
      • getTags

        public String getTags()
      • setTags

        public void setTags​(String tags)
      • getLocale

        public Locale getLocale()
      • setLocale

        public void setLocale​(Locale locale)
      • getTargetFolderId

        public Long getTargetFolderId()
      • setTargetFolderId

        public void setTargetFolderId​(Long targetFolderId)
      • getDelImport

        public int getDelImport()
      • setDelImport

        public void setDelImport​(int delImport)
      • getIncludes

        public String getIncludes()
      • setIncludes

        public void setIncludes​(String includes)
      • getExcludes

        public String getExcludes()
      • setExcludes

        public void setExcludes​(String excludes)
      • getDomain

        public String getDomain()
      • setDomain

        public void setDomain​(String domain)
      • getStartDate

        public Date getStartDate()
      • setStartDate

        public void setStartDate​(Date startDate)
      • getUpdatePolicy

        public int getUpdatePolicy()
      • setUpdatePolicy

        public void setUpdatePolicy​(int updatePolicy)
      • getImportEmpty

        public int getImportEmpty()
      • setImportEmpty

        public void setImportEmpty​(int importEmpty)
      • getInheritRights

        public int getInheritRights()
      • setInheritRights

        public void setInheritRights​(int inheritRights)
      • getOcrTemplateId

        public Long getOcrTemplateId()
      • setOcrTemplateId

        public void setOcrTemplateId​(Long ocrTemplateId)
      • getBarcodeTemplateId

        public Long getBarcodeTemplateId()
      • setBarcodeTemplateId

        public void setBarcodeTemplateId​(Long barcodeTemplateId)
      • getRecordHistory

        public int getRecordHistory()
      • setRecordHistory

        public void setRecordHistory​(int recordHistory)
      • getPreventDuplications

        public int getPreventDuplications()
      • setPreventDuplications

        public void setPreventDuplications​(int preventDuplications)