Onboarding upload control
[sdc.git] / openecomp-be / api / openecomp-sdc-rest-webapp / onboarding-rest-war / src / main / webapp / WEB-INF / beans-services.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <beans xmlns="http://www.springframework.org/schema/beans"
3        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4        xmlns:jaxrs="http://cxf.apache.org/jaxrs"
5        xmlns:context="http://www.springframework.org/schema/context"
6        xsi:schemaLocation="http://www.springframework.org/schema/beans
7        http://www.springframework.org/schema/beans/spring-beans.xsd
8        http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd
9        http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
10
11
12     <import resource="classpath:META-INF/cxf/cxf.xml"/>
13     <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
14
15     <!-- CXF -->
16     <context:component-scan base-package="org.openecomp.sdcrests"/>
17     <context:component-scan base-package="org.openecomp.sdc.vendorsoftwareproduct.dao"/>
18     <!-- Needed for JSR-303 validations. May be removed when moving to JAX-RS 2.0 -->
19     <bean id="validator" class="org.springframework.validation.beanvalidation.LocalValidatorFactoryBean"/>
20
21     <!-- Needed for JSR-303 validations. May be removed when moving to JAX-RS 2.0 -->
22     <bean class="org.springframework.validation.beanvalidation.MethodValidationPostProcessor"/>
23
24     <bean id="jacksonObjectMapper" class="com.fasterxml.jackson.databind.ObjectMapper">
25         <property name="serializationInclusion" value="NON_NULL"/>
26     </bean>
27
28     <bean id="jsonProvider" class="com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider">
29         <property name="mapper" ref="jacksonObjectMapper"/>
30     </bean>
31
32     <bean id="outEmptyResponseInterceptor" class="org.openecomp.server.interceptors.EmptyOutputOutInterceptor"/>
33
34     <!-- ASDC -->
35     <bean id="uploadValidationManager" class="org.openecomp.sdc.validation.impl.UploadValidationManagerImpl"/>
36     <bean id="actionManager" class="org.openecomp.sdc.action.impl.ActionManagerImpl"/>
37     <bean id="applicationConfigManager" class="org.openecomp.sdc.applicationconfig.impl.ApplicationConfigManagerImpl"/>
38
39     <!-- aspect beans -->
40     <bean id = "healthCheck" class="org.openecomp.sdcrests.health.rest.services.HealthCheckImpl"/>
41     <bean id = "itemPermissions" class="org.openecomp.sdcrests.itempermissions.rest.services.ItemPermissionsImpl"/>
42     <bean id = "notifications" class="org.openecomp.sdcrests.notifications.rest.services.impl.NotificationsImpl"/>
43     <bean id = "togglz" class="org.openecomp.sdcrests.togglz.rest.services.TogglzFeaturesImpl"/>
44     <bean id = "items" class="org.openecomp.sdcrests.item.rest.services.ItemsImpl"/>
45     <bean id = "uniqueTypes" class="org.openecomp.sdcrests.uniquevalue.rest.services.UniqueTypesImpl"/>
46
47     <!-- External Testing Interface Beans -->
48     <bean id = "externalTestingManager" class="org.openecomp.core.externaltesting.impl.ExternalTestingManagerImpl"/>
49
50     <!-- RESTful Services -->
51     <jaxrs:server id="restContainer" address="/">
52
53         <jaxrs:serviceBeans>
54             <ref bean="versions"/>
55             <ref bean="conflicts"/>
56             <ref bean="vendorLicenseModels"/>
57             <ref bean="licenseAgreements"/>
58             <ref bean="featureGroups"/>
59             <ref bean="entitlementPools"/>
60             <ref bean="entitlementPoolLimits"/>
61             <ref bean="licenseKeyGroups"/>
62             <ref bean="licenseKeyGroupLimits"/>
63             <ref bean="vendorSoftwareProducts"/>
64             <ref bean="packageUploadManagerController"/>
65             <ref bean="networks"/>
66             <ref bean="components"/>
67             <ref bean="nics"/>
68             <ref bean="computes"/>
69             <ref bean="processes"/>
70             <ref bean="componentProcesses"/>
71             <ref bean="validation"/>
72             <ref bean="externaltesting"/>
73             <ref bean="actions"/>
74             <ref bean="applicationConfiguration"/>
75             <ref bean="componentMonitoringUploads"/>
76             <ref bean="deploymentFlavors"/>
77             <ref bean="images"/>
78             <ref bean="orchestrationTemplateCandidate"/>
79             <ref bean="vnfPackageRepository"/>
80             <ref bean="componentDependencies"/>
81             <ref bean="healthCheck"/>
82             <ref bean="itemPermissions"/>
83             <ref bean="notifications"/>
84             <ref bean="togglz"/>
85             <ref bean="items"/>
86             <ref bean="uniqueTypes"/>
87         </jaxrs:serviceBeans>
88
89         <jaxrs:providers>
90             <ref bean="jsonProvider"/>
91             <bean class="org.openecomp.sdc.action.errors.ActionExceptionMapper"/>
92             <bean class="org.openecomp.sdcrests.errors.DefaultExceptionMapper"/>
93             <bean class="org.openecomp.sdcrests.errors.ZusammenExceptionMapper"/>
94             <bean class="org.openecomp.sdc.logging.servlet.jaxrs.LoggingRequestFilter">
95                 <property name="requestIdHeaders" value="X-ONAP-RequestID,X-RequestID,X-TransactionId,X-ECOMP-RequestID"/>
96                 <property name="partnerNameHeaders" value="USER_ID,X-ONAP-PartnerName,User-Agent"/>
97             </bean>
98             <bean class="org.openecomp.sdc.logging.servlet.jaxrs.LoggingResponseFilter"/>
99         </jaxrs:providers>
100
101         <jaxrs:outInterceptors>
102             <ref bean="outEmptyResponseInterceptor"/>
103         </jaxrs:outInterceptors>
104     </jaxrs:server>
105
106 </beans>