Revise user controller to answer real data
[portal/ric-dashboard.git] / webapp-backend / src / main / java / org / oransc / ric / portal / dashboard / DashboardUserManager.java
@@ -17,7 +17,7 @@
  * limitations under the License.
  * ========================LICENSE_END===================================
  */
-package org.oransc.ric.portal.dashboard.portalapi;
+package org.oransc.ric.portal.dashboard;
 
 import java.io.File;
 import java.io.IOException;
@@ -30,7 +30,6 @@ import java.util.Set;
 import org.onap.portalsdk.core.onboarding.exception.PortalAPIException;
 import org.onap.portalsdk.core.restful.domain.EcompRole;
 import org.onap.portalsdk.core.restful.domain.EcompUser;
-import org.oransc.ric.portal.dashboard.DashboardConstants;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -40,7 +39,7 @@ import com.fasterxml.jackson.databind.JsonMappingException;
 import com.fasterxml.jackson.databind.ObjectMapper;
 
 /**
- * Provides user-management services.
+ * Provides simple user-management services.
  * 
  * This first implementation serializes user details to a file.
  * 
@@ -98,6 +97,15 @@ public class DashboardUserManager {
                }
        }
 
+       /**
+        * Gets the current users.
+        * 
+        * @return List of EcompUser objects, possibly empty
+        */
+       public List<EcompUser> getUsers() {
+               return this.users;
+       }
+
        /**
         * Gets the user with the specified login Id
         *