|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jetspeed.administration.PortalAdministrationImpl
public class PortalAdministrationImpl
PortalAdministrationImpl Implements aggregate portal administration functions: - Emails - Registration - Password Generation -
Field Summary | |
---|---|
protected String |
adminUser
default administrative user |
protected AdminUtil |
adminUtil
|
protected org.apache.commons.configuration.Configuration |
config
administration services |
protected List |
defaultGroups
list of default groups for a registered user |
protected List |
defaultRoles
list of default roles for a registered user |
protected Map |
defaultRules
map of default profiling rules for a registered user |
protected String |
folderTemplate
name of PSML Folder Template to clone from when registering new user |
(package private) Map |
forgottenPasswordData
|
protected org.apache.jetspeed.security.GroupManager |
groupManager
|
private static org.apache.commons.logging.Log |
log
|
protected org.springframework.mail.javamail.JavaMailSender |
mailSender
|
protected org.apache.jetspeed.page.PageManager |
pageManager
|
private org.apache.jetspeed.prefs.PreferencesProvider |
preferences
|
protected org.apache.jetspeed.profiler.Profiler |
profiler
|
protected org.apache.jetspeed.security.RoleManager |
roleManager
|
private static String |
USER_NOT_FOUND_FROM_EMAIL
|
protected org.apache.jetspeed.security.UserManager |
userManager
|
protected org.apache.velocity.app.VelocityEngine |
velocityEngine
|
Constructor Summary | |
---|---|
PortalAdministrationImpl(org.apache.jetspeed.security.UserManager userManager,
org.apache.jetspeed.security.RoleManager roleManager,
org.apache.jetspeed.security.GroupManager groupManager,
org.apache.jetspeed.page.PageManager pageManager,
org.apache.jetspeed.prefs.PreferencesProvider preferences,
org.apache.jetspeed.profiler.Profiler profiler,
org.springframework.mail.javamail.JavaMailSender mailSender,
org.apache.velocity.app.VelocityEngine velocityEngine)
|
Method Summary | |
---|---|
String |
generatePassword()
|
Map |
getNewLoginInfo(String guid)
|
String |
getPortalURL(javax.portlet.PortletRequest request,
javax.portlet.PortletResponse response,
String path)
Helper for admin portlets to generate portal urls |
org.apache.jetspeed.security.User |
lookupUserFromEmail(String email)
|
String |
mergeEmailTemplate(javax.portlet.PortletConfig portletConfig,
Map attributes,
String attributesName,
String template)
|
void |
putNewLoginInfo(String guid,
Map info)
|
void |
registerUser(String userName,
String password)
|
void |
registerUser(String userName,
String password,
List roles,
List groups,
Map userInfo,
Map rules,
String folderTemplate)
|
void |
registerUser(String userName,
String password,
List roles,
List groups,
Map userInfo,
Map rules,
String folderTemplate,
String subsite)
|
void |
removeNewLoginInfo(String guid)
|
void |
sendEmail(javax.portlet.PortletConfig portletConfig,
String emailAddress,
String localizedSubject,
String localizedTemplatePath,
Map userAttributes)
|
void |
sendEmail(String from,
String subject,
String to,
String text)
|
void |
start()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final org.apache.commons.logging.Log log
protected org.apache.commons.configuration.Configuration config
protected org.apache.jetspeed.security.UserManager userManager
protected org.apache.jetspeed.security.RoleManager roleManager
protected org.apache.jetspeed.security.GroupManager groupManager
protected org.apache.jetspeed.page.PageManager pageManager
private org.apache.jetspeed.prefs.PreferencesProvider preferences
protected org.apache.jetspeed.profiler.Profiler profiler
protected org.springframework.mail.javamail.JavaMailSender mailSender
protected org.apache.velocity.app.VelocityEngine velocityEngine
protected AdminUtil adminUtil
protected List defaultRoles
protected List defaultGroups
protected Map defaultRules
protected String folderTemplate
protected String adminUser
private static final String USER_NOT_FOUND_FROM_EMAIL
Map forgottenPasswordData
Constructor Detail |
---|
public PortalAdministrationImpl(org.apache.jetspeed.security.UserManager userManager, org.apache.jetspeed.security.RoleManager roleManager, org.apache.jetspeed.security.GroupManager groupManager, org.apache.jetspeed.page.PageManager pageManager, org.apache.jetspeed.prefs.PreferencesProvider preferences, org.apache.jetspeed.profiler.Profiler profiler, org.springframework.mail.javamail.JavaMailSender mailSender, org.apache.velocity.app.VelocityEngine velocityEngine)
Method Detail |
---|
public void start()
public void registerUser(String userName, String password) throws org.apache.jetspeed.administration.RegistrationException
registerUser
in interface org.apache.jetspeed.administration.PortalAdministration
org.apache.jetspeed.administration.RegistrationException
public void registerUser(String userName, String password, List roles, List groups, Map userInfo, Map rules, String folderTemplate) throws org.apache.jetspeed.administration.RegistrationException
registerUser
in interface org.apache.jetspeed.administration.PortalAdministration
org.apache.jetspeed.administration.RegistrationException
public void registerUser(String userName, String password, List roles, List groups, Map userInfo, Map rules, String folderTemplate, String subsite) throws org.apache.jetspeed.administration.RegistrationException
registerUser
in interface org.apache.jetspeed.administration.PortalAdministration
org.apache.jetspeed.administration.RegistrationException
public String generatePassword()
generatePassword
in interface org.apache.jetspeed.administration.PortalAdministration
public void sendEmail(javax.portlet.PortletConfig portletConfig, String emailAddress, String localizedSubject, String localizedTemplatePath, Map userAttributes) throws org.apache.jetspeed.administration.AdministrationEmailException
sendEmail
in interface org.apache.jetspeed.administration.PortalAdministration
org.apache.jetspeed.administration.AdministrationEmailException
public void sendEmail(String from, String subject, String to, String text) throws org.apache.jetspeed.administration.AdministrationEmailException
sendEmail
in interface org.apache.jetspeed.administration.PortalAdministration
from
- subject
- to
- text
-
AdministrationEmailException
public String mergeEmailTemplate(javax.portlet.PortletConfig portletConfig, Map attributes, String attributesName, String template) throws org.apache.jetspeed.administration.AdministrationEmailException
org.apache.jetspeed.administration.AdministrationEmailException
public org.apache.jetspeed.security.User lookupUserFromEmail(String email) throws org.apache.jetspeed.administration.AdministrationEmailException
lookupUserFromEmail
in interface org.apache.jetspeed.administration.PortalAdministration
org.apache.jetspeed.administration.AdministrationEmailException
public String getPortalURL(javax.portlet.PortletRequest request, javax.portlet.PortletResponse response, String path)
getPortalURL
in interface org.apache.jetspeed.administration.PortalAdministration
public Map getNewLoginInfo(String guid)
getNewLoginInfo
in interface org.apache.jetspeed.administration.PortalAdministration
public void putNewLoginInfo(String guid, Map info)
putNewLoginInfo
in interface org.apache.jetspeed.administration.PortalAdministration
public void removeNewLoginInfo(String guid)
removeNewLoginInfo
in interface org.apache.jetspeed.administration.PortalAdministration
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |