info.magnolia.jcr.wrapper
Class MgnlPropertySettingNodeWrapper
java.lang.Object
info.magnolia.jcr.wrapper.DelegateNodeWrapper
info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper<MgnlPropertySettingContentDecorator>
info.magnolia.jcr.wrapper.MgnlPropertySettingNodeWrapper
- All Implemented Interfaces:
- Cloneable, javax.jcr.Item, javax.jcr.Node
- Direct Known Subclasses:
- LastUpdateNodeWrapper
public class MgnlPropertySettingNodeWrapper
- extends ContentDecoratorNodeWrapper<MgnlPropertySettingContentDecorator>
Wrapper to handle all required content modifications.
Fields inherited from interface javax.jcr.Node |
JCR_CHILD_NODE_DEFINITION, JCR_CONTENT, JCR_FROZEN_NODE, JCR_PROPERTY_DEFINITION, JCR_ROOT_VERSION, JCR_VERSION_LABELS |
Method Summary |
javax.jcr.Node |
addNode(String relPath)
|
javax.jcr.Node |
addNode(String relPath,
String primaryNodeTypeName)
|
void |
doneMerge(javax.jcr.version.Version version)
|
void |
orderBefore(String srcChildRelPath,
String destChildRelPath)
|
void |
remove()
|
void |
save()
|
void |
setPrimaryType(String nodeTypeName)
|
javax.jcr.Property |
setProperty(String name,
BigDecimal value)
|
javax.jcr.Property |
setProperty(String name,
javax.jcr.Binary value)
|
javax.jcr.Property |
setProperty(String name,
boolean value)
|
javax.jcr.Property |
setProperty(String name,
Calendar value)
|
javax.jcr.Property |
setProperty(String name,
double value)
|
javax.jcr.Property |
setProperty(String name,
InputStream value)
|
javax.jcr.Property |
setProperty(String name,
long value)
|
javax.jcr.Property |
setProperty(String name,
javax.jcr.Node value)
|
javax.jcr.Property |
setProperty(String name,
String value)
|
javax.jcr.Property |
setProperty(String name,
String[] values)
|
javax.jcr.Property |
setProperty(String name,
String[] values,
int type)
|
javax.jcr.Property |
setProperty(String name,
String value,
int type)
|
javax.jcr.Property |
setProperty(String name,
javax.jcr.Value value)
|
javax.jcr.Property |
setProperty(String name,
javax.jcr.Value[] values)
|
javax.jcr.Property |
setProperty(String name,
javax.jcr.Value[] values,
int type)
|
javax.jcr.Property |
setProperty(String name,
javax.jcr.Value value,
int type)
|
Methods inherited from class info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper |
equals, getAncestor, getContentDecorator, getNode, getNodes, getNodes, getNodes, getParent, getProperties, getProperties, getProperties, getProperty, getReferences, getReferences, getSession, getWeakReferences, getWeakReferences, hashCode, hasNode, hasNodes, setWrappedNode, wrapNode, wrapNodeIterator, wrapProperty, wrapPropertyIterator, wrapSession |
Methods inherited from class info.magnolia.jcr.wrapper.DelegateNodeWrapper |
accept, addMixin, canAddMixin, cancelMerge, checkin, checkout, clone, deepUnwrap, followLifecycleTransition, getAllowedLifecycleTransistions, getBaseVersion, getCorrespondingNodePath, getDefinition, getDepth, getIdentifier, getIndex, getLock, getMixinNodeTypes, getName, getPath, getPrimaryItem, getPrimaryNodeType, getSharedSet, getUUID, getVersionHistory, getWrappedNode, hasProperties, hasProperty, holdsLock, initClone, isCheckedOut, isLocked, isModified, isNew, isNode, isNodeType, isSame, lock, merge, refresh, removeMixin, removeShare, removeSharedSet, restore, restore, restore, restoreByLabel, toString, unlock, update |
MgnlPropertySettingNodeWrapper
public MgnlPropertySettingNodeWrapper(javax.jcr.Node node,
MgnlPropertySettingContentDecorator decorator)
setProperty
public javax.jcr.Property setProperty(String name,
BigDecimal value)
throws javax.jcr.ValueFormatException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
- Specified by:
setProperty
in interface javax.jcr.Node
- Overrides:
setProperty
in class ContentDecoratorNodeWrapper<MgnlPropertySettingContentDecorator>
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
setPrimaryType
public void setPrimaryType(String nodeTypeName)
throws javax.jcr.nodetype.NoSuchNodeTypeException,
javax.jcr.version.VersionException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.lock.LockException,
javax.jcr.RepositoryException
- Specified by:
setPrimaryType
in interface javax.jcr.Node
- Overrides:
setPrimaryType
in class DelegateNodeWrapper
- Throws:
javax.jcr.nodetype.NoSuchNodeTypeException
javax.jcr.version.VersionException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
setProperty
public javax.jcr.Property setProperty(String name,
javax.jcr.Binary value)
throws javax.jcr.ValueFormatException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
- Specified by:
setProperty
in interface javax.jcr.Node
- Overrides:
setProperty
in class ContentDecoratorNodeWrapper<MgnlPropertySettingContentDecorator>
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
setProperty
public javax.jcr.Property setProperty(String name,
boolean value)
throws javax.jcr.ValueFormatException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
- Specified by:
setProperty
in interface javax.jcr.Node
- Overrides:
setProperty
in class ContentDecoratorNodeWrapper<MgnlPropertySettingContentDecorator>
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
setProperty
public javax.jcr.Property setProperty(String name,
Calendar value)
throws javax.jcr.ValueFormatException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
- Specified by:
setProperty
in interface javax.jcr.Node
- Overrides:
setProperty
in class ContentDecoratorNodeWrapper<MgnlPropertySettingContentDecorator>
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
setProperty
public javax.jcr.Property setProperty(String name,
double value)
throws javax.jcr.ValueFormatException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
- Specified by:
setProperty
in interface javax.jcr.Node
- Overrides:
setProperty
in class ContentDecoratorNodeWrapper<MgnlPropertySettingContentDecorator>
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
setProperty
public javax.jcr.Property setProperty(String name,
InputStream value)
throws javax.jcr.ValueFormatException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
- Specified by:
setProperty
in interface javax.jcr.Node
- Overrides:
setProperty
in class ContentDecoratorNodeWrapper<MgnlPropertySettingContentDecorator>
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
setProperty
public javax.jcr.Property setProperty(String name,
long value)
throws javax.jcr.ValueFormatException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
- Specified by:
setProperty
in interface javax.jcr.Node
- Overrides:
setProperty
in class ContentDecoratorNodeWrapper<MgnlPropertySettingContentDecorator>
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
setProperty
public javax.jcr.Property setProperty(String name,
javax.jcr.Node value)
throws javax.jcr.ValueFormatException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
- Specified by:
setProperty
in interface javax.jcr.Node
- Overrides:
setProperty
in class ContentDecoratorNodeWrapper<MgnlPropertySettingContentDecorator>
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
setProperty
public javax.jcr.Property setProperty(String name,
String value)
throws javax.jcr.ValueFormatException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
- Specified by:
setProperty
in interface javax.jcr.Node
- Overrides:
setProperty
in class ContentDecoratorNodeWrapper<MgnlPropertySettingContentDecorator>
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
setProperty
public javax.jcr.Property setProperty(String name,
String value,
int type)
throws javax.jcr.ValueFormatException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
- Specified by:
setProperty
in interface javax.jcr.Node
- Overrides:
setProperty
in class ContentDecoratorNodeWrapper<MgnlPropertySettingContentDecorator>
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
setProperty
public javax.jcr.Property setProperty(String name,
String[] values)
throws javax.jcr.ValueFormatException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
- Specified by:
setProperty
in interface javax.jcr.Node
- Overrides:
setProperty
in class ContentDecoratorNodeWrapper<MgnlPropertySettingContentDecorator>
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
setProperty
public javax.jcr.Property setProperty(String name,
String[] values,
int type)
throws javax.jcr.ValueFormatException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
- Specified by:
setProperty
in interface javax.jcr.Node
- Overrides:
setProperty
in class ContentDecoratorNodeWrapper<MgnlPropertySettingContentDecorator>
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
setProperty
public javax.jcr.Property setProperty(String name,
javax.jcr.Value value)
throws javax.jcr.ValueFormatException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
- Specified by:
setProperty
in interface javax.jcr.Node
- Overrides:
setProperty
in class ContentDecoratorNodeWrapper<MgnlPropertySettingContentDecorator>
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
setProperty
public javax.jcr.Property setProperty(String name,
javax.jcr.Value value,
int type)
throws javax.jcr.ValueFormatException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
- Specified by:
setProperty
in interface javax.jcr.Node
- Overrides:
setProperty
in class ContentDecoratorNodeWrapper<MgnlPropertySettingContentDecorator>
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
setProperty
public javax.jcr.Property setProperty(String name,
javax.jcr.Value[] values)
throws javax.jcr.ValueFormatException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
- Specified by:
setProperty
in interface javax.jcr.Node
- Overrides:
setProperty
in class ContentDecoratorNodeWrapper<MgnlPropertySettingContentDecorator>
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
setProperty
public javax.jcr.Property setProperty(String name,
javax.jcr.Value[] values,
int type)
throws javax.jcr.ValueFormatException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
- Specified by:
setProperty
in interface javax.jcr.Node
- Overrides:
setProperty
in class ContentDecoratorNodeWrapper<MgnlPropertySettingContentDecorator>
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
addNode
public javax.jcr.Node addNode(String relPath)
throws javax.jcr.ItemExistsException,
javax.jcr.PathNotFoundException,
javax.jcr.version.VersionException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.lock.LockException,
javax.jcr.RepositoryException
- Specified by:
addNode
in interface javax.jcr.Node
- Overrides:
addNode
in class ContentDecoratorNodeWrapper<MgnlPropertySettingContentDecorator>
- Throws:
javax.jcr.ItemExistsException
javax.jcr.PathNotFoundException
javax.jcr.version.VersionException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
addNode
public javax.jcr.Node addNode(String relPath,
String primaryNodeTypeName)
throws javax.jcr.ItemExistsException,
javax.jcr.PathNotFoundException,
javax.jcr.nodetype.NoSuchNodeTypeException,
javax.jcr.lock.LockException,
javax.jcr.version.VersionException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
- Specified by:
addNode
in interface javax.jcr.Node
- Overrides:
addNode
in class ContentDecoratorNodeWrapper<MgnlPropertySettingContentDecorator>
- Throws:
javax.jcr.ItemExistsException
javax.jcr.PathNotFoundException
javax.jcr.nodetype.NoSuchNodeTypeException
javax.jcr.lock.LockException
javax.jcr.version.VersionException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
orderBefore
public void orderBefore(String srcChildRelPath,
String destChildRelPath)
throws javax.jcr.UnsupportedRepositoryOperationException,
javax.jcr.version.VersionException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.ItemNotFoundException,
javax.jcr.lock.LockException,
javax.jcr.RepositoryException
- Specified by:
orderBefore
in interface javax.jcr.Node
- Overrides:
orderBefore
in class DelegateNodeWrapper
- Throws:
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.version.VersionException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.ItemNotFoundException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
doneMerge
public void doneMerge(javax.jcr.version.Version version)
throws javax.jcr.version.VersionException,
javax.jcr.InvalidItemStateException,
javax.jcr.UnsupportedRepositoryOperationException,
javax.jcr.RepositoryException
- Specified by:
doneMerge
in interface javax.jcr.Node
- Overrides:
doneMerge
in class DelegateNodeWrapper
- Throws:
javax.jcr.version.VersionException
javax.jcr.InvalidItemStateException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
remove
public void remove()
throws javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.AccessDeniedException,
javax.jcr.RepositoryException
- Specified by:
remove
in interface javax.jcr.Item
- Overrides:
remove
in class DelegateNodeWrapper
- Throws:
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.AccessDeniedException
javax.jcr.RepositoryException
save
public void save()
throws javax.jcr.AccessDeniedException,
javax.jcr.ItemExistsException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.InvalidItemStateException,
javax.jcr.ReferentialIntegrityException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.NoSuchNodeTypeException,
javax.jcr.RepositoryException
- Specified by:
save
in interface javax.jcr.Item
- Overrides:
save
in class DelegateNodeWrapper
- Throws:
javax.jcr.AccessDeniedException
javax.jcr.ItemExistsException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.InvalidItemStateException
javax.jcr.ReferentialIntegrityException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.NoSuchNodeTypeException
javax.jcr.RepositoryException
Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.