private void setBannedStatus() { // check the ban status and store in the banned field if (currentUser != null) { try { banned = MBBanLocalServiceUtil.hasBan(scopeGroupId, Long.valueOf(currentUser)); } catch (final SystemException e) { LOG.error("Cannot check ban status for user " + currentUser, e); e.printStackTrace(); } } }
@Override public LinkedList<String> getInternalIdeaUsersToEmail(Idea idea) { LinkedList<String> toEmail = new LinkedList<String>(); // toEmail.add(idea.getIdeaPerson().getEmail()); try { toEmail = getUserGroupRoleByRoleAndGroup(idea, toEmail, IdeaServiceConstants.ROLE_NAME_COMMUNITY_INNOVATIONSSLUSSEN); toEmail = getUserGroupRoleByRoleAndGroup(idea, toEmail, IdeaServiceConstants.ROLE_NAME_COMMUNITY_IDEA_TRANSPORTER); } catch (PortalException e) { e.printStackTrace(); } catch (SystemException e) { e.printStackTrace(); } return toEmail; }
public static boolean usesScreennameOnTori( final com.liferay.portal.model.User liferayUser) { boolean result = false; try { if (liferayUser != null) { result = ExpandoValueLocalServiceUtil.getData( liferayUser.getCompanyId(), com.liferay.portal.model.User.class.getName(), "CUSTOM_FIELDS", SCREENNAME_EXPANDO_COLUMN_NAME, liferayUser.getUserId(), false); } } catch (PortalException e) { e.printStackTrace(); } catch (SystemException e) { e.printStackTrace(); } return result; }
e1.printStackTrace(); } catch (SystemException e1) { e1.printStackTrace(); e2.printStackTrace(); } catch (SystemException e2) { e2.printStackTrace(); e.printStackTrace();
e1.printStackTrace(); } catch (SystemException e1) { e1.printStackTrace(); e2.printStackTrace(); } catch (SystemException e2) { e2.printStackTrace(); e.printStackTrace();
e1.printStackTrace(); } catch (SystemException e1) { e1.printStackTrace(); e2.printStackTrace(); } catch (SystemException e2) { e2.printStackTrace(); e.printStackTrace();
e1.printStackTrace(); } catch (SystemException e1) { e1.printStackTrace(); e2.printStackTrace(); } catch (SystemException e2) { e2.printStackTrace(); e.printStackTrace();
private void addAutoComment(Idea idea, long classPK, String message) { try { String threadView = PropsKeys.DISCUSSION_THREAD_VIEW; MBMessageDisplay messageDisplay = mbMessageLocalService.getDiscussionMessageDisplay( idea.getUserId(), idea.getGroupId(), IdeaContent.class.getName(), classPK, WorkflowConstants.STATUS_ANY, threadView); MBThread thread = messageDisplay.getThread(); long threadId = thread.getThreadId(); long rootThreadId = thread.getRootMessageId(); ServiceContext serviceContext = new ServiceContext(); long userId = Long.valueOf(autoCommentDefaultUserId); mbMessageLocalService.addDiscussionMessage(userId, autoCommentDefaultUserId, idea.getGroupId(), IdeaContent.class.getName(), idea.getIdeaContentPrivate().getId(), threadId, rootThreadId, autoCommentDefaultSubject, message, serviceContext); } catch (PortalException e) { e.printStackTrace(); } catch (SystemException e) { e.printStackTrace(); } }
.intValue(); } catch (SystemException e) { e.printStackTrace();
e.printStackTrace(); } catch (PortalException e) { e.printStackTrace();