public interface ITextResourceManagementService
| Modifier and Type | Method and Description |
|---|---|
boolean |
addTextContent(String parentPath,
String resourceName,
String mediaType,
String description,
String content)
Method to add a text resource to the repository.
|
String |
getTextContent(String path)
Method to obtain the text content of the given resource.
|
boolean |
updateTextContent(String path,
String content)
Method to update the text content of the given resource.
|
String getTextContent(String path) throws Exception
path - the resource path.Exception - if the operation failed.boolean updateTextContent(String path, String content) throws Exception
path - the resource path.content - the updated text content.Exception - if the operation failed due to an unexpected error.boolean addTextContent(String parentPath, String resourceName, String mediaType, String description, String content) throws Exception
parentPath - the parent path (or the path at which we are adding this resource).resourceName - the name of the resource.mediaType - the media type of the resource.description - the description for the newly added resource.content - the resource content as a String.Exception - if the operation failed due to an unexpected error.Copyright © 2020 WSO2. All Rights Reserved.