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