org.gcube.contentmanagement.contentmanager.smsplugin.delegates
Class DocumentConversionUtil

java.lang.Object
  extended by org.gcube.contentmanagement.contentmanager.smsplugin.delegates.DocumentConversionUtil

public class DocumentConversionUtil
extends java.lang.Object

Author:
Federico De Faveri defaveri@isti.cnr.it

Field Summary
static java.lang.String CONTENTMANAGER_ANNOTATION_PREVIOUS
           
static java.lang.String CONTENTMANAGER_BYTESTREAM_URI
           
static java.lang.String CONTENTMANAGER_METADATA_LANGUAGE
           
static java.lang.String CONTENTMANAGER_METADATA_NAME
           
static java.lang.String CONTENTMANAGER_METADATA_SCHEMA
           
static java.lang.String CONTENTMANAGER_TYPE
           
static java.lang.String SECONDARY_ROLE_METADATA
           
 
Constructor Summary
DocumentConversionUtil()
           
 
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
 

Field Detail

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
Constructor Detail

DocumentConversionUtil

public DocumentConversionUtil()
Method Detail

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)