private static WebRoleManagerImpl getManager() { if (s_manager == null) { s_manager = new WebRoleManagerImpl(GroupFactory.getInstance(), UserFactory.getInstance()); } return s_manager; }
@Override public void run() { UserManager userFactory = UserFactory.getInstance(); try { final String emailAddress = userFactory.getEmail(userId); if (emailAddress != null && !emailAddress.isEmpty()) { options.setMailTo(emailAddress); } } catch (final Exception e) { LOG.error("An error occurred while attempting to determine and set the destination email address for user {}", userId, e); } options.setInstanceId(reportId + " " + userId); } });
@Override public void run() { UserManager userFactory = UserFactory.getInstance(); try { final String emailAddress = userFactory.getEmail(userId); if (emailAddress != null && !emailAddress.isEmpty()) { options.setMailTo(emailAddress); } } catch (final Exception e) { LOG.error("An error occurred while attempting to determine and set the destination email address for user {}", userId, e); } options.setInstanceId(reportId + " " + userId); } });
try { UserFactory.init(); UserManager userManager = UserFactory.getInstance();