Examples of addGlobalErrorMessage()


Examples of com.liferay.faces.portal.context.LiferayFacesContext.addGlobalErrorMessage()

        break;
      }

      case UserPasswordException.PASSWORD_SAME_AS_CURRENT: {
        liferayFacesContext.addGlobalErrorMessage(
          "your-new-password-cannot-be-the-same-as-your-old-password-please-enter-in-a-different-password");

        break;
      }
View Full Code Here

Examples of com.liferay.faces.portal.context.LiferayFacesContext.addGlobalErrorMessage()

        break;
      }

      case UserPasswordException.PASSWORD_TOO_TRIVIAL: {
        liferayFacesContext.addGlobalErrorMessage("that-password-is-too-trivial");

        break;
      }

      case UserPasswordException.PASSWORD_TOO_YOUNG: {
View Full Code Here

Examples of com.liferay.faces.portal.context.LiferayFacesContext.addGlobalErrorMessage()

      case UserPasswordException.PASSWORD_TOO_YOUNG: {

        try {
          Company company = CompanyLocalServiceUtil.getCompany(companyId);
          PasswordPolicy passwordPolicy = company.getDefaultUser().getPasswordPolicy();
          liferayFacesContext.addGlobalErrorMessage(
            "you-cannot-change-your-password-yet-please-wait-at-least-x-before-changing-your-password-again",
            new Object[] { String.valueOf(passwordPolicy.getMinAge() * 1000) });

        }
        catch (Exception e1) {
View Full Code Here

Examples of com.liferay.faces.portal.context.LiferayFacesContext.addGlobalErrorMessage()

        break;
      }

      case UserPasswordException.PASSWORDS_DO_NOT_MATCH: {
        liferayFacesContext.addGlobalErrorMessage(
          "the-passwords-you-entered-do-not-match-each-other-please-re-enter-your-password");

        break;
      }
View Full Code Here

Examples of com.liferay.faces.portal.context.LiferayFacesContext.addGlobalErrorMessage()

      }
    }
    else {

      if (feedbackMessageId != null) {
        liferayFacesContext.addGlobalErrorMessage(feedbackMessageId);
      }
    }
  }

  public String getAuthType() {
View Full Code Here

Examples of com.liferay.faces.portal.context.LiferayFacesContext.addGlobalErrorMessage()

        authType = company.getAuthType();
      }
      catch (SystemException e) {
        logger.error(e);
        liferayFacesContext.addGlobalErrorMessage("Unable to determine authentication type");
        authType = CompanyConstants.AUTH_TYPE_EA;
      }
    }

    return authType;
View Full Code Here

Examples of com.liferay.faces.portal.context.LiferayFacesContext.addGlobalErrorMessage()

      String key = "thank-you-for-registering";
      liferayFacesContext.addGlobalInfoMessage(key, submittedRegistrant.getEmailAddress());
      submittedRegistrant.clearProperties();
    }
    catch (DuplicateUserScreenNameException e) {
      liferayFacesContext.addGlobalErrorMessage("the-screen-name-you-requested-is-already-taken");
    }
    catch (DuplicateUserEmailAddressException e) {
      liferayFacesContext.addGlobalErrorMessage("the-email-address-you-requested-is-already-taken");
    }
    catch (UserPasswordException e) {
View Full Code Here

Examples of com.liferay.faces.portal.context.LiferayFacesContext.addGlobalErrorMessage()

    }
    catch (DuplicateUserScreenNameException e) {
      liferayFacesContext.addGlobalErrorMessage("the-screen-name-you-requested-is-already-taken");
    }
    catch (DuplicateUserEmailAddressException e) {
      liferayFacesContext.addGlobalErrorMessage("the-email-address-you-requested-is-already-taken");
    }
    catch (UserPasswordException e) {

      switch (e.getType()) {
View Full Code Here

Examples of com.liferay.faces.portal.context.LiferayFacesContext.addGlobalErrorMessage()

    catch (UserPasswordException e) {

      switch (e.getType()) {

      case UserPasswordException.PASSWORD_ALREADY_USED: {
        liferayFacesContext.addGlobalErrorMessage(
          "that-password-has-already-been-used-please-enter-in-a-different-password");

        break;
      }
View Full Code Here

Examples of com.liferay.faces.portal.context.LiferayFacesContext.addGlobalErrorMessage()

        break;
      }

      case UserPasswordException.PASSWORD_CONTAINS_TRIVIAL_WORDS: {
        liferayFacesContext.addGlobalErrorMessage(
          "that-password-uses-common-words-please-enter-in-a-password-that-is-harder-to-guess-i-e-contains-a-mix-of-numbers-and-letters");

        break;
      }
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.