mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-1510 (Audit events are incorrectly displayed)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@71570 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -104,9 +104,9 @@ public abstract class AuditableActionExecuterAbstractBase extends ActionExecuter
|
||||
// default to name if no title available
|
||||
title = name;
|
||||
}
|
||||
|
||||
|
||||
// register audit event
|
||||
getAuditService().registerAuditEvent(title, name);
|
||||
getAuditService().registerAuditEvent(name, title);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -34,7 +34,7 @@ import org.alfresco.service.namespace.QName;
|
||||
* @since 2.1
|
||||
*/
|
||||
@BehaviourBean
|
||||
public class CopyAuditEvent extends AuditEvent implements OnCopyCompletePolicy
|
||||
public class CopyToAuditEvent extends AuditEvent implements OnCopyCompletePolicy
|
||||
{
|
||||
/**
|
||||
* Audit copy of file plan components
|
@@ -30,12 +30,12 @@ import org.alfresco.service.namespace.QName;
|
||||
|
||||
/**
|
||||
* File audit event.
|
||||
*
|
||||
*
|
||||
* @author Roy Wetherall
|
||||
* @since 2.1
|
||||
*/
|
||||
@BehaviourBean
|
||||
public class FileAuditEvent extends AuditEvent implements OnUpdatePropertiesPolicy
|
||||
public class FileToAuditEvent extends AuditEvent implements OnUpdatePropertiesPolicy
|
||||
{
|
||||
/**
|
||||
* @see org.alfresco.repo.node.NodeServicePolicies.OnUpdatePropertiesPolicy#onUpdateProperties(org.alfresco.service.cmr.repository.NodeRef, java.util.Map, java.util.Map)
|
||||
@@ -45,13 +45,13 @@ public class FileAuditEvent extends AuditEvent implements OnUpdatePropertiesPoli
|
||||
(
|
||||
kind = BehaviourKind.CLASS,
|
||||
type = "rma:record"
|
||||
)
|
||||
)
|
||||
public void onUpdateProperties(NodeRef nodeRef, Map<QName, Serializable> before, Map<QName, Serializable> after)
|
||||
{
|
||||
if (before.get(PROP_DATE_FILED) == null && after.get(PROP_DATE_FILED) != null)
|
||||
{
|
||||
// then we can assume that the record has just been filed
|
||||
recordsManagementAuditService.auditEvent(nodeRef, getName());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -25,13 +25,13 @@ import org.alfresco.repo.policy.annotation.BehaviourKind;
|
||||
import org.alfresco.service.cmr.repository.ChildAssociationRef;
|
||||
|
||||
/**
|
||||
* Link audit event.
|
||||
* Link to audit event.
|
||||
*
|
||||
* @author Roy Wetherall
|
||||
* @since 2.1
|
||||
*/
|
||||
@BehaviourBean
|
||||
public class LinkAuditEvent extends AuditEvent implements OnCreateChildAssociationPolicy
|
||||
public class LinkToAuditEvent extends AuditEvent implements OnCreateChildAssociationPolicy
|
||||
{
|
||||
/**
|
||||
* @see org.alfresco.repo.node.NodeServicePolicies.OnCreateChildAssociationPolicy#onCreateChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef, boolean)
|
@@ -25,13 +25,13 @@ import org.alfresco.repo.policy.annotation.BehaviourKind;
|
||||
import org.alfresco.service.cmr.repository.ChildAssociationRef;
|
||||
|
||||
/**
|
||||
* Move audit event.
|
||||
*
|
||||
* Move to audit event.
|
||||
*
|
||||
* @author Roy Wetherall
|
||||
* @since 2.1
|
||||
*/
|
||||
@BehaviourBean
|
||||
public class MoveAuditEvent extends AuditEvent implements OnMoveNodePolicy
|
||||
public class MoveToAuditEvent extends AuditEvent implements OnMoveNodePolicy
|
||||
{
|
||||
/**
|
||||
* @see org.alfresco.repo.node.NodeServicePolicies.OnMoveNodePolicy#onMoveNode(org.alfresco.service.cmr.repository.ChildAssociationRef, org.alfresco.service.cmr.repository.ChildAssociationRef)
|
||||
@@ -46,5 +46,5 @@ public class MoveAuditEvent extends AuditEvent implements OnMoveNodePolicy
|
||||
{
|
||||
recordsManagementAuditService.auditEvent(newChildAssocRef.getChildRef(), getName());
|
||||
}
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user