org.exoplatform.jcr.benchmark.usecases.portal
Class AbstractWriteAction
java.lang.Object
org.exoplatform.jcr.benchmark.usecases.portal.AbstractAction
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 instanceworkspace - Workspace namerootName - Test's root node namestringValue - Sting value, that is used to initialize string propertiesbinaryValue - Binary value, used to initialize binary propertiesmultiValueSize - How many items will contain multi-valued property
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 createdvalueFactory - 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.