Convert project from AJSC to Spring Boot
[aai/model-loader.git] / src / main / java / org / onap / aai / modelloader / service / NotificationDataImpl.java
1 /**
2  * ============LICENSE_START=======================================================
3  * org.onap.aai
4  * ================================================================================
5  * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
6  * Copyright © 2017-2018 European Software Marketing Ltd.
7  * ================================================================================
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  *       http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  * ============LICENSE_END=========================================================
20  */
21 package org.onap.aai.modelloader.service;
22
23 import java.util.Collections;
24 import java.util.List;
25 import org.onap.sdc.api.notification.IArtifactInfo;
26 import org.onap.sdc.api.notification.INotificationData;
27 import org.onap.sdc.api.notification.IResourceInstance;
28
29 public class NotificationDataImpl implements INotificationData {
30
31     private String distributionID;
32
33     @Override
34     public IArtifactInfo getArtifactMetadataByUUID(String arg0) {
35         return null;
36     }
37
38     @Override
39     public String getDistributionID() {
40         return distributionID;
41     }
42
43     public void setDistributionID(String distributionID) {
44         this.distributionID = distributionID;
45     }
46
47     @Override
48     public List<IResourceInstance> getResources() {
49         return Collections.emptyList();
50     }
51
52     @Override
53     public List<IArtifactInfo> getServiceArtifacts() {
54         return Collections.emptyList();
55     }
56
57     @Override
58     public String getServiceDescription() {
59         return null;
60     }
61
62     @Override
63     public String getServiceInvariantUUID() {
64         return null;
65     }
66
67     @Override
68     public String getServiceName() {
69         return null;
70     }
71
72     @Override
73     public String getServiceUUID() {
74         return null;
75     }
76
77     @Override
78     public String getServiceVersion() {
79         return null;
80     }
81
82     @Override
83     public String getWorkloadContext() {
84         return null;
85     }
86
87     @Override
88     public void setWorkloadContext(String arg0) {
89         // Unsupported method - not expected to be called
90     }
91
92     @Override
93     public int hashCode() {
94         final int prime = 31;
95         int result = 1;
96         result = prime * result + ((distributionID == null) ? 0 : distributionID.hashCode());
97         return result;
98     }
99
100     @Override
101     public boolean equals(Object obj) {
102         if (this == obj)
103             return true;
104         if (obj == null)
105             return false;
106         if (getClass() != obj.getClass())
107             return false;
108         NotificationDataImpl other = (NotificationDataImpl) obj;
109         if (distributionID == null) {
110             if (other.distributionID != null)
111                 return false;
112         } else if (!distributionID.equals(other.distributionID))
113             return false;
114         return true;
115     }
116
117 }