Examples of PrincipalException


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

Examples of com.liferay.portal.auth.PrincipalException

    throws PortalException, SystemException {

    User user = getUser();

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

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

Examples of com.liferay.portal.auth.PrincipalException

    throws PortalException, SystemException {

    User user = getUser();

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

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

Examples of com.liferay.portal.auth.PrincipalException

    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

Examples of com.liferay.portal.auth.PrincipalException

    throws PortalException, SystemException {

    String companyId = getUser().getCompanyId();

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

    String type = ShoppingConfig.SHOPPING_CONFIG;

    getShoppingConfig(companyId);
View Full Code Here

Examples of com.liferay.portal.auth.PrincipalException

    throws PortalException, SystemException {

    String companyId = getUser().getCompanyId();

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

    String type = UserConfig.USER_CONFIG;

    getUserConfig(companyId);
View Full Code Here

Examples of com.liferay.portal.auth.PrincipalException

    UserTracker userTracker =
      UserTrackerUtil.findByPrimaryKey(userTrackerId);

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

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

Examples of com.liferay.portal.security.auth.PrincipalException

  public static void check(
      PermissionChecker permissionChecker, long groupId, String actionId)
    throws PortalException {

    if (!contains(permissionChecker, groupId, actionId)) {
      throw new PrincipalException();
    }
  }
View Full Code Here

Examples of com.liferay.portal.security.auth.PrincipalException

      PermissionChecker permissionChecker, Location location,
      String actionId)
    throws PortalException {

    if (!contains(permissionChecker, location, actionId)) {
      throw new PrincipalException();
    }
  }
View Full Code Here

Examples of com.liferay.portal.security.auth.PrincipalException

  public static void check(
      PermissionChecker permissionChecker, long locationId, String actionId)
    throws PortalException, SystemException {

    if (!contains(permissionChecker, locationId, actionId)) {
      throw new PrincipalException();
    }
  }
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.