2 * ============LICENSE_START=======================================================
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
12 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.onap.aai.modelloader.notification;
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;
29 public class NotificationDataImpl implements INotificationData {
31 private String distributionID;
34 public IArtifactInfo getArtifactMetadataByUUID(String arg0) {
39 public String getDistributionID() {
40 return distributionID;
43 public void setDistributionID(String distributionID) {
44 this.distributionID = distributionID;
48 public List<IResourceInstance> getResources() {
49 return Collections.emptyList();
53 public List<IArtifactInfo> getServiceArtifacts() {
54 return Collections.emptyList();
58 public String getServiceDescription() {
63 public String getServiceInvariantUUID() {
68 public String getServiceName() {
73 public String getServiceUUID() {
78 public String getServiceVersion() {
83 public String getWorkloadContext() {
88 public void setWorkloadContext(String arg0) {
89 // Unsupported method - not expected to be called
93 public int hashCode() {
96 result = prime * result + ((distributionID == null) ? 0 : distributionID.hashCode());
101 public boolean equals(Object obj) {
106 if (getClass() != obj.getClass())
108 NotificationDataImpl other = (NotificationDataImpl) obj;
109 if (distributionID == null) {
110 if (other.distributionID != null)
112 } else if (!distributionID.equals(other.distributionID))