info.magnolia.audit
Class MgnlAuditLoggingContentDecoratorWorspaceWrapper

java.lang.Object
  extended by info.magnolia.jcr.wrapper.DelegateWorkspaceWrapper
      extended by info.magnolia.jcr.decoration.ContentDecoratorWorkspaceWrapper
          extended by info.magnolia.audit.MgnlAuditLoggingContentDecoratorWorspaceWrapper
All Implemented Interfaces:
javax.jcr.Workspace

public class MgnlAuditLoggingContentDecoratorWorspaceWrapper
extends ContentDecoratorWorkspaceWrapper

A Workspace wrapper implementation which log action (Copy, Move) directly into audit-log output because the change done in workspace is persisted immediately.


Field Summary
 
Fields inherited from class info.magnolia.jcr.wrapper.DelegateWorkspaceWrapper
wrapped
 
Fields inherited from interface javax.jcr.Workspace
NAME_ACTIVITIES_NODE, NAME_CONFIGURATIONS_NODE, NAME_JCR_XMLCHARACTERS, NAME_JCR_XMLTEXT, NAME_NODE_TYPES_NODE, NAME_SYSTEM_NODE, NAME_UNFILED_NODE, NAME_VERSION_STORAGE_NODE, NAME_WORKSPACE_ROOT, PATH_ACTIVITIES_NODE, PATH_CONFIGURATIONS_NODE, PATH_NODE_TYPES_NODE, PATH_SYSTEM_NODE, PATH_UNFILED_NODE, PATH_VERSION_STORAGE_NODE, PATH_WORKSPACE_ROOT, RELPATH_JCR_XMLCHARACTERS
 
Constructor Summary
MgnlAuditLoggingContentDecoratorWorspaceWrapper(javax.jcr.Workspace workspace, ContentDecorator contentDecorator)
           
 
Method Summary
 void copy(String srcAbsPath, String destAbsPath)
           
 void copy(String srcWorkspace, String srcAbsPath, String destAbsPath)
           
 void move(String srcAbsPath, String destAbsPath)
           
 
Methods inherited from class info.magnolia.jcr.decoration.ContentDecoratorWorkspaceWrapper
getSession, wrapSession
 
Methods inherited from class info.magnolia.jcr.wrapper.DelegateWorkspaceWrapper
clone, createWorkspace, createWorkspace, deleteWorkspace, getAccessibleWorkspaceNames, getImportContentHandler, getLockManager, getName, getNamespaceRegistry, getNodeTypeManager, getObservationManager, getQueryManager, getVersionManager, getWrappedWorkspace, importXML, restore, setWrappedWorkspace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MgnlAuditLoggingContentDecoratorWorspaceWrapper

public MgnlAuditLoggingContentDecoratorWorspaceWrapper(javax.jcr.Workspace workspace,
                                                       ContentDecorator contentDecorator)
Method Detail

move

public void move(String srcAbsPath,
                 String destAbsPath)
          throws javax.jcr.nodetype.ConstraintViolationException,
                 javax.jcr.version.VersionException,
                 javax.jcr.AccessDeniedException,
                 javax.jcr.PathNotFoundException,
                 javax.jcr.ItemExistsException,
                 javax.jcr.lock.LockException,
                 javax.jcr.RepositoryException
Specified by:
move in interface javax.jcr.Workspace
Overrides:
move in class DelegateWorkspaceWrapper
Throws:
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.version.VersionException
javax.jcr.AccessDeniedException
javax.jcr.PathNotFoundException
javax.jcr.ItemExistsException
javax.jcr.lock.LockException
javax.jcr.RepositoryException

copy

public void copy(String srcAbsPath,
                 String destAbsPath)
          throws javax.jcr.nodetype.ConstraintViolationException,
                 javax.jcr.version.VersionException,
                 javax.jcr.AccessDeniedException,
                 javax.jcr.PathNotFoundException,
                 javax.jcr.ItemExistsException,
                 javax.jcr.lock.LockException,
                 javax.jcr.RepositoryException
Specified by:
copy in interface javax.jcr.Workspace
Overrides:
copy in class DelegateWorkspaceWrapper
Throws:
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.version.VersionException
javax.jcr.AccessDeniedException
javax.jcr.PathNotFoundException
javax.jcr.ItemExistsException
javax.jcr.lock.LockException
javax.jcr.RepositoryException

copy

public void copy(String srcWorkspace,
                 String srcAbsPath,
                 String destAbsPath)
          throws javax.jcr.NoSuchWorkspaceException,
                 javax.jcr.nodetype.ConstraintViolationException,
                 javax.jcr.version.VersionException,
                 javax.jcr.AccessDeniedException,
                 javax.jcr.PathNotFoundException,
                 javax.jcr.ItemExistsException,
                 javax.jcr.lock.LockException,
                 javax.jcr.RepositoryException
Specified by:
copy in interface javax.jcr.Workspace
Overrides:
copy in class DelegateWorkspaceWrapper
Throws:
javax.jcr.NoSuchWorkspaceException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.version.VersionException
javax.jcr.AccessDeniedException
javax.jcr.PathNotFoundException
javax.jcr.ItemExistsException
javax.jcr.lock.LockException
javax.jcr.RepositoryException


Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.