Package com.liferay.portal.auth

Examples of com.liferay.portal.auth.PrincipalFinder


    if (name == null) {
      throw new PrincipalException();
    }

    PrincipalFinder principalFinder = null;

    try {
      principalFinder = (PrincipalFinder)InstancePool.get(
        PropsUtil.get(PropsUtil.PRINCIPAL_FINDER));

      name = principalFinder.toLiferay(name);
    }
    catch (Exception e) {
    }

    if (Validator.isNull(name)) {
View Full Code Here


    }

    String liferayUserId = userId;

    try {
      PrincipalFinder principalFinder = (PrincipalFinder)InstancePool.get(
        PropsUtil.get(PropsUtil.PRINCIPAL_FINDER));

      liferayUserId = principalFinder.toLiferay(userId);
    }
    catch (Exception e) {
    }

    User user = UserUtil.findByPrimaryKey(liferayUserId);
View Full Code Here

    userId = userId.trim().toLowerCase();

    String liferayUserId = userId;

    try {
      PrincipalFinder principalFinder = (PrincipalFinder)InstancePool.get(
        PropsUtil.get(PropsUtil.PRINCIPAL_FINDER));

      liferayUserId = principalFinder.toLiferay(userId);
    }
    catch (Exception e) {
    }

    User user = UserUtil.findByPrimaryKey(liferayUserId);
View Full Code Here

            authResult = UserManagerUtil.authenticateByUserId( company.getCompanyId(), login, password );
        }

    try {
      PrincipalFinder principalFinder =
        (PrincipalFinder)InstancePool.get(
          PropsUtil.get(PropsUtil.PRINCIPAL_FINDER));

      userId = principalFinder.fromLiferay(userId);
    }
    catch (Exception e) {
    }

    if (authResult == Authenticator.SUCCESS) {
View Full Code Here

TOP

Related Classes of com.liferay.portal.auth.PrincipalFinder

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.