org.exoplatform.jcr.benchmark.usecases.portal
Class AbstractWriteAction

java.lang.Object
  extended by org.exoplatform.jcr.benchmark.usecases.portal.AbstractAction
      extended by org.exoplatform.jcr.benchmark.usecases.portal.AbstractWriteAction
Direct Known Subclasses:
InitRepositoryAction, WritePageAction

public abstract class AbstractWriteAction
extends AbstractAction

Extends AbstractAction by introducing method, creating node of genericNode type and filling all the expected properties (please have a look at "exo:genericNode" type).

Version:
$Id: AbstractWriteAction.java 34360 2009-07-22 23:58:59Z nzamosenchuk $
Author:
Nikolay Zamosenchuk

Constructor Summary
AbstractWriteAction(org.exoplatform.services.jcr.impl.core.RepositoryImpl repository, java.lang.String workspace, java.lang.String rootName, int depth, java.lang.String stringValue, byte[] binaryValue, int multiValueSize)
           
 
Method Summary
 javax.jcr.Node createGenericNode(javax.jcr.Node root, javax.jcr.ValueFactory valueFactory)
          Fills in all the properties defined in exo:genericNode type.
 javax.jcr.Value[] createValues(javax.jcr.Node node, int propType, boolean isMultivalued, javax.jcr.ValueFactory valueFactory)
           
 
Methods inherited from class org.exoplatform.jcr.benchmark.usecases.portal.AbstractAction
getNodeOnLevel, getRootNodeName, getSession, nextNode, nextParent, nextPropertyName, perform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractWriteAction

public AbstractWriteAction(org.exoplatform.services.jcr.impl.core.RepositoryImpl repository,
                           java.lang.String workspace,
                           java.lang.String rootName,
                           int depth,
                           java.lang.String stringValue,
                           byte[] binaryValue,
                           int multiValueSize)
Parameters:
repository - Repository instance
workspace - Workspace name
rootName - Test's root node name
stringValue - Sting value, that is used to initialize string properties
binaryValue - Binary value, used to initialize binary properties
multiValueSize - How many items will contain multi-valued property
Method Detail

createGenericNode

public javax.jcr.Node createGenericNode(javax.jcr.Node root,
                                        javax.jcr.ValueFactory valueFactory)
                                 throws javax.jcr.RepositoryException
Fills in all the properties defined in exo:genericNode type.

Parameters:
root - Parent node, where node is created
valueFactory - Value factory instace
Returns:
Throws:
javax.jcr.RepositoryException

createValues

public javax.jcr.Value[] createValues(javax.jcr.Node node,
                                      int propType,
                                      boolean isMultivalued,
                                      javax.jcr.ValueFactory valueFactory)
                               throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException


Copyright © 2010 eXo Platform SAS. All Rights Reserved.