public class FlowEPersonUtils
extends java.lang.Object
| Constructor and Description |
|---|
FlowEPersonUtils() |
| Modifier and Type | Method and Description |
|---|---|
static FlowResult |
processAddEPerson(Context context,
org.apache.cocoon.environment.Request request,
java.util.Map objectModel)
Add a new eperson.
|
static FlowResult |
processDeleteEPeople(Context context,
java.lang.String[] epeopleIDs)
Delete the epeople specified by the epeopleIDs parameter.
|
static FlowResult |
processEditEPerson(Context context,
org.apache.cocoon.environment.Request request,
java.util.Map ObjectModel,
int epersonID)
Edit an eperson's metadata, the email address, first name, and last name are all
required.
|
static FlowResult |
processLoginAs(Context context,
java.util.Map objectModel,
int epersonID)
Log this user in as another user.
|
static FlowResult |
processResetPassword(Context context,
int epersonID)
Send the user a forgot password email message.
|
public static FlowResult processAddEPerson(Context context, org.apache.cocoon.environment.Request request, java.util.Map objectModel) throws java.sql.SQLException, AuthorizeException
context - The current DSpace contextrequest - The HTTP request parametersobjectModel - Cocoon's object modeljava.sql.SQLExceptionAuthorizeExceptionpublic static FlowResult processEditEPerson(Context context, org.apache.cocoon.environment.Request request, java.util.Map ObjectModel, int epersonID) throws java.sql.SQLException, AuthorizeException
context - The current DSpace contextrequest - The HTTP request parametersObjectModel - Cocoon's object modelepersonID - The unique id of the eperson being edited.java.sql.SQLExceptionAuthorizeExceptionpublic static FlowResult processResetPassword(Context context, int epersonID) throws java.io.IOException, javax.mail.MessagingException, java.sql.SQLException, AuthorizeException
context - The current DSpace contextepersonID - The unique id of the eperson being edited.java.io.IOExceptionjavax.mail.MessagingExceptionjava.sql.SQLExceptionAuthorizeExceptionpublic static FlowResult processLoginAs(Context context, java.util.Map objectModel, int epersonID) throws java.sql.SQLException
context - The current DSpace context.objectModel - Object model to obtain the HTTP request from.epersonID - The epersonID of the person to login as.java.sql.SQLExceptionpublic static FlowResult processDeleteEPeople(Context context, java.lang.String[] epeopleIDs) throws java.lang.NumberFormatException, java.sql.SQLException, AuthorizeException, EPersonDeletionException
context - The current DSpace contextepeopleIDs - The unique id of the eperson being edited.java.lang.NumberFormatExceptionjava.sql.SQLExceptionAuthorizeExceptionEPersonDeletionExceptionCopyright © 2018 DuraSpace. All Rights Reserved.