Adding back-end support for UI filters
[aai/sparky-be.git] / src / main / java / org / onap / aai / sparky / security / portal / PortalRestAPIServiceImpl.java
index 79e9344..9e405b5 100644 (file)
@@ -48,6 +48,34 @@ 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;
 
   /**
@@ -148,13 +176,8 @@ public class PortalRestAPIServiceImpl implements IPortalRestAPIService {
   // Role interface
   /////////////////////////////////////////////////////////////////////////////
 
-  /*
-   * (non-Javadoc)
-   *
-   * @see com.att.fusion.core.onboarding.crossapi.IPortalRestAPIService#getAvailableRoles()
-   */
   @Override
-  public List<EcompRole> getAvailableRoles(String role) throws PortalAPIException {
+  public List<EcompRole> getAvailableRoles(String requestedLoginId) throws PortalAPIException {
     LOG.debug("Get available roles");
     return UserManager.getRoles();
   }
@@ -222,5 +245,4 @@ public class PortalRestAPIServiceImpl implements IPortalRestAPIService {
     formatter.applyPattern(message);
     return formatter.format(args);
   }
-
 }
\ No newline at end of file