Add ACTION_SUBMITDCAE constant. 93/30493/1
authorDeterme, Sebastien (sd378r) <sd378r@intl.att.com>
Tue, 6 Feb 2018 16:05:36 +0000 (17:05 +0100)
committerDeterme, Sebastien (sd378r) <sd378r@intl.att.com>
Tue, 6 Feb 2018 16:05:36 +0000 (17:05 +0100)
Add ACTION_SUBMITDCAE constant or DCAE direct action

Issue-ID: CLAMP-90
Change-Id: If5aca8e349ca1a4d9611874a189ff78a566a9d76
Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
src/main/java/org/onap/clamp/clds/model/CldsEvent.java

index 3b9c1d2..f52a295 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * ONAP CLAMP
  * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights
+ * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights
  *                             reserved.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -34,6 +34,8 @@ public class CldsEvent {
     public static final String ACTION_SUBMIT          = "SUBMIT";
     // an update before model is active
     public static final String ACTION_RESUBMIT        = "RESUBMIT";
+    // For simplified models
+    public static final String ACTION_SUBMITDCAE      = "SUBMITDCAE";
     // only from dcae
     public static final String ACTION_DISTRIBUTE      = "DISTRIBUTE";
     // only from dcae
@@ -87,13 +89,14 @@ public class CldsEvent {
      * 
      * @param cldsDao
      * @param model
+     * @param userId
      * @param actionCd
      * @param actionStateCd
      * @param processInstanceId
      * @return
      */
-    public static CldsEvent insEvent(CldsDao cldsDao, CldsModel model, String userId, String actionCd, String actionStateCd,
-            String processInstanceId) {
+    public static CldsEvent insEvent(CldsDao cldsDao, CldsModel model, String userId, String actionCd,
+            String actionStateCd, String processInstanceId) {
         CldsEvent event = new CldsEvent();
         event.setUserid(userId);
         event.setActionCd(actionCd);