Package com.logicaldoc.importfolder
Class ImportFolder
java.lang.Object
com.logicaldoc.core.PersistentObject
com.logicaldoc.importfolder.ImportFolder
- All Implemented Interfaces:
Serializable
@Entity
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, id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringdecryptPassword(String password) static StringencryptPassword(String password) booleanlonggetBatch()intgetDepth()Composes the displayable importFolder's urlgetHost()The maximum file size, expressed in bytesgetPath()getPort()getTags()intgetUrl()Composes the complete importFolder's urlinthashCode()booleanCheck if the specified filename is allowed or not.booleanbooleanbooleanbooleanbooleanbooleanvoidsetAutomation(String automation) voidsetAutomationAfter(String automationAfter) voidsetAutomationEnd(String automationEnd) voidsetBarcodeTemplateId(Long barcodeTemplateId) voidsetBatch(long batch) voidsetDelImport(boolean delImport) voidsetDepth(int depth) voidvoidsetEnabled(boolean enabled) voidsetExcludes(String excludes) voidvoidsetImportEmpty(boolean importEmpty) voidsetIncludes(String includes) voidsetInheritRights(boolean inheritRights) voidsetLanguage(String language) voidvoidsetMaxSize(Integer maxSize) voidsetOcrTemplateId(Long ocrTemplateId) voidsetPassword(String password) voidvoidvoidsetPreventDuplications(boolean preventDuplications) voidsetProvider(String provider) voidsetRecordHistory(boolean 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() -
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
-
encryptPassword
-
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
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getMaxSize
The maximum file size, expressed in bytes- Returns:
- the maximum size
-
setMaxSize
-
getTags
-
setTags
-
getLocale
-
setLocale
-
getTargetFolderId
-
setTargetFolderId
-
getIncludes
-
setIncludes
-
getExcludes
-
setExcludes
-
getDomain
-
setDomain
-
getStartDate
-
setStartDate
-
getUpdatePolicy
public int getUpdatePolicy() -
setUpdatePolicy
public void setUpdatePolicy(int updatePolicy) -
getOcrTemplateId
-
setOcrTemplateId
-
getBarcodeTemplateId
-
setBarcodeTemplateId
-
getAutomation
-
setAutomation
-
getAutomationAfter
-
setAutomationAfter
-
getAutomationEnd
-
setAutomationEnd
-
isDelImport
public boolean isDelImport() -
setDelImport
public void setDelImport(boolean delImport) -
isImportEmpty
public boolean isImportEmpty() -
setImportEmpty
public void setImportEmpty(boolean importEmpty) -
isRecordHistory
public boolean isRecordHistory() -
setRecordHistory
public void setRecordHistory(boolean recordHistory) -
isInheritRights
public boolean isInheritRights() -
setInheritRights
public void setInheritRights(boolean inheritRights) -
isPreventDuplications
public boolean isPreventDuplications() -
setPreventDuplications
public void setPreventDuplications(boolean preventDuplications) -
hashCode
public int hashCode()- Overrides:
hashCodein classcom.logicaldoc.core.PersistentObject
-
equals
- Overrides:
equalsin classcom.logicaldoc.core.PersistentObject
-