public void sendEmail(PortletConfig portletConfig, String emailAddress, String localizedSubject, String localizedTemplatePath, Map<String, String> userAttributes) throws AdministrationEmailException { String from = configuration.getString(PortalConfigurationConstants.EMAIL_SENDER); String subject = localizedSubject; String to = emailAddress; String text = mergeEmailTemplate(portletConfig, userAttributes, "map", localizedTemplatePath); sendEmail(from, subject, to, text); }
public void registerUser( String userName, String password, List<String> roles, List<String> groups, Map<String, String> userInfo, Map<String, String> rules, String folderTemplate) throws RegistrationException { registerUser(userName, password, roles, groups, userInfo, rules, folderTemplate, null); }
public String getUserFolderPath(String userName, Locale locale, String serverName) { try { User user = userManager.getUser(userName); return invokeGetUserFolderPath(user, locale, serverName); } catch (Exception e) { log.error("Unexpected exception getting user folder path for " + userName + ": " + e, e); return null; } }
public String getBaseFolderPath(String userName, Locale locale, String serverName) { try { User user = userManager.getUser(userName); return invokeGetBaseFolderPath(user, locale, serverName); } catch (Exception e) { log.error("Unexpected exception getting base folder path for " + userName + ": " + e, e); return null; } }
userFolderPath = invokeGetUserFolderPath(user, locale, serverName); } else if (subsite != null) { userFolderPath = subsite + Folder.USER_FOLDER + userName;
public void registerUser( String userName, String password, List<String> roles, List<String> groups, Map<String, String> userInfo, Map<String, String> rules, String folderTemplate, String subsite) throws RegistrationException { registerUser(userName, password, roles, groups, userInfo, rules, folderTemplate, subsite, null, null); }