Package com.liferay.portal.auth

Examples of com.liferay.portal.auth.PrincipalException


    User user = getUser();

    PollsQuestion question = getQuestion(questionId);

    if (!question.getCompanyId().equals(user.getCompanyId())) {
      throw new PrincipalException();
    }

    PollsQuestionLocalManagerUtil.vote(
      user.getUserId(), questionId, choiceId);
  }
View Full Code Here


    throws PortalException, SystemException {

    User user = getUser();

    if (!hasAdministrator(user.getCompanyId())) {
      throw new PrincipalException();
    }

    UserTrackerLocalManagerUtil.deleteUserTracker(userTrackerId);
  }
View Full Code Here

    throws PortalException, SystemException {

    User user = getUser();

    if (!hasAdministrator(user.getCompanyId())) {
      throw new PrincipalException();
    }

    return UserTrackerLocalManagerUtil.getUserTrackers(
      user.getCompanyId(), begin, end);
  }
View Full Code Here

    throws PortalException, SystemException {

    String companyId = getUser().getCompanyId();

    if (!hasAdministrator(companyId)) {
      throw new PrincipalException();
    }

    String type = JournalConfig.JOURNAL_CONFIG + "." + portletId;

    getJournalConfig(companyId, portletId);
View Full Code Here

    throws PortalException, SystemException {

    String companyId = getUser().getCompanyId();

    if (!hasAdministrator(companyId)) {
      throw new PrincipalException();
    }

    String type = ShoppingConfig.SHOPPING_CONFIG;

    getShoppingConfig(companyId);
View Full Code Here

    throws PortalException, SystemException {

    String companyId = getUser().getCompanyId();

    if (!hasAdministrator(companyId)) {
      throw new PrincipalException();
    }

    String type = UserConfig.USER_CONFIG;

    getUserConfig(companyId);
View Full Code Here

    UserTracker userTracker =
      UserTrackerUtil.findByPrimaryKey(userTrackerId);

    if (!hasAdministrator(userTracker.getCompanyId())) {
      throw new PrincipalException();
    }

    return UserTrackerPathLocalManagerUtil.getUserTrackerPaths(
      userTrackerId, begin, end);
  }
View Full Code Here

TOP

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

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.