public class JcrNewNodeAdapter extends JcrNodeAdapter
UNIDENTIFIED
Constructor and Description |
---|
JcrNewNodeAdapter(javax.jcr.Node parentNode,
String nodeType) |
JcrNewNodeAdapter(javax.jcr.Node parentNode,
String nodeType,
String nodeName) |
Modifier and Type | Method and Description |
---|---|
javax.jcr.Node |
applyChanges()
Create a new subNode of the parent Node or return the existing one if already created.
|
com.vaadin.data.Property |
getItemProperty(Object propertyId)
Returns item property of a new node.
|
boolean |
isNew() |
void |
setItemId(JcrItemId itemId) |
void |
setNodeName(String nodeName) |
addItemProperty, getItemPropertyIds, removeItemProperty
addChild, getChild, getChildren, getJcrItem, getNodeName, getParent, getPrimaryNodeTypeName, getRemovedChildren, hasChildItemChanges, initCommonAttributes, isNode, removeChild, setParent, setPrimaryNodeTypeName, updateChildren, updateProperties, updateProperty
getChangedProperties, getItemId, getRemovedProperties, getWorkspace, hasChangedProperties
public JcrNewNodeAdapter(javax.jcr.Node parentNode, String nodeType)
parentNode
- Parent of the node to create.nodeType
- Type node to create.public com.vaadin.data.Property getItemProperty(Object propertyId)
getItemProperty
in interface com.vaadin.data.Item
getItemProperty
in class JcrNodeAdapter
propertyId
- id of the property to be retrievedpublic javax.jcr.Node applyChanges() throws javax.jcr.RepositoryException
JcrNodeAdapter
will be called.applyChanges
in interface JcrItemAdapter
applyChanges
in class AbstractJcrNodeAdapter
javax.jcr.RepositoryException
public void setNodeName(String nodeName)
setNodeName
in class AbstractJcrNodeAdapter
public void setItemId(JcrItemId itemId)
setItemId
in class AbstractJcrAdapter
public boolean isNew()
isNew
in interface ItemAdapter
isNew
in class JcrNodeAdapter
Copyright © 2015 Magnolia International Ltd.. All rights reserved.