2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.onap.so.db.catalog.data.projections;
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;
27 @Projection(name = "InlineAllottedResources", types = { AllottedResourceCustomization.class })
28 public interface InlineAllottedResources {
30 String getModelCustomizationUUID();
31 String getModelInstanceName();
32 String getMaxInstances();
33 String getMinInstances();
34 String getNfNamingCode();
37 String getNfFunction();
38 String getTargetNetworkRole();
39 String getProvidingServiceModelInvariantUUID();
40 String getProvidingServiceModelName();
41 String getProvidingServiceModelUUID();
43 @Value("#{target.getAllottedResource().getDescription()}")
44 String getDescription();
46 @Value("#{target.getAllottedResource().getCreated()}")
50 @Value("#{target.getAllottedResource().getModelInvariantUUID()}")
51 String getModelInvariantUuid ();
53 @Value("#{target.getAllottedResource().getModelName()}")
54 String getModelName ();
56 @Value("#{target.getAllottedResource().getModelUUID()}")
57 String getModelUuid ();
59 @Value("#{target.getAllottedResource().getToscaNodeType()}")
60 String getToscaNodeType ();
62 @Value("#{target.getAllottedResource().getSubcategory()}")
63 String getSubcategory ();