|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gcube.personalization.userprofileaccess.impl.SMSUtils
public class SMSUtils
| Constructor Summary | |
|---|---|
SMSUtils()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SMSUtils()
| Method Detail |
|---|
protected static String createDocument(String documentName,
String payload)
throws org.gcube.common.core.faults.GCUBEFault
documentName - The document's namepayload - The document'd payload
org.gcube.common.core.faults.GCUBEFault - Failed to create the document
protected 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 scope
org.gcube.common.core.faults.GCUBEFault
protected 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 scope
org.gcube.common.core.faults.GCUBEFault
protected static Document parseXMLFileToDOM(String XMLdoc)
throws ParserConfigurationException,
SAXException,
IOException
XMLdoc: - the string to parse
ParserConfigurationException
SAXException
IOException
protected static String createStringFromDomTree(Node tree)
throws TransformerException
tree - The node of a document that will be transformed
TransformerException - failed to transform the DOMTree to String
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||