info.magnolia.nodebuilder
Class ContentOps

java.lang.Object
  extended by info.magnolia.nodebuilder.ContentOps

public class ContentOps
extends java.lang.Object

A set of methods to build NodeOperations using the same tems as the Content API.


Constructor Summary
ContentOps()
           
 
Method Summary
static NodeOperation createCollectionNode(java.lang.String name)
           
static NodeOperation createContent(java.lang.String name, ItemType type)
           
static NodeOperation createPage(java.lang.String name, java.lang.String template)
           
static NodeOperation createParagraph(java.lang.String name, java.lang.String template)
           
static NodeOperation setBinaryNodeData(java.lang.String name, java.lang.String fileName, long size, java.io.InputStream inputStream)
           
static NodeOperation setNodeData(java.lang.String name, java.lang.Object value)
           
static NodeOperation setTemplate(java.lang.String template)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentOps

public ContentOps()
Method Detail

createContent

public static NodeOperation createContent(java.lang.String name,
                                          ItemType type)

createPage

public static NodeOperation createPage(java.lang.String name,
                                       java.lang.String template)

createCollectionNode

public static NodeOperation createCollectionNode(java.lang.String name)

createParagraph

public static NodeOperation createParagraph(java.lang.String name,
                                            java.lang.String template)

setNodeData

public static NodeOperation setNodeData(java.lang.String name,
                                        java.lang.Object value)

setBinaryNodeData

public static NodeOperation setBinaryNodeData(java.lang.String name,
                                              java.lang.String fileName,
                                              long size,
                                              java.io.InputStream inputStream)

setTemplate

public static NodeOperation setTemplate(java.lang.String template)


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.