03-08-2012 02:34 PM
<?xml version='1.0' encoding='UTF-8'?>
<Audit xmlns="http://www.alfresco.org/repo/audit/model/3.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.alfresco.org/repo/audit/model/3.2 alfresco-audit-3.2.xsd">
<DataExtractors>
<DataExtractor name="simpleValue" registeredName="auditModel.extractor.simpleValue" />
</DataExtractors>
<PathMappings>
<PathMap source="/alfresco-api/pre/ExtractorService/updateMetadata" target="/Extractor" />
<PathMap source="/alfresco-api/post/ExtractorService/updateMetadata" target="/Extractor" />
</PathMappings>
<Application name="Extractor" key="Extractor">
<AuditPath key="update">
<AuditPath key="in">
<RecordValue key="nodeRef" dataExtractor="simpleValue" dataSource="/Extractor/args/nodeRef" dataTrigger="/Extractor/no-error"/>
</AuditPath>
<AuditPath key="out">
<RecordValue key="result" dataExtractor="simpleValue" dataSource="/Extractor/result" dataTrigger="/Extractor/no-error"/>
</AuditPath>
</AuditPath>
</Application>
</Audit>
public interface ExtractorService {
@Auditable(parameters={"nodeRef"})
public ContentReader getContent(NodeRef nodeRef) throws ServiceException, IOException;
}
03-14-2012 05:41 PM
<bean id="NodeService" class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="proxyInterfaces">
<list>
<value>org.alfresco.service.ServiceDescriptor</value>
<value>org.alfresco.service.cmr.repository.NodeService</value>
</list>
</property>
<property name="target">
<ref bean="nodeService"/>
</property>
<property name="interceptorNames">
<list>
<idref local="NodeService_transaction"/>
<idref local="AuditMethodInterceptor"/>
<idref local="exceptionTranslator"/>
<idref bean="NodeService_security"/>
<idref local="NodeService_descriptor"/>
</list>
</property>
</bean>
03-20-2012 05:43 PM
….
<bean id="ExtractorService" class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="proxyInterfaces">
<list>
<value>com.saruqui.alfresco.services.ExtractorService</value>
</list>
</property>
<property name="target">
<ref bean="ExtractorService"/>
</property>
<property name="interceptorNames">
<list>
<idref local="ExtractorService_transaction"/>
<idref local="ExtractorService_security"/>
<idref bean="AuditMethodInterceptor"/>
<idref bean="exceptionTranslator"/>
</list>
</property>
</bean>
<bean id="ExtractorService_transaction" class="org.springframework.transaction.interceptor.TransactionInterceptor">
<property name="transactionManager">
<ref bean="transactionManager"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="*">${server.transaction.mode.default}</prop>
</props>
</property>
</bean>
<bean id="ExtractorService_security" class="org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor" />
<bean id="ExtractorService" class="com.saruqui.alfresco.services.ExtractorServiceImpl">
<property name="contentService" ref="ContentService" />
<property name="dictionaryService" ref="DictionaryService" />
<property name="mimetypeService" ref="MimetypeService" />
<property name="nodeService" ref="NodeService" />
<property name="serviceRegistry" ref="ServiceRegistry" />
<property name="genericMetadataExtractor" ref="GenericMetadataExtractor" />
</bean>
….
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.