|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITextResourceManagementService
This provides an interface to manage text resources.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |