|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PortalAdministration
PortalAdministration Aggregate portal administration functions: - Emails - Registration - Password Generation
Method Summary | |
---|---|
String |
generatePassword()
Generate a unique password |
Map |
getNewLoginInfo(String guid)
|
String |
getPortalURL(javax.portlet.PortletRequest request,
javax.portlet.PortletResponse response,
String path)
Provide a common way to get portal URLs Necessary for generating return URLs for features such as forgotten password. |
User |
lookupUserFromEmail(String email)
Lookup a user given an email address |
void |
putNewLoginInfo(String guid,
Map info)
|
void |
registerUser(String userName,
String password)
Register a new user using all default values |
void |
registerUser(String userName,
String password,
List roles,
List groups,
Map userInfo,
Map rules,
String template)
|
void |
registerUser(String userName,
String password,
List roles,
List groups,
Map userInfo,
Map rules,
String template,
String subsiteFolder)
Registers and creates a new user, assigning userInfo, roles, groups, profiling rules and a folder template. |
void |
removeNewLoginInfo(String guid)
|
void |
sendEmail(javax.portlet.PortletConfig portletConfig,
String emailAddress,
String localizedSubject,
String templatePath,
Map userAttributes)
Helper to send an email to a recipient |
void |
sendEmail(String from,
String subject,
String to,
String text)
Helper to send an email to a recipient without the portal default sender, and without mail merge |
Method Detail |
---|
void registerUser(String userName, String password, List roles, List groups, Map userInfo, Map rules, String template, String subsiteFolder) throws RegistrationException
userName
- Unique user principal identifierpassword
- Password for this userroles
- A list of roles to assign to this usergroups
- A list of groups to assign to this useruserInfo
- Portlet API User Information Attributes name value pairs (PLT.D)rules
- A map of name value pairs of profiling rules.
Well known rules names are 'page' and 'menu'folderTemplate
- The full PSML path name of a folder to be deep
copied as the new user's set of folders, pages, linkssubsite
- The subsite folder to place the new user in
RegistrationException
void registerUser(String userName, String password, List roles, List groups, Map userInfo, Map rules, String template) throws RegistrationException
RegistrationException
void registerUser(String userName, String password) throws RegistrationException
userName
- password
-
RegistrationException
String generatePassword()
void sendEmail(javax.portlet.PortletConfig portletConfig, String emailAddress, String localizedSubject, String templatePath, Map userAttributes) throws AdministrationEmailException
recipient
- the email address of the recipientlocalizedSubject
- the subject of the email as a localized stringmessage
- the email message content
AdministrationEmailException
void sendEmail(String from, String subject, String to, String text) throws AdministrationEmailException
from
- the email address of the sendersubject
- the subject of the emailto
- the recipient email addresstext
- the message text
AdministrationEmailException
User lookupUserFromEmail(String email) throws AdministrationEmailException
email
- Given email address
User
, or throw exception if not found
AdministrationEmailException
String getPortalURL(javax.portlet.PortletRequest request, javax.portlet.PortletResponse response, String path)
request
- The portlet request.response
- The portlet response, used to encode the pathpath
- The relative path to a portal resource
Map getNewLoginInfo(String guid)
guid
- The ID which is passed throughte URL to the user
void putNewLoginInfo(String guid, Map info)
guid
- the ID which is passed through the URL to the user..info
- a Map, info from which will be used to reset the password
the password in this case is NOT encrypted, but this should probably
change if this information is stored on disk... ie a databasevoid removeNewLoginInfo(String guid)
guid
- the ID which will be removed from the storage when the info is no longer valid
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |