| java.lang.Object org.dspace.app.xmlui.aspect.administrative.FlowEPersonUtils
FlowEPersonUtils | public class FlowEPersonUtils (Code) | | Utility methods to processes actions on EPeople. These methods are used
exclusivly from the administrative flow scripts.
author: scott phillips |
Method Summary | |
public static FlowResult | processAddEPerson(Context context, Request request, Map objectModel) Add a new eperson. | public static FlowResult | processDeleteEPeople(Context context, String[] epeopleIDs) Delete the epeople specified by the epeopleIDs parameter. | public static FlowResult | processEditEPerson(Context context, Request request, Map ObjectModel, int epersonID) Edit an eperson's metadata, the email address, first name, and last name are all
required. | public static FlowResult | processResetPassword(Context context, int epersonID) Send the user a forgot password email message. |
processAddEPerson | public static FlowResult processAddEPerson(Context context, Request request, Map objectModel) throws SQLException, AuthorizeException(Code) | | Add a new eperson. This method will check that the email address,
first name, and last name are non empty. Also a check is preformed
to see if the requested email address is allready in use by another
user.
Parameters: context - The current DSpace context Parameters: request - The HTTP request parameters Parameters: objectModel - Cocoon's object model A process result's object. |
processEditEPerson | public static FlowResult processEditEPerson(Context context, Request request, Map ObjectModel, int epersonID) throws SQLException, AuthorizeException(Code) | | Edit an eperson's metadata, the email address, first name, and last name are all
required. The user's email address can be updated but it must remain unique, if
the email address allready exists then the an error is produced.
Parameters: context - The current DSpace context Parameters: request - The HTTP request parameters Parameters: objectModel - Cocoon's object model Parameters: epersonID - The unique id of the eperson being edited. A process result's object. |
processResetPassword | public static FlowResult processResetPassword(Context context, int epersonID) throws IOException, MessagingException, SQLException, AuthorizeException(Code) | | Send the user a forgot password email message. The message will
contain a token that the user can use to login and pick a new password.
Parameters: context - The current DSpace context Parameters: epersonID - The unique id of the eperson being edited. A process result's object. |
|
|