Class DummyMasterRepository
java.lang.Object
org.eclipse.dirigible.repository.local.module.DummyMasterRepository
- All Implemented Interfaces:
IMasterRepository,IRepositoryReader
public class DummyMasterRepository extends Object implements IMasterRepository
The Class DummyMasterRepository.
-
Field Summary
Fields inherited from interface org.eclipse.dirigible.repository.api.IMasterRepository
DIRIGIBLE_MASTER_REPOSITORY_PROVIDER -
Constructor Summary
Constructors Constructor Description DummyMasterRepository() -
Method Summary
Modifier and Type Method Description List<String>getAllResourcePaths()Gets the all resource paths.ICollectiongetCollection(String path)Gets the collection.IResourcegetResource(String path)Gets the resource.ICollectiongetRoot()Gets the root.booleanhasCollection(String path)Checks for collection.booleanhasResource(String path)Checks for resource.voidinitialize()Initialize.
-
Constructor Details
-
DummyMasterRepository
public DummyMasterRepository()
-
-
Method Details
-
initialize
Initialize.- Specified by:
initializein interfaceIRepositoryReader- Throws:
RepositoryInitializationException- the repository initialization exception
-
getRoot
Gets the root.- Specified by:
getRootin interfaceIRepositoryReader- Returns:
- the root
-
getCollection
Gets the collection.- Specified by:
getCollectionin interfaceIRepositoryReader- Parameters:
path- the path- Returns:
- the collection
-
hasCollection
Checks for collection.- Specified by:
hasCollectionin interfaceIRepositoryReader- Parameters:
path- the path- Returns:
- true, if successful
- Throws:
RepositoryReadException- the repository read exception
-
getResource
Gets the resource.- Specified by:
getResourcein interfaceIRepositoryReader- Parameters:
path- the path- Returns:
- the resource
-
hasResource
Checks for resource.- Specified by:
hasResourcein interfaceIRepositoryReader- Parameters:
path- the path- Returns:
- true, if successful
- Throws:
RepositoryReadException- the repository read exception
-
getAllResourcePaths
Gets the all resource paths.- Specified by:
getAllResourcePathsin interfaceIRepositoryReader- Returns:
- the all resource paths
- Throws:
RepositoryReadException- the repository read exception
-