Class AbstractResourceExecutor
java.lang.Object
org.eclipse.dirigible.engine.api.resource.AbstractResourceExecutor
- All Implemented Interfaces:
IEngineExecutor,IResourceExecutor
- Direct Known Subclasses:
AbstractScriptExecutor
public abstract class AbstractResourceExecutor extends Object implements IResourceExecutor
The Abstract Resource Executor.
-
Constructor Summary
Constructors Constructor Description AbstractResourceExecutor() -
Method Summary
Modifier and Type Method Description StringcreateResourcePath(String root, String module)Creates the resource path.StringcreateResourcePath(String root, String module, String extension)Creates the resource path.booleanexistResource(String root, String module)Exist resource.booleanexistResource(String root, String module, String extension)Exist resource.ICollectiongetCollection(String root, String module)Gets the collection.protected IRepositorygetRepository()Gets the repository.IResourcegetResource(String root, String module)Gets the resource.IResourcegetResource(String root, String module, String extension)Gets the resource.byte[]getResourceContent(String root, String module)Gets the resource content.byte[]getResourceContent(String root, String module, String extension)Gets the resource content.
-
Constructor Details
-
AbstractResourceExecutor
public AbstractResourceExecutor()
-
-
Method Details
-
getRepository
Gets the repository.- Returns:
- the repository
-
getResourceContent
Description copied from interface:IResourceExecutorGets the resource content.- Specified by:
getResourceContentin interfaceIResourceExecutor- Parameters:
root- the rootmodule- the module- Returns:
- the resource content
- Throws:
RepositoryException- the repository exception
-
getResourceContent
public byte[] getResourceContent(String root, String module, String extension) throws RepositoryExceptionDescription copied from interface:IResourceExecutorGets the resource content.- Specified by:
getResourceContentin interfaceIResourceExecutor- Parameters:
root- the rootmodule- the moduleextension- the extension- Returns:
- the resource content
- Throws:
RepositoryException- the repository exception
-
getCollection
Description copied from interface:IResourceExecutorGets the collection.- Specified by:
getCollectionin interfaceIResourceExecutor- Parameters:
root- the rootmodule- the module- Returns:
- the collection
- Throws:
RepositoryException- the repository exception
-
getResource
Description copied from interface:IResourceExecutorGets the resource.- Specified by:
getResourcein interfaceIResourceExecutor- Parameters:
root- the rootmodule- the module- Returns:
- the resource
- Throws:
RepositoryException- the repository exception
-
getResource
public IResource getResource(String root, String module, String extension) throws RepositoryExceptionDescription copied from interface:IResourceExecutorGets the resource.- Specified by:
getResourcein interfaceIResourceExecutor- Parameters:
root- the rootmodule- the moduleextension- the extension- Returns:
- the resource
- Throws:
RepositoryException- the repository exception
-
existResource
Description copied from interface:IResourceExecutorExist resource.- Specified by:
existResourcein interfaceIResourceExecutor- Parameters:
root- the rootmodule- the module- Returns:
- true, if successful
- Throws:
RepositoryException- the repository exception
-
existResource
public boolean existResource(String root, String module, String extension) throws RepositoryExceptionDescription copied from interface:IResourceExecutorExist resource.- Specified by:
existResourcein interfaceIResourceExecutor- Parameters:
root- the rootmodule- the moduleextension- the extension- Returns:
- true, if successful
- Throws:
RepositoryException- the repository exception
-
createResourcePath
Description copied from interface:IResourceExecutorCreates the resource path.- Specified by:
createResourcePathin interfaceIResourceExecutor- Parameters:
root- the rootmodule- the module- Returns:
- the string
-
createResourcePath
Description copied from interface:IResourceExecutorCreates the resource path.- Specified by:
createResourcePathin interfaceIResourceExecutor- Parameters:
root- the rootmodule- the moduleextension- the extension- Returns:
- the string
-