Class LocalRepository
java.lang.Object
org.eclipse.dirigible.repository.fs.FileSystemRepository
org.eclipse.dirigible.repository.local.LocalRepository
- All Implemented Interfaces:
IRepository,IRepositoryExporter,IRepositoryImporter,IRepositoryReader,IRepositorySearch,IRepositoryWriter
public class LocalRepository extends FileSystemRepository
The File System based Local Repository implementation of
IRepository.-
Field Summary
Fields Modifier and Type Field Description static StringDIRIGIBLE_REPOSITORY_LOCAL_ROOT_FOLDERThe Constant DIRIGIBLE_REPOSITORY_LOCAL_ROOT_FOLDER.static StringDIRIGIBLE_REPOSITORY_LOCAL_ROOT_FOLDER_IS_ABSOLUTEThe Constant DIRIGIBLE_REPOSITORY_LOCAL_ROOT_FOLDER_IS_ABSOLUTE.static StringTYPEThe Constant TYPE.Fields inherited from interface org.eclipse.dirigible.repository.api.IRepository
DIRIGIBLE_REPOSITORY_CACHE_ENABLED, DIRIGIBLE_REPOSITORY_CACHE_SIZE_LIMIT_IN_MEGABYTES, DIRIGIBLE_REPOSITORY_CACHE_TIME_LIMIT_IN_MINUTES, DIRIGIBLE_REPOSITORY_PROVIDER, DIRIGIBLE_REPOSITORY_PROVIDER_DATABASE, DIRIGIBLE_REPOSITORY_PROVIDER_LOCAL, SEPARATOR, UTF8 -
Constructor Summary
Constructors Constructor Description LocalRepository()Constructor with default root folder - user.dir and without database initializationLocalRepository(String rootFolder)Constructor with root folder parameter.LocalRepository(String rootFolder, boolean absolute)Constructor with root folder parameter. -
Method Summary
Modifier and Type Method Description longgetLastModified()Gets the last modified.voidinitialize()Initialize.Methods inherited from class org.eclipse.dirigible.repository.fs.FileSystemRepository
createCollection, createRepository, createResource, createResource, createResource, createResource, deleteLinkedPath, dispose, exportZip, exportZip, find, getAllResourcePaths, getCollection, getInternalResourcePath, getParameter, getRepositoryDao, getRepositoryPath, getRepositoryRootFolder, getResource, getRoot, hasCollection, hasResource, importZip, importZip, importZip, importZip, importZip, importZip, isLinkedPath, isLinkingPathsSupported, linkPath, removeCollection, removeResource, searchName, searchName, searchPath, searchRefresh, searchText, setParameter
-
Field Details
-
TYPE
The Constant TYPE.- See Also:
- Constant Field Values
-
DIRIGIBLE_REPOSITORY_LOCAL_ROOT_FOLDER
The Constant DIRIGIBLE_REPOSITORY_LOCAL_ROOT_FOLDER.- See Also:
- Constant Field Values
-
DIRIGIBLE_REPOSITORY_LOCAL_ROOT_FOLDER_IS_ABSOLUTE
The Constant DIRIGIBLE_REPOSITORY_LOCAL_ROOT_FOLDER_IS_ABSOLUTE.- See Also:
- Constant Field Values
-
-
Constructor Details
-
LocalRepository
Constructor with default root folder - user.dir and without database initialization- Throws:
LocalRepositoryException- in case the repository cannot be created
-
LocalRepository
Constructor with root folder parameter.- Parameters:
rootFolder- the root folder- Throws:
LocalRepositoryException- in case the repository cannot be created
-
LocalRepository
Constructor with root folder parameter.- Parameters:
rootFolder- the root folderabsolute- whether the root folder is absolute- Throws:
LocalRepositoryException- in case the repository cannot be created
-
-
Method Details
-
initialize
public void initialize()Initialize. -
getLastModified
public long getLastModified()Gets the last modified.- Returns:
- the last modified
-