public class SMSUtils extends Object
| Constructor and Description |
|---|
SMSUtils() |
| Modifier and Type | Method and Description |
|---|---|
protected static String |
createDocument(String documentName,
String payload)
Creates a new document into userprofiles remote directory
|
protected static String |
createStringFromDomTree(Node tree)
This method converts a node of a tree to a string representation.
|
protected static String |
getDocument(String documentName)
This method retrieves the content of the document with the given ID that belongs to the given collection
|
protected static Document |
parseXMLFileToDOM(String XMLdoc)
This method parses a string using the Document Builder parser
|
protected static void |
updateDocument(String documentName,
String newContent)
This method updates the document with the given ID that belongs to the given collection
|
protected static String createDocument(String documentName, String payload) throws org.gcube.common.core.faults.GCUBEFault
documentName - The document's namepayload - The document'd payloadorg.gcube.common.core.faults.GCUBEFault - Failed to create the documentprotected static String getDocument(String documentName) throws org.gcube.common.core.faults.GCUBEFault
DocumentReader - The CM Document reader for the given documentdocumentID - The ID of the document to be retrievedscope - The scopeorg.gcube.common.core.faults.GCUBEFaultprotected static void updateDocument(String documentName, String newContent) throws org.gcube.common.core.faults.GCUBEFault
DocumentWriter - The CM Document writer for the given documentdocumentID - The ID of the document to be updatednewContent - The new payload of the documentscope - The scopeorg.gcube.common.core.faults.GCUBEFaultprotected static Document parseXMLFileToDOM(String XMLdoc) throws ParserConfigurationException, SAXException, IOException
XMLdoc: - the string to parseParserConfigurationExceptionSAXExceptionIOExceptionprotected static String createStringFromDomTree(Node tree) throws TransformerException
tree - The node of a document that will be transformedTransformerException - failed to transform the DOMTree to StringCopyright © 2015. All Rights Reserved.