public abstract class AbstractJcrAdapter extends Object implements JcrItemAdapter
JcrItemAdapter
implementation.Modifier and Type | Field and Description |
---|---|
protected static String |
UNIDENTIFIED |
Constructor and Description |
---|
AbstractJcrAdapter(javax.jcr.Item jcrItem) |
Modifier and Type | Method and Description |
---|---|
protected Map<String,com.vaadin.data.Property> |
getChangedProperties() |
JcrItemId |
getItemId() |
javax.jcr.Item |
getJcrItem()
Returns the JCR Item represented by this adapter, or null in case of
RepositoryException . |
protected Map<String,com.vaadin.data.Property> |
getRemovedProperties() |
String |
getWorkspace() |
boolean |
hasChangedProperties() |
protected void |
initCommonAttributes(javax.jcr.Item jcrItem)
Init common Item attributes.
|
void |
setItemId(JcrItemId itemId) |
protected void |
updateProperties(javax.jcr.Item item)
Updates and removes properties on given item, based on the
changedProperties and removedProperties maps. |
protected abstract void |
updateProperty(javax.jcr.Item item,
String propertyId,
com.vaadin.data.Property property)
Performs update of an Item based on given vaadin Property.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyChanges, isNode
isNew
protected static final String UNIDENTIFIED
protected void initCommonAttributes(javax.jcr.Item jcrItem)
public String getWorkspace()
getWorkspace
in interface JcrItemAdapter
public JcrItemId getItemId()
getItemId
in interface JcrItemAdapter
public void setItemId(JcrItemId itemId)
public javax.jcr.Item getJcrItem()
JcrItemAdapter
RepositoryException
.getJcrItem
in interface JcrItemAdapter
public boolean hasChangedProperties()
hasChangedProperties
in interface JcrItemAdapter
protected void updateProperties(javax.jcr.Item item) throws javax.jcr.RepositoryException
changedProperties
and removedProperties
maps. Read-only properties will not be updated and null valued properties will get removed.javax.jcr.RepositoryException
protected abstract void updateProperty(javax.jcr.Item item, String propertyId, com.vaadin.data.Property property)
Copyright © 2016 Magnolia International Ltd.. All rights reserved.