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
Modifier and TypeFieldDescriptionstatic final int
static final int
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class com.logicaldoc.core.PersistentObject
DELETED_CODE_DEFAULT, DELETED_CODE_STRONG
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
decryptPassword
(String password) boolean
long
getBatch()
int
int
getDepth()
Composes the displayable importFolder's urlint
getHost()
int
int
The maximum file size, expressed in bytesgetPath()
getPort()
int
int
getTags()
int
getUrl()
Composes the complete importFolder's urlint
hashCode()
boolean
Check if the specified filename is allowed or not.void
setAutomation
(String automation) void
setAutomationAfter
(String automationAfter) void
setBarcodeTemplateId
(Long barcodeTemplateId) void
setBatch
(long batch) void
setDelImport
(int delImport) void
setDepth
(int depth) void
void
setEnabled
(int enabled) void
setExcludes
(String excludes) void
void
setImportEmpty
(int importEmpty) void
setIncludes
(String includes) void
setInheritRights
(int inheritRights) void
setLanguage
(String language) void
void
setMaxSize
(Integer maxSize) void
setOcrTemplateId
(Long ocrTemplateId) void
setPassword
(String password) void
void
void
setPreventDuplications
(int preventDuplications) void
setProvider
(String provider) void
setRecordHistory
(int recordHistory) void
setStartDate
(Date startDate) void
void
setTargetFolderId
(Long targetFolderId) void
setTemplateId
(Long templateId) void
setUpdatePolicy
(int updatePolicy) void
setUsername
(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
filename
matches theincludes
and 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
-
hashCode
public int hashCode()- Overrides:
hashCode
in classcom.logicaldoc.core.PersistentObject
-
equals
- Overrides:
equals
in classcom.logicaldoc.core.PersistentObject
-