Package it.eng.spagobi.services.common

Examples of it.eng.spagobi.services.common.SsoServiceInterface


      }else{
      if (!isSecure){
          return pass;
      }
      if ( ! UserProfile.isSchedulerUser(userId) ) {
          SsoServiceInterface proxyService = SsoServiceFactory.createProxyService();
          return proxyService.readTicket(session);
      }else{
          return "";
      }
      }
    }
View Full Code Here


    }


  private String getUserWithSSO(HttpServletRequest request) throws ServletException {
    logger.debug("IN");
    SsoServiceInterface userProxy = SsoServiceFactory.createProxyService();
    String ssoUserIdentifier = userProxy.readUserIdentifier(request);
    logger.debug("OUT. got ssoUserId from IProxyService=" + ssoUserIdentifier);
    return ssoUserIdentifier;
    }
View Full Code Here

    return ssoUserIdentifier;
    }

    private String checkUserWithSSO(String userId, HttpServletRequest request) throws ServletException {
    logger.debug("IN");
    SsoServiceInterface userProxy = SsoServiceFactory.createProxyService();
      String ssoUserIdentifier = userProxy.readUserIdentifier(request);
      logger.debug("got ssoUserId from IProxyService=" + ssoUserIdentifier);
      logger.debug("OU: got userId from IProxyService=" + userId);
      return ssoUserIdentifier;
    }
View Full Code Here

        //logger.error("User identifier not found. Cannot build user profile object");
        //throw new SecurityException("User identifier not found.");
      }     
    } else {

      SsoServiceInterface userProxy = SsoServiceFactory.createProxyService();
      userId = userProxy.readUserIdentifier(servletRequest);
      logger.debug("OUT,userId:"+userId);
      // if we are in SSO and user has a previous profile keep it!
      if (previousProfile != null && previousProfile.getUserId().equals(userId)) {
        if (previousProfile != null) {
          profile = previousProfile;
View Full Code Here

        addParToParMap(params, parName, parValue);
        logger.debug("Read parameter [" + parName + "] with value ["+ parValue + "] from request");
    }
    logger.debug("Request parameters read sucesfully" + params);
   
    SsoServiceInterface proxyService = SsoServiceFactory.createProxyService();
    String token = proxyService.readTicket(session);
   
    String kpiUrl = EnginConf.getInstance().getSpagoBiServerUrl()+"/publicjsp/kpiValueXml.jsp?SECURITY_TOKEN="+token+"&USERID="+userId;
    //String kpiUrl = EnginConf.getInstance().getSpagoBiServerUrl()+"/testXml.jsp?"+"USERID="+userId;
   
    Locale locale = null;
View Full Code Here

     
      if (!isSecure){
        token = pass;
      }
      if ( ! UserProfile.isSchedulerUser(userId) ) {
          SsoServiceInterface proxyService = SsoServiceFactory.createProxyService();
          token = proxyService.readTicket(session);
      }else{
        token = "";
      }
     
      context.put("RESOURCE_PATH_JNDI_NAME", resourcePath);
View Full Code Here

 
  private static transient Logger logger=Logger.getLogger(ServiceKpiValueXml.class);
 
  public String getKpiValueXML(String token, String user,Integer kpiValueID){
    logger.debug("IN");
    SsoServiceInterface proxyService = SsoServiceFactory.createProxyService();
    String xml = "";
    try {
     
      proxyService.validateTicket(token, user);
      logger.debug("Token validated");
      xml = DAOFactory.getKpiDAO().loadKPIValueXml(kpiValueID);
      logger.debug("Xml Retrieved");
     
    } catch (EMFUserError e) {
View Full Code Here

  return userProfile;
    }

    public static IEngUserProfile getUserProfile(HttpServletRequest req) throws Exception {
      logger.debug("IN");
      SsoServiceInterface userProxy = SsoServiceFactory.createProxyService();
    String userId = userProxy.readUserIdentifier(req);
   
      ISecurityServiceSupplier supplier = SecurityServiceSupplierFactory.createISecurityServiceSupplier();
      try {
    SpagoBIUserProfile user = supplier.createUserProfile(userId);
    user.setFunctions(readFunctionality(user.getRoles()));
View Full Code Here

   
    }
   
    public static String getUserId(HttpServletRequest req){
        logger.debug("IN");
        SsoServiceInterface userProxy = SsoServiceFactory.createProxyService();
        String userId = userProxy.readUserIdentifier(req);
        logger.debug("OUT,userId:"+userId);
        return userId;
    }
View Full Code Here

  private static String findUserId(HttpServletRequest request) throws Exception {
    logger.debug("IN");
    String userId = null;
    try {
      SsoServiceInterface userProxy = SsoServiceFactory.createProxyService();
      userId = userProxy.readUserIdentifier(request);
    } finally {
      logger.debug("OUT");
    }
    return userId;
  }
View Full Code Here

TOP

Related Classes of it.eng.spagobi.services.common.SsoServiceInterface

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.