Package org.openl.rules.repository.file
Class LocalRepository
- java.lang.Object
-
- org.openl.rules.repository.file.FileSystemRepository
-
- org.openl.rules.repository.file.LocalRepository
-
- All Implemented Interfaces:
Closeable,AutoCloseable,FolderRepository,Repository
public class LocalRepository extends FileSystemRepository
Local File System Repository
-
-
Constructor Summary
Constructors Constructor Description LocalRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetVersion(File file)Compute the hashCode for all files inside folderFeaturessupports()Get the features supported by the repository.-
Methods inherited from class org.openl.rules.repository.file.FileSystemRepository
check, checkHistory, close, copyHistory, delete, delete, deleteHistory, getFileData, getId, getName, getRoot, initialize, invokeListener, isSkip, list, listFiles, listFolders, listHistory, read, readHistory, save, save, save, setId, setListener, setListenerTimerPeriod, setName, setRoot, setUri
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openl.rules.repository.api.Repository
validateConnection
-
-
-
-
Method Detail
-
getVersion
protected String getVersion(File file)
Compute the hashCode for all files inside folder- Overrides:
getVersionin classFileSystemRepository- Parameters:
file- folder- Returns:
- hashCode for given folder
-
supports
public Features supports()
Description copied from interface:RepositoryGet the features supported by the repository. If specific feature is supported, repository instance can be casted to interface class that support that feature.- Specified by:
supportsin interfaceRepository- Overrides:
supportsin classFileSystemRepository- Returns:
- Supported features
-
-