03-27-2008 11:27 AM
06-25-2008 12:28 PM
06-25-2008 04:53 PM
package com.tsgrp.alfresco.repo.audit;
import org.alfresco.repo.audit.AuditableAspect;
import org.alfresco.service.cmr.repository.NodeRef;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
public class CustomAuditableAspect extends AuditableAspect {
// Logger
private static final Log logger = LogFactory.getLog(CustomAuditableAspect.class);
private boolean runSuper = true;
public void setRunSuper(boolean value) { this.runSuper = value; }
/**
* Maintain audit properties on update of node
*
* @param nodeRef the updated node
*/
public void onUpdateAudit(NodeRef nodeRef)
{
logger.debug("In CustomAuditableAspect.onUpdateAudit(NodeRef nodeRef)…>");
if (this.runSuper) {
logger.debug("…>");
super.onUpdateAudit(nodeRef);
logger.debug("…>");
}
logger.debug("…done.");
}
}
<beans>
…
<!– Audit –>
<bean id="auditableAspect" class="com.orbitz.alfresco.repo.audit.OrbitzAuditableAspect" init-method="init">
<property name="nodeService">
<ref bean="dbNodeService" /> <!– bypass loads of interceptor layers –>
</property>
<property name="policyComponent">
<ref bean="policyComponent" />
</property>
<property name="authenticationService">
<ref bean="authenticationService" />
</property>
<property name="tenantService">
<ref bean="tenantService"/>
</property>
<property name="runSuper" value="false">
</bean>
…
</beans>
10-14-2008 11:15 AM
10-15-2008 11:13 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.