public interface IResourceRepositoryService
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY
Service key
|
static String |
REPOSITORY_ROOT_PCD_ID
PCD ID of the portal resource repository root
|
| Modifier and Type | Method and Description |
|---|---|
IResource |
getResource(String resourcePath,
String resourceType,
boolean timeStampRequired)
Retrieves an
IResource object containing the metadata of a resource located in the specified resource repository path. |
URI |
getResourceURI(String resourcePath)
Retrieves a resource's URI from the resource repository according to its repository path.
|
URI |
getResourceURI(String resourcePath,
boolean timeStampRequired)
Retrieves a resource's URI from the resource repository according to its repository path,
and a boolean indicating if the last modification timestamp is required.
|
static final String KEY
static final String REPOSITORY_ROOT_PCD_ID
URI getResourceURI(String resourcePath) throws URISyntaxException, InvalidResourcePathException
resourcePath - the full or relative path to the resource, such as
"\Folder1\Folder2\home.jpg" or "pcd:resource_repository\Folder1\Folder2\home.jpg"URISyntaxException - if the specified resource path could not be resolved into a valid URIInvalidResourcePathException - if the specified resource path is invalidURI getResourceURI(String resourcePath, boolean timeStampRequired) throws ResourceNotFoundException, URISyntaxException, InvalidResourcePathException
resourcePath - the full or relative path to the resource, such as
"\Folder1\Folder2\home.jpg" or "pcd:resource_repository\Folder1\Folder2\home.jpg"timeStampRequired - indicates if the last modification timestamp should be retrieved.
If true, the returned URI includes the resource's last modification timestamp
(note that retrieval with a timestamp might impact performance, because the resource itself is retrieved).
If the timestamp is not required, use getResourceURI(String)ResourceNotFoundException - occurs only if timeStampRequired is true, on failure to retrieve the resource from the repositoryURISyntaxException - if the specified resource path could not be resolved into a valid URIInvalidResourcePathException - if the specified resource path is invalidIResource getResource(String resourcePath, String resourceType, boolean timeStampRequired) throws ResourceNotFoundException, InvalidResourcePathException
IResource object containing the metadata of a resource located in the specified resource repository path.resourcePath - the full or relative path to the resource, such as
"\Folder1\Folder2\home.jpg" or "pcd:resource_repository\Folder1\Folder2\home.jpg"resourceType - the resource type, such as IResource.CSStimeStampRequired - indicates if the last modification timestamp should be retrieved;
if true, the actual resource is retrieved from the repository, which may impact performance.IResource objectResourceNotFoundException - occurs only if timeStampRequired is true, on failure to retrieve the resource from the repository.InvalidResourcePathException - if the specified resource path is empty| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-BASIS
|
[sap.com] tc/epbc/resourcerepository/api
|
api
|
EP-PIN
|
Copyright 2021 SAP SE Complete Copyright Notice