improve dashboard UI
[portal/ric-dashboard.git] / webapp-backend / src / main / java / org / oransc / ric / portal / dashboard / model / AppTransport.java
index fbc7bbc..abe026b 100644 (file)
@@ -21,9 +21,8 @@
 package org.oransc.ric.portal.dashboard.model;
 
 /**
- * Trivial model to transport available application from the App manager. I
- * expect that system will soon add additional attributes. This allows coding to
- * a structure rather than a scalar.
+ * Trivial model to transport available application details from the App
+ * manager.
  */
 public class AppTransport implements IDashboardResponse {
 
@@ -40,11 +39,11 @@ public class AppTransport implements IDashboardResponse {
        /**
         * Builds an object with the specified value.
         * 
-        * @param s
-        *              value to transport.
+        * @param n
+        *              Name to transport
         */
-       public AppTransport(String s) {
-               this.name = s;
+       public AppTransport(String n) {
+               this.name = n;
        }
 
        public String getName() {
@@ -63,4 +62,9 @@ public class AppTransport implements IDashboardResponse {
                this.version = version;
        }
 
+       @Override
+       public String toString() {
+               return this.getClass().getName() + "[name=" + getName() + ", version=" + getVersion() + "]";
+       }
+
 }