public class MgnlAuditLoggingContentDecorator extends AbstractContentDecorator
Constructor and Description |
---|
MgnlAuditLoggingContentDecorator() |
Modifier and Type | Method and Description |
---|---|
Map<String,LinkedList<MgnlAuditLogEntry>> |
getLogEntries()
Get map which contains audit-log entries of actions (Create, Modify, Delete, Move)
which were done in this session and were not yet saved.
|
boolean |
isMultipleWrapEnabled()
Tells if multiple wrapping with this content decorator is enabled.
|
protected void |
logActionCreate(javax.jcr.Node node)
Method which take care of storing creation of node into audit-log entries map.
|
protected void |
logActionCreate(String path,
String workspace,
javax.jcr.nodetype.NodeType nodeType,
long timeStamp)
Method which take care of storing creation of node into audit-log entries map.
|
protected void |
logActionDelete(String path,
String workspace,
javax.jcr.nodetype.NodeType nodeType)
Method which take care of storing delete action into audit-log entries map.
|
protected void |
logActionModify(javax.jcr.Node node)
Method which take care of storing modification action into audit-log entries map.
|
protected void |
logActionModify(String path,
String workspace,
javax.jcr.nodetype.NodeType nodeType,
long timeStamp)
Method which take care of storing modification action into audit-log entries map.
|
void |
logActionMove(String srcAbsPath,
String destAbsPath,
String workspace)
Method which take care of storing move action into audit-log entries map.
|
javax.jcr.Node |
wrapNode(javax.jcr.Node node)
Wrap node by Magnolia audit logging node wrapper.
|
javax.jcr.Property |
wrapProperty(javax.jcr.Property property)
Wrap property by Magnolia audit logging property wrapper.
|
javax.jcr.Session |
wrapSession(javax.jcr.Session session)
Wrap session by Magnolia audit logging session wrapper.
|
javax.jcr.Workspace |
wrapWorkspace(javax.jcr.Workspace workspace)
Wrap workspace by Magnolia audit logging workspace wrapper.
|
evaluateNode, evaluateProperty, isDecorating, wrapNodeIterator, wrapPropertyIterator, wrapVersion, wrapVersionHistory, wrapVersionIterator, wrapVersionManager
public Map<String,LinkedList<MgnlAuditLogEntry>> getLogEntries()
public javax.jcr.Session wrapSession(javax.jcr.Session session)
wrapSession
in interface ContentDecorator
wrapSession
in class AbstractContentDecorator
public javax.jcr.Node wrapNode(javax.jcr.Node node)
wrapNode
in interface ContentDecorator
wrapNode
in class AbstractContentDecorator
public javax.jcr.Property wrapProperty(javax.jcr.Property property)
wrapProperty
in interface ContentDecorator
wrapProperty
in class AbstractContentDecorator
public javax.jcr.Workspace wrapWorkspace(javax.jcr.Workspace workspace)
wrapWorkspace
in interface ContentDecorator
wrapWorkspace
in class AbstractContentDecorator
public boolean isMultipleWrapEnabled()
ContentDecorator
protected void logActionCreate(javax.jcr.Node node) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected void logActionCreate(String path, String workspace, javax.jcr.nodetype.NodeType nodeType, long timeStamp)
protected void logActionModify(javax.jcr.Node node) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected void logActionModify(String path, String workspace, javax.jcr.nodetype.NodeType nodeType, long timeStamp)
public void logActionMove(String srcAbsPath, String destAbsPath, String workspace)
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.