public class JcrNodeAdapter extends AbstractJcrNodeAdapter
Item
wrapping/representing a Node
.
Implements Property.ValueChangeListener
in order to inform/change JCR property when a
Vaadin property has changed.
Jcr properties are read from Repository as long as they are not modified.
Jcr properties are updated or created if they:
Create a JcrNodeAdapter:
Properties:
property p = DefaultPropertyUtil.newDefaultProperty(...)
jcrNodeAdapter.addItemProperty(...)
UNIDENTIFIED
Constructor and Description |
---|
JcrNodeAdapter(javax.jcr.Node jcrNode) |
Modifier and Type | Method and Description |
---|---|
boolean |
addItemProperty(Object propertyId,
com.vaadin.data.Property property)
Add a new JCR Property.
|
com.vaadin.data.Property |
getItemProperty(Object propertyId)
Get Vaadin Property from a Jcr Property.
|
Collection<?> |
getItemPropertyIds() |
boolean |
isNew() |
boolean |
removeItemProperty(Object id)
Remove a property from an Item.
|
addChild, applyChanges, getChild, getChildren, getJcrItem, getNodeName, getParent, getPrimaryNodeTypeName, getRemovedChildren, hasChildItemChanges, initCommonAttributes, isNode, removeChild, setNodeName, setParent, setPrimaryNodeTypeName, updateChildren, updateProperties, updateProperty
getChangedProperties, getItemId, getRemovedProperties, getWorkspace, hasChangedProperties, setItemId
public com.vaadin.data.Property getItemProperty(Object propertyId)
getItemProperty
in interface com.vaadin.data.Item
getItemProperty
in class AbstractJcrNodeAdapter
propertyId
- id of the property to be retrievedpublic Collection<?> getItemPropertyIds()
public boolean addItemProperty(Object propertyId, com.vaadin.data.Property property) throws UnsupportedOperationException
AbstractJcrNodeAdapter
addItemProperty
in interface com.vaadin.data.Item
addItemProperty
in class AbstractJcrNodeAdapter
UnsupportedOperationException
public boolean removeItemProperty(Object id)
public boolean isNew()
Copyright © 2015 Magnolia International Ltd.. All rights reserved.