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 SummaryFieldsModifier 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.PersistentObjectDELETED_CODE_DEFAULT, DELETED_CODE_STRONG, id
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic StringdecryptPassword(String password) static StringencryptPassword(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.PersistentObjectgetCreation, 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_VERSIONpublic static final int POLICY_NEW_VERSION- See Also:
 
- 
POLICY_NEW_DOCUMENTpublic static final int POLICY_NEW_DOCUMENT- See Also:
 
 
- 
- 
Constructor Details- 
ImportFolderpublic ImportFolder()
- 
ImportFolder
 
- 
- 
Method Details- 
getBatchpublic long getBatch()
- 
setBatchpublic void setBatch(long batch) 
- 
getTemplateId
- 
setTemplateId
- 
getLanguage
- 
setLanguage
- 
getProvider
- 
setProvider
- 
getPath
- 
setPath
- 
getUsername
- 
setUsername
- 
getDepthpublic int getDepth()
- 
setDepthpublic void setDepth(int depth) 
- 
getHost
- 
setHost
- 
getPort
- 
setPort
- 
getPassword
- 
getPasswordDecrypted
- 
setPassword
- 
encryptPassword
- 
decryptPassword
- 
getUrlComposes the complete importFolder's url- Returns:
- url of the import folder
 
- 
getDisplayUrlComposes the displayable importFolder's url- Returns:
- the display url
 
- 
isAllowedCheck if the specified filename is allowed or not.- Parameters:
- filename- The filename to check
- Returns:
- True if filenamematches theincludesand not theexcludes
 
- 
getEnabledpublic int getEnabled()
- 
setEnabledpublic void setEnabled(int enabled) 
- 
getMaxSizeThe maximum file size, expressed in bytes- Returns:
- the maximum size
 
- 
setMaxSize
- 
getTags
- 
setTags
- 
getLocale
- 
setLocale
- 
getTargetFolderId
- 
setTargetFolderId
- 
getDelImportpublic int getDelImport()
- 
setDelImportpublic void setDelImport(int delImport) 
- 
getIncludes
- 
setIncludes
- 
getExcludes
- 
setExcludes
- 
getDomain
- 
setDomain
- 
getStartDate
- 
setStartDate
- 
getUpdatePolicypublic int getUpdatePolicy()
- 
setUpdatePolicypublic void setUpdatePolicy(int updatePolicy) 
- 
getImportEmptypublic int getImportEmpty()
- 
setImportEmptypublic void setImportEmpty(int importEmpty) 
- 
getInheritRightspublic int getInheritRights()
- 
setInheritRightspublic void setInheritRights(int inheritRights) 
- 
getOcrTemplateId
- 
setOcrTemplateId
- 
getBarcodeTemplateId
- 
setBarcodeTemplateId
- 
getRecordHistorypublic int getRecordHistory()
- 
setRecordHistorypublic void setRecordHistory(int recordHistory) 
- 
getPreventDuplicationspublic int getPreventDuplications()
- 
setPreventDuplicationspublic void setPreventDuplications(int preventDuplications) 
- 
getAutomation
- 
setAutomation
- 
getAutomationAfter
- 
setAutomationAfter
- 
getAutomationEnd
- 
setAutomationEnd
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- com.logicaldoc.core.PersistentObject
 
- 
equals- Overrides:
- equalsin class- com.logicaldoc.core.PersistentObject
 
 
-