153154155156157158159160161162163
User user = getUser(); PollsQuestion question = getQuestion(questionId); if (!question.getCompanyId().equals(user.getCompanyId())) { throw new PrincipalException(); } PollsQuestionLocalManagerUtil.vote( user.getUserId(), questionId, choiceId); }
45464748495051525354
throws PortalException, SystemException { User user = getUser(); if (!hasAdministrator(user.getCompanyId())) { throw new PrincipalException(); } UserTrackerLocalManagerUtil.deleteUserTracker(userTrackerId); }
5758596061626364656667
throws PortalException, SystemException { User user = getUser(); if (!hasAdministrator(user.getCompanyId())) { throw new PrincipalException(); } return UserTrackerLocalManagerUtil.getUserTrackers( user.getCompanyId(), begin, end); }
252253254255256257258259260261262
throws PortalException, SystemException { String companyId = getUser().getCompanyId(); if (!hasAdministrator(companyId)) { throw new PrincipalException(); } String type = JournalConfig.JOURNAL_CONFIG + "." + portletId; getJournalConfig(companyId, portletId);
274275276277278279280281282283284
throws PortalException, SystemException { String companyId = getUser().getCompanyId(); if (!hasAdministrator(companyId)) { throw new PrincipalException(); } String type = ShoppingConfig.SHOPPING_CONFIG; getShoppingConfig(companyId);
296297298299300301302303304305306
throws PortalException, SystemException { String companyId = getUser().getCompanyId(); if (!hasAdministrator(companyId)) { throw new PrincipalException(); } String type = UserConfig.USER_CONFIG; getUserConfig(companyId);
4647484950515253545556
UserTracker userTracker = UserTrackerUtil.findByPrimaryKey(userTrackerId); if (!hasAdministrator(userTracker.getCompanyId())) { throw new PrincipalException(); } return UserTrackerPathLocalManagerUtil.getUserTrackerPaths( userTrackerId, begin, end); }
1213141516171819
public static void check( PermissionChecker permissionChecker, long groupId, String actionId) throws PortalException { if (!contains(permissionChecker, groupId, actionId)) { throw new PrincipalException(); } }
1718192021222324
PermissionChecker permissionChecker, Location location, String actionId) throws PortalException { if (!contains(permissionChecker, location, actionId)) { throw new PrincipalException(); } }
2627282930313233
public static void check( PermissionChecker permissionChecker, long locationId, String actionId) throws PortalException, SystemException { if (!contains(permissionChecker, locationId, actionId)) { throw new PrincipalException(); } }