mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Stuck AVMService into ServiceRegistry. Started wrapping AVMService
with appropriate advice. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3661 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1006,7 +1006,7 @@
|
|||||||
|
|
||||||
<!-- The AVMService -->
|
<!-- The AVMService -->
|
||||||
|
|
||||||
<bean id="AVMService" class="org.alfresco.repo.avm.AVMServiceImpl">
|
<bean id="avmService" class="org.alfresco.repo.avm.AVMServiceImpl">
|
||||||
<property name="retryingTransaction">
|
<property name="retryingTransaction">
|
||||||
<ref bean="retryingTransaction"/>
|
<ref bean="retryingTransaction"/>
|
||||||
</property>
|
</property>
|
||||||
@@ -1015,6 +1015,29 @@
|
|||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
<bean id="AVMService" class="org.springframework.aop.framework.ProxyFactoryBean">
|
||||||
|
<property name="proxyInterfaces">
|
||||||
|
<value>org.alfresco.service.cmr.avm.AVMService</value>
|
||||||
|
</property>
|
||||||
|
<property name="target">
|
||||||
|
<ref bean="avmService"/>
|
||||||
|
</property>
|
||||||
|
<property name="interceptorNames">
|
||||||
|
<list>
|
||||||
|
<idref local="AVMService_descriptor"/>
|
||||||
|
</list>
|
||||||
|
</property>
|
||||||
|
</bean>
|
||||||
|
|
||||||
|
<bean id="AVMService_descriptor" parent="AlfrescoServiceDescriptor">
|
||||||
|
<property name="interface">
|
||||||
|
<value>org.alfresco.service.cmr.avm.AVMService</value>
|
||||||
|
</property>
|
||||||
|
<property name="description">
|
||||||
|
<value>AVM Service</value>
|
||||||
|
</property>
|
||||||
|
</bean>
|
||||||
|
|
||||||
<!-- Workflow Service -->
|
<!-- Workflow Service -->
|
||||||
|
|
||||||
<bean id="WorkflowService" class="org.springframework.aop.framework.ProxyFactoryBean">
|
<bean id="WorkflowService" class="org.springframework.aop.framework.ProxyFactoryBean">
|
||||||
|
@@ -25,6 +25,7 @@ import java.util.Map;
|
|||||||
import org.alfresco.service.ServiceDescriptor;
|
import org.alfresco.service.ServiceDescriptor;
|
||||||
import org.alfresco.service.ServiceRegistry;
|
import org.alfresco.service.ServiceRegistry;
|
||||||
import org.alfresco.service.cmr.action.ActionService;
|
import org.alfresco.service.cmr.action.ActionService;
|
||||||
|
import org.alfresco.service.cmr.avm.AVMService;
|
||||||
import org.alfresco.service.cmr.coci.CheckOutCheckInService;
|
import org.alfresco.service.cmr.coci.CheckOutCheckInService;
|
||||||
import org.alfresco.service.cmr.dictionary.DictionaryService;
|
import org.alfresco.service.cmr.dictionary.DictionaryService;
|
||||||
import org.alfresco.service.cmr.lock.LockService;
|
import org.alfresco.service.cmr.lock.LockService;
|
||||||
@@ -322,4 +323,13 @@ public class ServiceDescriptorRegistry
|
|||||||
{
|
{
|
||||||
return (WorkflowService)getService(WORKFLOW_SERVICE);
|
return (WorkflowService)getService(WORKFLOW_SERVICE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the AVMService.
|
||||||
|
* @return The AVMService or null if there is none.
|
||||||
|
*/
|
||||||
|
public AVMService getAVMService()
|
||||||
|
{
|
||||||
|
return (AVMService)getService(AVM_SERVICE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -19,6 +19,7 @@ package org.alfresco.service;
|
|||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
||||||
import org.alfresco.service.cmr.action.ActionService;
|
import org.alfresco.service.cmr.action.ActionService;
|
||||||
|
import org.alfresco.service.cmr.avm.AVMService;
|
||||||
import org.alfresco.service.cmr.coci.CheckOutCheckInService;
|
import org.alfresco.service.cmr.coci.CheckOutCheckInService;
|
||||||
import org.alfresco.service.cmr.dictionary.DictionaryService;
|
import org.alfresco.service.cmr.dictionary.DictionaryService;
|
||||||
import org.alfresco.service.cmr.lock.LockService;
|
import org.alfresco.service.cmr.lock.LockService;
|
||||||
@@ -84,6 +85,7 @@ public interface ServiceRegistry
|
|||||||
static final QName FILE_FOLDER_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "FileFolderService");
|
static final QName FILE_FOLDER_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "FileFolderService");
|
||||||
static final QName SCRIPT_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "ScriptService");
|
static final QName SCRIPT_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "ScriptService");
|
||||||
static final QName WORKFLOW_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "WorkflowService");
|
static final QName WORKFLOW_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "WorkflowService");
|
||||||
|
static final QName AVM_SERVICE = QName.createQName(NamespaceService.ALFRESCO_URI, "AVMService");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the list of services provided by the Repository
|
* Get the list of services provided by the Repository
|
||||||
@@ -263,4 +265,11 @@ public interface ServiceRegistry
|
|||||||
*/
|
*/
|
||||||
@NotAuditable
|
@NotAuditable
|
||||||
WorkflowService getWorkflowService();
|
WorkflowService getWorkflowService();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the AVMService.
|
||||||
|
* @return The AVM service (or null if one is not provided);
|
||||||
|
*/
|
||||||
|
@NotAuditable
|
||||||
|
AVMService getAVMService();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user