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

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

public class GDocConversionUtil
extends java.lang.Object

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

Field Summary
static java.lang.String DEFAULT_DOCUMENT_NAME
           
 
Constructor Summary
GDocConversionUtil()
           
 
Method Summary
static java.util.List<SMSCommand> buildNodeUpdate(InnerNode node)
          Builds the update commands for the specified node.
static java.util.List<SMSCommand> buildUpdateCommands(InnerNode node)
          Builds the update commands for the specified node.
static CreateInfoObjectCommand calculateGDocCreation(java.lang.String collectionId, GDoc doc)
          Calculate the creation commands for a new document.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_DOCUMENT_NAME

public static final java.lang.String DEFAULT_DOCUMENT_NAME
See Also:
Constant Field Values
Constructor Detail

GDocConversionUtil

public GDocConversionUtil()
Method Detail

calculateGDocCreation

public static CreateInfoObjectCommand calculateGDocCreation(java.lang.String collectionId,
                                                            GDoc doc)
Calculate the creation commands for a new document.

Parameters:
collectionId - the belonging collection id.
doc - the new gdoc to add.
Returns:
the resulting creation command.

buildUpdateCommands

public static java.util.List<SMSCommand> buildUpdateCommands(InnerNode node)
Builds the update commands for the specified node.

Parameters:
node - the node to analyze.
Returns:
the commands list.

buildNodeUpdate

public static java.util.List<SMSCommand> buildNodeUpdate(InnerNode node)
Builds the update commands for the specified node.

Parameters:
node - the node to analyze.
Returns:
the commands list.