Class AbstractResourceExecutor
java.lang.Object
org.eclipse.dirigible.engine.api.resource.AbstractResourceExecutor
- All Implemented Interfaces:
IEngineExecutor,IResourceExecutor
- Direct Known Subclasses:
AbstractScriptExecutor,RegistryResourceExecutor
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 byte[]getLoadedPredeliveredContent(String location)Gets the loaded predelivered content.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
Gets 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 RepositoryExceptionGets 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
Gets the collection.- Specified by:
getCollectionin interfaceIResourceExecutor- Parameters:
root- the rootmodule- the module- Returns:
- the collection
- Throws:
RepositoryException- the repository exception
-
getResource
Gets 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 RepositoryExceptionGets the resource.- Specified by:
getResourcein interfaceIResourceExecutor- Parameters:
root- the rootmodule- the moduleextension- the extension- Returns:
- the resource
- Throws:
RepositoryException- the repository exception
-
existResource
Exist 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 RepositoryExceptionExist resource.- Specified by:
existResourcein interfaceIResourceExecutor- Parameters:
root- the rootmodule- the moduleextension- the extension- Returns:
- true, if successful
- Throws:
RepositoryException- the repository exception
-
createResourcePath
Creates the resource path.- Specified by:
createResourcePathin interfaceIResourceExecutor- Parameters:
root- the rootmodule- the module- Returns:
- the string
-
createResourcePath
Creates the resource path.- Specified by:
createResourcePathin interfaceIResourceExecutor- Parameters:
root- the rootmodule- the moduleextension- the extension- Returns:
- the string
-
getLoadedPredeliveredContent
Gets the loaded predelivered content.- Parameters:
location- the location- Returns:
- the loaded predelivered content
-