Adding UI extensibility
[aai/sparky-be.git] / src / main / java / org / onap / aai / sparky / security / portal / PortalRestAPIServiceImpl.java
index 050d558..d3ffac3 100644 (file)
@@ -48,34 +48,6 @@ public class PortalRestAPIServiceImpl implements IPortalRestAPIService {
   private static final Logger LOG = LoggerFactory.getLogger(PortalRestAPIServiceImpl.class);
   private static final String ERROR_MESSAGE = "Failed to {0} user [loginId:{1}]";
 
-  /**
-   * @return the userManager
-   */
-  public UserManager getUserManager() {
-    return userManager;
-  }
-
-  /**
-   * @param userManager the userManager to set
-   */
-  public void setUserManager(UserManager userManager) {
-    this.userManager = userManager;
-  }
-
-  /**
-   * @return the log
-   */
-  public static Logger getLog() {
-    return LOG;
-  }
-
-  /**
-   * @return the errorMessage
-   */
-  public static String getErrorMessage() {
-    return ERROR_MESSAGE;
-  }
-
   private UserManager userManager;
 
   /**
@@ -175,8 +147,11 @@ public class PortalRestAPIServiceImpl implements IPortalRestAPIService {
   /////////////////////////////////////////////////////////////////////////////
   // Role interface
   /////////////////////////////////////////////////////////////////////////////
+  public List<EcompRole> getAvailableRoles() throws PortalAPIException {
+    LOG.debug("Get available roles");
+    return UserManager.getRoles();
+  }
 
-  @Override
   public List<EcompRole> getAvailableRoles(String requestedLoginId) throws PortalAPIException {
     LOG.debug("Get available roles");
     return UserManager.getRoles();