Package com.tensegrity.palo.gwt.core.client.models.cubeviews

Examples of com.tensegrity.palo.gwt.core.client.models.cubeviews.XDirectLinkData.addError()


    }
    if (user == null) {
      data.setAuthenticated(false);
      try {
        UserSession userSession = getUserSession(sessionId);     
        data.addError(userSession.translate("directLinkAuthenticationFailed"));
      } catch (SessionExpiredException e) {
        data.addError("You specified an invalid username/password combination. The user in the direct link could not be authenticated.");
      }
      return data;
    }
View Full Code Here


      data.setAuthenticated(false);
      try {
        UserSession userSession = getUserSession(sessionId);     
        data.addError(userSession.translate("directLinkAuthenticationFailed"));
      } catch (SessionExpiredException e) {
        data.addError("You specified an invalid username/password combination. The user in the direct link could not be authenticated.");
      }
      return data;
    }
   
    List <Boolean> gFlags = createGlobalDisplayFlags(link);
View Full Code Here

      e.printStackTrace();
      logger.error(e.getMessage());
      return null;
    }
    if (psd.secret == null) {
      data.addError("No shared secret information found. Can't continue.<br/>");
    }
    if (psd.host == null) {
      data.addError("No palo configuration database host specified. Can't continue.<br/>");
    }
    if (psd.port == null) {
View Full Code Here

    }
    if (psd.secret == null) {
      data.addError("No shared secret information found. Can't continue.<br/>");
    }
    if (psd.host == null) {
      data.addError("No palo configuration database host specified. Can't continue.<br/>");
    }
    if (psd.port == null) {
      data.addError("No palo configuration database port specified. Can't continue.<br/>");
    }
    if (data.getErrors() != null && data.getErrors().length > 0) {
View Full Code Here

    }
    if (psd.host == null) {
      data.addError("No palo configuration database host specified. Can't continue.<br/>");
    }
    if (psd.port == null) {
      data.addError("No palo configuration database port specified. Can't continue.<br/>");
    }
    if (data.getErrors() != null && data.getErrors().length > 0) {
      psd.secret = null;
      psd = null;
      return data;
View Full Code Here

    String user = parameters.get("user");
    String passEnc64 = parameters.get("pass");
    String viewId = parameters.get("viewid");
   
    if (user == null) {
      data.addError(UserSession.trans(locale, "noDirectLinkUsernameSpecified"));
    }
    if (passEnc64 == null) {
      data.addError(UserSession.trans(locale, "noDirectLinkPasswordSpecified"));
    }
    if (viewId == null) {
View Full Code Here

   
    if (user == null) {
      data.addError(UserSession.trans(locale, "noDirectLinkUsernameSpecified"));
    }
    if (passEnc64 == null) {
      data.addError(UserSession.trans(locale, "noDirectLinkPasswordSpecified"));
    }
    if (viewId == null) {
      data.addError(UserSession.trans(locale, "noDirectLinkViewSpecified"));
    }
    if (data.getErrors() != null && data.getErrors().length > 0) {
View Full Code Here

    }
    if (passEnc64 == null) {
      data.addError(UserSession.trans(locale, "noDirectLinkPasswordSpecified"));
    }
    if (viewId == null) {
      data.addError(UserSession.trans(locale, "noDirectLinkViewSpecified"));
    }
    if (data.getErrors() != null && data.getErrors().length > 0) {
      return data;
    }
   
View Full Code Here

    if (data.getErrors() != null && data.getErrors().length > 0) {
      return data;
    }
   
    if (!checkChecksum(encodedLink, psd.secret, log)) {
      data.addError(UserSession.trans(locale, "checksumDoesNotMatch"));
      return data;
    }
   
   
    String decPass = null;
View Full Code Here

   
    String decPass = null;
    try {
      decPass = decodePass(psd.secret, user, passEnc64, viewId, log);
    } catch (Exception e) {
      data.addError(UserSession.trans(locale, "directLinkAuthenticationFailed"));
    }
    if (decPass == null || (data.getErrors() != null && data.getErrors().length > 0)) {
      return data;
    }
   
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.