public class RecordsManagementAuditServiceImpl extends org.springframework.extensions.surf.util.AbstractLifecycleBean implements RecordsManagementAuditService
RecordsManagementAuditService.ReportFormat| Constructor and Description |
|---|
RecordsManagementAuditServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
auditEvent(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String eventName)
Audits an event, assumes no properties where modified and that the event should not be audited
immediately.
|
void |
auditEvent(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String eventName,
Map<org.alfresco.service.namespace.QName,Serializable> before,
Map<org.alfresco.service.namespace.QName,Serializable> after)
Audits an event, assumes that the event should not be audited immediately and not be removed if no property is changed.
|
void |
auditEvent(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String eventName,
Map<org.alfresco.service.namespace.QName,Serializable> before,
Map<org.alfresco.service.namespace.QName,Serializable> after,
boolean immediate)
Audit event, assumes not to be removed if no property is changed.
|
void |
auditEvent(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String eventName,
Map<org.alfresco.service.namespace.QName,Serializable> before,
Map<org.alfresco.service.namespace.QName,Serializable> after,
boolean immediate,
boolean removeIfNoPropertyChanged)
Audit event.
|
void |
auditRMAction(RecordsManagementAction action,
org.alfresco.service.cmr.repository.NodeRef nodeRef,
Map<String,Serializable> parameters)
Deprecated.
since 2.1
|
void |
clear()
Deprecated.
|
void |
clearAuditLog(org.alfresco.service.cmr.repository.NodeRef filePlan)
Clears the RM audit.
|
org.alfresco.service.cmr.repository.NodeRef |
fileAuditTrailAsRecord(RecordsManagementAuditQueryParameters params,
org.alfresco.service.cmr.repository.NodeRef destination,
RecordsManagementAuditService.ReportFormat format)
Retrieves a list of audit log entries using the provided parameters
represented by the RecordsManagementAuditQueryParameters instance and
then files the resulting log as an undeclared record in the record folder
represented by the given NodeRef.
|
List<AuditEvent> |
getAuditEvents()
Retrieves a list of audit events.
|
List<RecordsManagementAuditEntry> |
getAuditTrail(RecordsManagementAuditQueryParameters params)
Retrieves a list of audit log entries using the provided parameters
represented by the RecordsManagementAuditQueryParameters instance.
|
File |
getAuditTrailFile(RecordsManagementAuditQueryParameters params,
RecordsManagementAuditService.ReportFormat format)
Retrieves a list of audit log entries using the provided parameters
represented by the RecordsManagementAuditQueryParameters instance.
|
Date |
getDateAuditLogLastStarted(org.alfresco.service.cmr.repository.NodeRef filePlan)
Returns the date the RM audit was last started.
|
Date |
getDateAuditLogLastStopped(org.alfresco.service.cmr.repository.NodeRef filePlan)
Returns the date the RM audit was last stopped.
|
Date |
getDateLastStarted()
Deprecated.
|
Date |
getDateLastStopped()
Deprecated.
|
void |
init()
Checks that all necessary properties have been set.
|
boolean |
isAuditLogEnabled(org.alfresco.service.cmr.repository.NodeRef filePlan)
Determines whether the RM audit log is currently enabled.
|
boolean |
isEnabled()
Deprecated.
|
protected void |
onBootstrap(org.springframework.context.ApplicationEvent event) |
protected void |
onShutdown(org.springframework.context.ApplicationEvent event) |
void |
registerAuditEvent(AuditEvent auditEvent)
Register audit event.
|
void |
registerAuditEvent(String name,
String label)
Register audit event.
|
void |
setAuditComponent(org.alfresco.repo.audit.AuditComponent auditComponent)
The component to create audit events
|
void |
setAuditService(org.alfresco.service.cmr.audit.AuditService auditService)
Sets the AuditService instance
|
void |
setCapabilityService(CapabilityService capabilityService) |
void |
setContentService(org.alfresco.service.cmr.repository.ContentService contentService)
Sets the ContentService instance
|
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
Provides user-readable names for types
|
void |
setFilePlanService(FilePlanService filePlanService) |
void |
setIgnoredAuditProperties(List<String> ignoredAuditProperties) |
void |
setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Sets the NodeService instance
|
void |
setPolicyComponent(org.alfresco.repo.policy.PolicyComponent policyComponent)
Set the component used to bind to behaviour callbacks
|
void |
setRecordsManagementActionService(RecordsManagementActionService rmActionService)
Sets the RecordsManagementActionService instance
|
void |
setTransactionService(org.alfresco.service.transaction.TransactionService transactionService)
Set the component used to start new transactions
|
void |
start()
Deprecated.
|
void |
startAuditLog(org.alfresco.service.cmr.repository.NodeRef filePlan)
Start RM auditing.
|
void |
stop()
Deprecated.
|
void |
stopAuditLog(org.alfresco.service.cmr.repository.NodeRef filePlan)
Stop RM auditing.
|
protected static final String RM_AUDIT_EVENT_LOGIN_SUCCESS
protected static final String RM_AUDIT_EVENT_LOGIN_FAILURE
protected static final String RM_AUDIT_APPLICATION_NAME
protected static final String RM_AUDIT_PATH_ROOT
protected static final String RM_AUDIT_SNIPPET_EVENT
protected static final String RM_AUDIT_SNIPPET_PERSON
protected static final String RM_AUDIT_SNIPPET_NAME
protected static final String RM_AUDIT_SNIPPET_NODE
protected static final String RM_AUDIT_SNIPPET_CHANGES
protected static final String RM_AUDIT_SNIPPET_BEFORE
protected static final String RM_AUDIT_SNIPPET_AFTER
protected static final String RM_AUDIT_DATA_PERSON_FULLNAME
protected static final String RM_AUDIT_DATA_PERSON_ROLES
protected static final String RM_AUDIT_DATA_EVENT_NAME
protected static final String RM_AUDIT_DATA_NODE_NODEREF
protected static final String RM_AUDIT_DATA_NODE_NAME
protected static final String RM_AUDIT_DATA_NODE_TYPE
protected static final String RM_AUDIT_DATA_NODE_IDENTIFIER
protected static final String RM_AUDIT_DATA_NODE_NAMEPATH
protected static final String RM_AUDIT_DATA_NODE_CHANGES_BEFORE
protected static final String RM_AUDIT_DATA_NODE_CHANGES_AFTER
protected static final String RM_AUDIT_DATA_LOGIN_USERNAME
protected static final String RM_AUDIT_DATA_LOGIN_FULLNAME
protected static final String RM_AUDIT_DATA_LOGIN_ERROR
protected static final String DOD5015_AUDIT_APPLICATION_NAME
protected static final String DOD5015_AUDIT_PATH_ROOT
protected static final String DOD5015_AUDIT_SNIPPET_EVENT
protected static final String DOD5015_AUDIT_SNIPPET_PERSON
protected static final String DOD5015_AUDIT_SNIPPET_NAME
protected static final String DOD5015_AUDIT_SNIPPET_NODE
protected static final String DOD5015_AUDIT_SNIPPET_CHANGES
protected static final String DOD5015_AUDIT_SNIPPET_BEFORE
protected static final String DOD5015_AUDIT_SNIPPET_AFTER
protected static final String DOD5015_AUDIT_DATA_PERSON_FULLNAME
protected static final String DOD5015_AUDIT_DATA_PERSON_ROLES
protected static final String DOD5015_AUDIT_DATA_EVENT_NAME
protected static final String DOD5015_AUDIT_DATA_NODE_NODEREF
protected static final String DOD5015_AUDIT_DATA_NODE_NAME
protected static final String DOD5015_AUDIT_DATA_NODE_TYPE
protected static final String DOD5015_AUDIT_DATA_NODE_IDENTIFIER
protected static final String DOD5015_AUDIT_DATA_NODE_NAMEPATH
protected static final String DOD5015_AUDIT_DATA_NODE_CHANGES_BEFORE
protected static final String DOD5015_AUDIT_DATA_NODE_CHANGES_AFTER
protected static final String DOD5015_AUDIT_DATA_LOGIN_USERNAME
protected static final String DOD5015_AUDIT_DATA_LOGIN_FULLNAME
protected static final String DOD5015_AUDIT_DATA_LOGIN_ERROR
protected static final String AUDIT_TRAIL_FILE_PREFIX
protected static final String AUDIT_TRAIL_JSON_FILE_SUFFIX
protected static final String AUDIT_TRAIL_HTML_FILE_SUFFIX
protected CapabilityService capabilityService
public void setPolicyComponent(org.alfresco.repo.policy.PolicyComponent policyComponent)
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
public void setTransactionService(org.alfresco.service.transaction.TransactionService transactionService)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setContentService(org.alfresco.service.cmr.repository.ContentService contentService)
public void setAuditComponent(org.alfresco.repo.audit.AuditComponent auditComponent)
public void setAuditService(org.alfresco.service.cmr.audit.AuditService auditService)
public void setRecordsManagementActionService(RecordsManagementActionService rmActionService)
public void setFilePlanService(FilePlanService filePlanService)
filePlanService - file plan servicepublic void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
namespaceService - namespace servicepublic void setCapabilityService(CapabilityService capabilityService)
capabilityService - capability servicepublic void setIgnoredAuditProperties(List<String> ignoredAuditProperties)
ignoredAuditProperties - public void registerAuditEvent(String name, String label)
RecordsManagementAuditServiceCreates an instance of a simple audit event and registers it with the service.
registerAuditEvent in interface RecordsManagementAuditServicename - name of audit eventlabel - display label of audit eventRecordsManagementAuditService.registerAuditEvent(java.lang.String, java.lang.String)public void registerAuditEvent(AuditEvent auditEvent)
RecordsManagementAuditServiceregisterAuditEvent in interface RecordsManagementAuditServiceauditEvent - audit eventRecordsManagementAuditService.registerAuditEvent(org.alfresco.module.org_alfresco_module_rm.audit.event.AuditEvent)public void init()
protected void onBootstrap(org.springframework.context.ApplicationEvent event)
onBootstrap in class org.springframework.extensions.surf.util.AbstractLifecycleBeanAbstractLifecycleBean.onBootstrap(org.springframework.context.ApplicationEvent)protected void onShutdown(org.springframework.context.ApplicationEvent event)
onShutdown in class org.springframework.extensions.surf.util.AbstractLifecycleBeanAbstractLifecycleBean.onShutdown(org.springframework.context.ApplicationEvent)public boolean isAuditLogEnabled(org.alfresco.service.cmr.repository.NodeRef filePlan)
RecordsManagementAuditServiceisAuditLogEnabled in interface RecordsManagementAuditServicefilePlan - file planRecordsManagementAuditService.isAuditLogEnabled(org.alfresco.service.cmr.repository.NodeRef)public void startAuditLog(org.alfresco.service.cmr.repository.NodeRef filePlan)
RecordsManagementAuditServicestartAuditLog in interface RecordsManagementAuditServicefilePlan - file planRecordsManagementAuditService.startAuditLog(org.alfresco.service.cmr.repository.NodeRef)public void stopAuditLog(org.alfresco.service.cmr.repository.NodeRef filePlan)
RecordsManagementAuditServicestopAuditLog in interface RecordsManagementAuditServicefilePlan - file planRecordsManagementAuditService.stopAuditLog(org.alfresco.service.cmr.repository.NodeRef)public void clearAuditLog(org.alfresco.service.cmr.repository.NodeRef filePlan)
RecordsManagementAuditServiceclearAuditLog in interface RecordsManagementAuditServicefilePlan - file planRecordsManagementAuditService.clearAuditLog(org.alfresco.service.cmr.repository.NodeRef)public Date getDateAuditLogLastStarted(org.alfresco.service.cmr.repository.NodeRef filePlan)
getDateAuditLogLastStarted in interface RecordsManagementAuditServicefilePlan - file planpublic Date getDateAuditLogLastStopped(org.alfresco.service.cmr.repository.NodeRef filePlan)
RecordsManagementAuditServicegetDateAuditLogLastStopped in interface RecordsManagementAuditServiceRecordsManagementAuditService.getDateAuditLogLastStopped(org.alfresco.service.cmr.repository.NodeRef)public void auditEvent(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String eventName)
RecordsManagementAuditServiceauditEvent in interface RecordsManagementAuditServicenodeRef - node referenceeventName - event nameRecordsManagementAuditService.auditEvent(org.alfresco.service.cmr.repository.NodeRef, java.lang.String)public void auditEvent(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String eventName,
Map<org.alfresco.service.namespace.QName,Serializable> before,
Map<org.alfresco.service.namespace.QName,Serializable> after)
RecordsManagementAuditServiceauditEvent in interface RecordsManagementAuditServicenodeRef - node referenceeventName - event namebefore - property values before eventafter - property values after eventRecordsManagementAuditService.auditEvent(org.alfresco.service.cmr.repository.NodeRef, java.lang.String, java.util.Map, java.util.Map)public void auditEvent(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String eventName,
Map<org.alfresco.service.namespace.QName,Serializable> before,
Map<org.alfresco.service.namespace.QName,Serializable> after,
boolean immediate)
RecordsManagementAuditServiceauditEvent in interface RecordsManagementAuditServicenodeRef - node referenceeventName - event namebefore - property values before eventafter - property values after eventimmediate - true if event is to be audited immediately, false otherwiseRecordsManagementAuditService.auditEvent(org.alfresco.service.cmr.repository.NodeRef, java.lang.String, java.util.Map, java.util.Map, boolean)public void auditEvent(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String eventName,
Map<org.alfresco.service.namespace.QName,Serializable> before,
Map<org.alfresco.service.namespace.QName,Serializable> after,
boolean immediate,
boolean removeIfNoPropertyChanged)
RecordsManagementAuditServiceauditEvent in interface RecordsManagementAuditServicenodeRef - node referenceeventName - event namebefore - property values before eventafter - property values after eventimmediate - true if event is to be audited immediately, false otherwiseremoveIfNoPropertyChanged - true if event is not audited when there are no properties changed, false otherwiseRecordsManagementAuditService.auditEvent(org.alfresco.service.cmr.repository.NodeRef, java.lang.String, java.util.Map, java.util.Map, boolean)public File getAuditTrailFile(RecordsManagementAuditQueryParameters params, RecordsManagementAuditService.ReportFormat format)
The parameters are all optional so an empty RecordsManagementAuditQueryParameters object will result in ALL audit log entries for the RM system being returned. Setting the various parameters effectively filters the full audit trail.
getAuditTrailFile in interface RecordsManagementAuditServiceparams - Parameters to use to retrieve audit trail (never null)format - The format the report should be produced inpublic List<RecordsManagementAuditEntry> getAuditTrail(RecordsManagementAuditQueryParameters params)
The parameters are all optional so an empty RecordsManagementAuditQueryParameters object will result in ALL audit log entries for the RM system being returned. Setting the various parameters effectively filters the full audit trail.
getAuditTrail in interface RecordsManagementAuditServiceparams - Parameters to use to retrieve audit trail (never null)public org.alfresco.service.cmr.repository.NodeRef fileAuditTrailAsRecord(RecordsManagementAuditQueryParameters params, org.alfresco.service.cmr.repository.NodeRef destination, RecordsManagementAuditService.ReportFormat format)
The parameters are all optional so an empty RecordsManagementAuditQueryParameters object will result in ALL audit log entries for the RM system being returned. Setting the various parameters effectively filters the full audit trail.
fileAuditTrailAsRecord in interface RecordsManagementAuditServiceparams - Parameters to use to retrieve audit trail (never null)destination - NodeRef representing a record folder in which to file the audit logformat - The format the report should be produced inpublic List<AuditEvent> getAuditEvents()
getAuditEvents in interface RecordsManagementAuditService@Deprecated public boolean isEnabled()
isEnabled in interface RecordsManagementAuditServiceDeprecated@Deprecated public void start()
@Deprecated public void stop()
stop in interface RecordsManagementAuditServiceDeprecated@Deprecated public Date getDateLastStarted()
getDateLastStarted in interface RecordsManagementAuditServiceDeprecated@Deprecated public Date getDateLastStopped()
getDateLastStopped in interface RecordsManagementAuditServiceDeprecated@Deprecated public void clear()
clear in interface RecordsManagementAuditServiceDeprecated@Deprecated public void auditRMAction(RecordsManagementAction action, org.alfresco.service.cmr.repository.NodeRef nodeRef, Map<String,Serializable> parameters)
auditRMAction in interface RecordsManagementAuditServiceDeprecatedCopyright © 2005–2016 Alfresco Software. All rights reserved.