org.gcube.contentmanagement.contentmanager.smsplugin.delegates
Class DocumentConversionUtil
java.lang.Object
org.gcube.contentmanagement.contentmanager.smsplugin.delegates.DocumentConversionUtil
public class DocumentConversionUtil
- extends java.lang.Object
- Author:
- Federico De Faveri defaveri@isti.cnr.it
Method Summary |
static boolean |
checkIsMainDocument(InfoObjectTree io)
|
static GDoc |
convertToGDoc(java.lang.String collectionId,
InfoObjectTree tree)
Convert the given InfoObjectTree into a GDoc. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONTENTMANAGER_METADATA_NAME
public static final java.lang.String CONTENTMANAGER_METADATA_NAME
- See Also:
- Constant Field Values
CONTENTMANAGER_METADATA_LANGUAGE
public static final java.lang.String CONTENTMANAGER_METADATA_LANGUAGE
- See Also:
- Constant Field Values
CONTENTMANAGER_METADATA_SCHEMA
public static final java.lang.String CONTENTMANAGER_METADATA_SCHEMA
- See Also:
- Constant Field Values
CONTENTMANAGER_TYPE
public static final java.lang.String CONTENTMANAGER_TYPE
- See Also:
- Constant Field Values
CONTENTMANAGER_ANNOTATION_PREVIOUS
public static final java.lang.String CONTENTMANAGER_ANNOTATION_PREVIOUS
- See Also:
- Constant Field Values
CONTENTMANAGER_BYTESTREAM_URI
public static final java.lang.String CONTENTMANAGER_BYTESTREAM_URI
- See Also:
- Constant Field Values
SECONDARY_ROLE_METADATA
public static final java.lang.String SECONDARY_ROLE_METADATA
- See Also:
- Constant Field Values
DocumentConversionUtil
public DocumentConversionUtil()
convertToGDoc
public static GDoc convertToGDoc(java.lang.String collectionId,
InfoObjectTree tree)
throws java.lang.Exception
- Convert the given InfoObjectTree into a GDoc.
- Parameters:
tree
- the tree to convert.
- Returns:
- the resulting GDoc.
- Throws:
java.lang.Exception
- if an error occurs in conversion.
checkIsMainDocument
public static boolean checkIsMainDocument(InfoObjectTree io)