Remove dead code
[clamp.git] / src / main / java / org / onap / clamp / clds / model / CldsTemplate.java
index 5aa9b1f..b124780 100644 (file)
  * limitations under the License.
  * ============LICENSE_END============================================
  * ===================================================================
- * 
+ *
  */
 
 package org.onap.clamp.clds.model;
 
+import com.google.gson.annotations.Expose;
+
 import javax.ws.rs.NotFoundException;
 
 import org.onap.clamp.clds.dao.CldsDao;
@@ -32,36 +34,48 @@ import org.onap.clamp.clds.dao.CldsDao;
  */
 public class CldsTemplate {
 
-    public static final String STATUS_DESIGN   = "DESIGN";
-    public static final String STATUS_ACTIVE   = "ACTIVE";
-    public static final String STATUS_STOPPED  = "STOPPED";
+    public static final String STATUS_DESIGN = "DESIGN";
+    public static final String STATUS_ACTIVE = "ACTIVE";
+    public static final String STATUS_STOPPED = "STOPPED";
     public static final String STATUS_DELETING = "DELETING";
-    public static final String STATUS_ERROR    = "ERROR";   // manual
-                                                            // intervention
-                                                            // required
-    public static final String STATUS_UNKNOWN  = "UNKNOWN";
-
-    private String             id;
-    private String             name;
-    private String             controlNamePrefix;
-    private String             controlNameUuid;
-    private String             bpmnId;
-    private String             bpmnUserid;
-    private String             bpmnText;
-    private String             imageId;
-    private String             imageUserid;
-    private String             imageText;
-    private String             propId;
-    private String             propUserid;
-    private String             propText;
-
-    private boolean            userAuthorizedToUpdate;
+    // manual intervention required
+    public static final String STATUS_ERROR = "ERROR";
+    public static final String STATUS_UNKNOWN = "UNKNOWN";
+
+    @Expose
+    private String id;
+    @Expose
+    private String name;
+    @Expose
+    private String controlNamePrefix;
+    @Expose
+    private String controlNameUuid;
+    @Expose
+    private String bpmnId;
+    @Expose
+    private String bpmnUserid;
+    @Expose
+    private String bpmnText;
+    @Expose
+    private String imageId;
+    @Expose
+    private String imageUserid;
+    @Expose
+    private String imageText;
+    @Expose
+    private String propId;
+    @Expose
+    private String propUserid;
+    @Expose
+    private String propText;
+    @Expose
+    private boolean userAuthorizedToUpdate;
 
     /**
      * Save template to DB.
      *
-     * @param cldsDao
-     * @param userid
+     * @param cldsDao The cldsDao
+     * @param userid  The user Id
      */
     public void save(CldsDao cldsDao, String userid) {
         cldsDao.setTemplate(this, userid);
@@ -70,9 +84,11 @@ public class CldsTemplate {
     /**
      * Retrieve from DB.
      *
-     * @param cldsDao
-     * @param name
-     * @return
+     * @param cldsDao      The cldsDao
+     * @param name         The template name to retrieve
+     * @param okIfNotFound The flag indicating whether exception will be returned in
+     *                     case nothing is found
+     * @return Clds template from DB
      */
     public static CldsTemplate retrieve(CldsDao cldsDao, String name, boolean okIfNotFound) {
         // get from db