Class ImportFolder

java.lang.Object
com.logicaldoc.core.PersistentObject
com.logicaldoc.importfolder.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:
  • Field Details

  • Constructor Details

    • ImportFolder

      public ImportFolder()
  • Method Details

    • 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)
    • getAutomation

      public String getAutomation()
    • setAutomation

      public void setAutomation(String automation)
    • getAutomationAfter

      public String getAutomationAfter()
    • setAutomationAfter

      public void setAutomationAfter(String automationAfter)
    • getAutomationEnd

      public String getAutomationEnd()
    • setAutomationEnd

      public void setAutomationEnd(String automationEnd)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class com.logicaldoc.core.PersistentObject
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class com.logicaldoc.core.PersistentObject