10/31: merge casablanca to master
[so.git] / mso-catalog-db / src / main / java / org / onap / so / db / catalog / data / projections / InlineAllottedResources.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.so.db.catalog.data.projections;
22
23 import org.onap.so.db.catalog.beans.AllottedResourceCustomization;
24 import org.springframework.beans.factory.annotation.Value;
25 import org.springframework.data.rest.core.config.Projection;
26
27 @Projection(name = "InlineAllottedResources", types = { AllottedResourceCustomization.class }) 
28 public interface InlineAllottedResources { 
29
30   String getModelCustomizationUUID(); 
31   String getModelInstanceName(); 
32   String getMaxInstances(); 
33   String getMinInstances(); 
34   String getNfNamingCode(); 
35   String getNfRole(); 
36   String getNfType(); 
37   String getNfFunction(); 
38   String getTargetNetworkRole(); 
39   String getProvidingServiceModelInvariantUUID(); 
40   String getProvidingServiceModelName(); 
41   String getProvidingServiceModelUUID();   
42   
43   @Value("#{target.getAllottedResource().getDescription()}")
44   String getDescription();
45   
46   @Value("#{target.getAllottedResource().getCreated()}")
47   String getCreated(); 
48
49   
50   @Value("#{target.getAllottedResource().getModelInvariantUUID()}")
51   String getModelInvariantUuid ();
52   
53   @Value("#{target.getAllottedResource().getModelName()}")
54   String getModelName ();
55   
56   @Value("#{target.getAllottedResource().getModelUUID()}")
57   String getModelUuid ();  
58
59   @Value("#{target.getAllottedResource().getToscaNodeType()}")
60   String getToscaNodeType ();
61   
62   @Value("#{target.getAllottedResource().getSubcategory()}")
63   String getSubcategory ();
64 }