Package com.logicaldoc.importfolder
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class com.logicaldoc.core.PersistentObject
DELETED_CODE_DEFAULT, DELETED_CODE_STRONG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringdecryptPassword(String password) booleanlonggetBatch()intintgetDepth()Composes the displayable importFolder's urlintgetHost()intintThe maximum file size, expressed in bytesgetPath()getPort()intintgetTags()intgetUrl()Composes the complete importFolder's urlinthashCode()booleanCheck if the specified filename is allowed or not.voidsetAutomation(String automation) voidsetAutomationAfter(String automationAfter) voidsetAutomationEnd(String automationEnd) voidsetBarcodeTemplateId(Long barcodeTemplateId) voidsetBatch(long batch) voidsetDelImport(int delImport) voidsetDepth(int depth) voidvoidsetEnabled(int enabled) voidsetExcludes(String excludes) voidvoidsetImportEmpty(int importEmpty) voidsetIncludes(String includes) voidsetInheritRights(int inheritRights) voidsetLanguage(String language) voidvoidsetMaxSize(Integer maxSize) voidsetOcrTemplateId(Long ocrTemplateId) voidsetPassword(String password) voidvoidvoidsetPreventDuplications(int preventDuplications) voidsetProvider(String provider) voidsetRecordHistory(int recordHistory) voidsetStartDate(Date startDate) voidvoidsetTargetFolderId(Long targetFolderId) voidsetTemplateId(Long templateId) voidsetUpdatePolicy(int updatePolicy) voidsetUsername(String userName) Methods inherited from class com.logicaldoc.core.PersistentObject
getCreation, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, setCreation, setDeleted, setId, setLastModified, setRecordVersion, setTenantId, toString
-
Field Details
-
PROVIDER_SMB
- See Also:
-
PROVIDER_SMB2
- See Also:
-
PROVIDER_SMB3
- See Also:
-
PROVIDER_FILE
- See Also:
-
PROVIDER_FTP
- See Also:
-
PROVIDER_FTPS
- See Also:
-
PROVIDER_SFTP
- See Also:
-
POLICY_NEW_VERSION
public static final int POLICY_NEW_VERSION- See Also:
-
POLICY_NEW_DOCUMENT
public static final int POLICY_NEW_DOCUMENT- See Also:
-
-
Constructor Details
-
ImportFolder
public ImportFolder()
-
-
Method Details
-
getBatch
public long getBatch() -
setBatch
public void setBatch(long batch) -
getTemplateId
-
setTemplateId
-
getLanguage
-
setLanguage
-
getProvider
-
setProvider
-
getPath
-
setPath
-
getUsername
-
setUsername
-
getDepth
public int getDepth() -
setDepth
public void setDepth(int depth) -
getHost
-
setHost
-
getPort
-
setPort
-
getPassword
-
getPasswordDecrypted
-
setPassword
-
decryptPassword
-
getUrl
Composes the complete importFolder's url- Returns:
- url of the import folder
-
getDisplayUrl
Composes the displayable importFolder's url- Returns:
- the display url
-
isAllowed
Check if the specified filename is allowed or not.- Parameters:
filename- The filename to check- Returns:
- True if
filenamematches theincludesand not theexcludes
-
getEnabled
public int getEnabled() -
setEnabled
public void setEnabled(int enabled) -
getMaxSize
The maximum file size, expressed in bytes- Returns:
- the maximum size
-
setMaxSize
-
getTags
-
setTags
-
getLocale
-
setLocale
-
getTargetFolderId
-
setTargetFolderId
-
getDelImport
public int getDelImport() -
setDelImport
public void setDelImport(int delImport) -
getIncludes
-
setIncludes
-
getExcludes
-
setExcludes
-
getDomain
-
setDomain
-
getStartDate
-
setStartDate
-
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
-
setOcrTemplateId
-
getBarcodeTemplateId
-
setBarcodeTemplateId
-
getRecordHistory
public int getRecordHistory() -
setRecordHistory
public void setRecordHistory(int recordHistory) -
getPreventDuplications
public int getPreventDuplications() -
setPreventDuplications
public void setPreventDuplications(int preventDuplications) -
getAutomation
-
setAutomation
-
getAutomationAfter
-
setAutomationAfter
-
getAutomationEnd
-
setAutomationEnd
-
hashCode
public int hashCode()- Overrides:
hashCodein classcom.logicaldoc.core.PersistentObject
-
equals
- Overrides:
equalsin classcom.logicaldoc.core.PersistentObject
-