info.magnolia.audit
Class MgnlAuditLoggingContentDecoratorNodeWrapper
java.lang.Object
info.magnolia.jcr.wrapper.DelegateNodeWrapper
info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper<MgnlAuditLoggingContentDecorator>
info.magnolia.audit.MgnlAuditLoggingContentDecoratorNodeWrapper
- All Implemented Interfaces:
- Cloneable, javax.jcr.Item, javax.jcr.Node
public class MgnlAuditLoggingContentDecoratorNodeWrapper
- extends ContentDecoratorNodeWrapper<MgnlAuditLoggingContentDecorator>
A Node wrapper implementation which inform
Magnolia audit logging content decorator MgnlAuditLoggingContentDecorator
about action (Create, Modify, Delete) on the node.
The implementation also take care about logging appropriate actions into audit-log output during save action of node.
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 |
void |
addMixin(String mixinName)
|
javax.jcr.Node |
addNode(String relPath)
|
javax.jcr.Node |
addNode(String relPath,
String primaryNodeTypeName)
|
void |
remove()
|
void |
removeMixin(String mixinName)
|
void |
save()
During node save action log all action which was done for the node and his childrens. |
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, canAddMixin, cancelMerge, checkin, checkout, clone, deepUnwrap, doneMerge, 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, orderBefore, refresh, removeShare, removeSharedSet, restore, restore, restore, restoreByLabel, toString, unlock, update |
MgnlAuditLoggingContentDecoratorNodeWrapper
public MgnlAuditLoggingContentDecoratorNodeWrapper(javax.jcr.Node node,
MgnlAuditLoggingContentDecorator contentDecorator)
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<MgnlAuditLoggingContentDecorator>
- 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.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<MgnlAuditLoggingContentDecorator>
- Throws:
javax.jcr.ItemExistsException
javax.jcr.PathNotFoundException
javax.jcr.version.VersionException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.lock.LockException
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
addMixin
public void addMixin(String mixinName)
throws javax.jcr.nodetype.NoSuchNodeTypeException,
javax.jcr.version.VersionException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.lock.LockException,
javax.jcr.RepositoryException
- Specified by:
addMixin
in interface javax.jcr.Node
- Overrides:
addMixin
in class DelegateNodeWrapper
- Throws:
javax.jcr.nodetype.NoSuchNodeTypeException
javax.jcr.version.VersionException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
removeMixin
public void removeMixin(String mixinName)
throws javax.jcr.nodetype.NoSuchNodeTypeException,
javax.jcr.version.VersionException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.lock.LockException,
javax.jcr.RepositoryException
- Specified by:
removeMixin
in interface javax.jcr.Node
- Overrides:
removeMixin
in class DelegateNodeWrapper
- Throws:
javax.jcr.nodetype.NoSuchNodeTypeException
javax.jcr.version.VersionException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.lock.LockException
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.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<MgnlAuditLoggingContentDecorator>
- 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<MgnlAuditLoggingContentDecorator>
- 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<MgnlAuditLoggingContentDecorator>
- 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<MgnlAuditLoggingContentDecorator>
- 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<MgnlAuditLoggingContentDecorator>
- 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.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<MgnlAuditLoggingContentDecorator>
- 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<MgnlAuditLoggingContentDecorator>
- 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<MgnlAuditLoggingContentDecorator>
- 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,
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<MgnlAuditLoggingContentDecorator>
- 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<MgnlAuditLoggingContentDecorator>
- 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<MgnlAuditLoggingContentDecorator>
- 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<MgnlAuditLoggingContentDecorator>
- 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<MgnlAuditLoggingContentDecorator>
- 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<MgnlAuditLoggingContentDecorator>
- 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<MgnlAuditLoggingContentDecorator>
- 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<MgnlAuditLoggingContentDecorator>
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
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
- During node save action log all action which was done for the node and his childrens.
- 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.