|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.jcr.decoration.AbstractContentDecorator info.magnolia.audit.MgnlAuditLoggingContentDecorator
public class MgnlAuditLoggingContentDecorator
Magnolia audit logging content decorator for use by node, property and session wrapper classes.
Constructor Summary | |
---|---|
MgnlAuditLoggingContentDecorator()
|
Method Summary | |
---|---|
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. |
Methods inherited from class info.magnolia.jcr.decoration.AbstractContentDecorator |
---|
evaluateNode, evaluateProperty, wrapNodeIterator, wrapPropertyIterator |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MgnlAuditLoggingContentDecorator()
Method Detail |
---|
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)
protected void logActionDelete(String path, String workspace, javax.jcr.nodetype.NodeType nodeType)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |