public interface ResourceManager
| Modifier and Type | Field and Description |
|---|---|
static String |
RESOURCE_TYPE_ATTACHMENT |
static String |
RESOURCE_TYPE_DATASOURCE |
static String |
RESOURCE_TYPE_FUNCTIONS |
static String |
RESOURCE_TYPE_PDF_TEST_SCENARIO_FILE |
static String |
RESOURCE_TYPE_SECRET |
static String |
RESOURCE_TYPE_STAGING_CONTEXT_FILES |
static String |
RESOURCE_TYPE_TEMP |
| Modifier and Type | Method and Description |
|---|---|
Resource |
createResource(String resourceType,
InputStream resourceStream,
String resourceFileName,
boolean checkForDuplicates)
Create a new resource and save the content provided as stream under a new
ResourceRevision |
ResourceRevisionContainer |
createResourceContainer(String resourceType,
String resourceFileName) |
void |
deleteResource(String resourceId)
Delete the resource and all its revisions
|
ResourceRevisionContent |
getResourceContent(String resourceId)
Get the content of an existing
Resource |
ResourceRevisionFileHandle |
getResourceFile(String resourceId) |
ResourceRevision |
getResourceRevisionByResourceId(String resourceId) |
ResourceRevisionContentImpl |
getResourceRevisionContent(String resourceRevisionId) |
Resource |
saveResourceContent(String resourceId,
InputStream resourceStream,
String resourceFileName)
Save the content provided as stream to an existing resource.
|
static final String RESOURCE_TYPE_PDF_TEST_SCENARIO_FILE
static final String RESOURCE_TYPE_SECRET
static final String RESOURCE_TYPE_DATASOURCE
static final String RESOURCE_TYPE_FUNCTIONS
static final String RESOURCE_TYPE_STAGING_CONTEXT_FILES
static final String RESOURCE_TYPE_ATTACHMENT
static final String RESOURCE_TYPE_TEMP
Resource createResource(String resourceType, InputStream resourceStream, String resourceFileName, boolean checkForDuplicates) throws IOException, SimilarResourceExistingException
ResourceRevisionresourceStream - the stream of the resource to be savedresourceFileName - the name of the resource (filename)ResourceIOExceptionSimilarResourceExistingExceptionResource saveResourceContent(String resourceId, InputStream resourceStream, String resourceFileName) throws IOException
ResourceRevision for the Resource
and saves the content provided as stream under this revision.resourceId - the id of the resource to be updatedresourceStream - the stream of the resource to be savedresourceFileName - the name of the resource (filename)ResourceIOExceptionvoid deleteResource(String resourceId)
resourceId - the id of the Resource to be deletedResourceRevisionContent getResourceContent(String resourceId) throws IOException
ResourceresourceId - the id of the Resource to be deletedFileNotFoundExceptionIOExceptionResourceRevisionFileHandle getResourceFile(String resourceId)
ResourceRevision getResourceRevisionByResourceId(String resourceId)
ResourceRevisionContentImpl getResourceRevisionContent(String resourceRevisionId) throws IOException
IOExceptionResourceRevisionContainer createResourceContainer(String resourceType, String resourceFileName) throws IOException
IOExceptionCopyright © 2019. All rights reserved.