Align JSON DataNode for Get and Post/Put API in CPS
[cps.git] / cps-service / src / main / java / org / onap / cps / notification / NotificationPublisher.java
index 1ab032b..2d87488 100644 (file)
@@ -1,12 +1,13 @@
 /*
  * ============LICENSE_START=======================================================
- *  Copyright (C) 2021 Bell Canada. All rights reserved.
+ *  Copyright (c) 2021 Bell Canada.
  *  ================================================================================
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *  You may obtain a copy of the License at
  *
- *        http://www.apache.org/licenses/LICENSE-2.0
+ *         http://www.apache.org/licenses/LICENSE-2.0
+ *
  *  Unless required by applicable law or agreed to in writing, software
  *  distributed under the License is distributed on an "AS IS" BASIS,
  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -54,7 +55,7 @@ public class NotificationPublisher {
      *
      * @param cpsDataUpdatedEvent event to be sent to kafka
      */
-    void sendNotification(@NonNull final CpsDataUpdatedEvent cpsDataUpdatedEvent) {
+    public void sendNotification(@NonNull final CpsDataUpdatedEvent cpsDataUpdatedEvent) {
         final var messageKey = cpsDataUpdatedEvent.getContent().getDataspaceName() + ","
             + cpsDataUpdatedEvent.getContent().getAnchorName();
         log.debug("Data Updated event is being sent with messageKey: '{}' & body : {} ",