public interface EPersonService extends DSpaceObjectService<EPerson>, DSpaceObjectLegacySupportService<EPerson>
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkPassword(Context context,
EPerson ePerson,
String attempt)
Check EPerson's password.
|
int |
countTotal(Context context)
Count all accounts.
|
EPerson |
create(Context context)
Create a new eperson
|
List<EPerson> |
findAll(Context context,
int sortField)
Deprecated.
use the paginated method. Find all the epeople in a specific order
|
List<EPerson> |
findAll(Context context,
int sortField,
int pageSize,
int offset)
Find all the epeople in a specific order
ID
LASTNAME
EMAIL
NETID
|
EPerson |
findByEmail(Context context,
String email)
Find the eperson by their email address.
|
List<EPerson> |
findByGroups(Context c,
Set<Group> groups)
Retrieve all accounts which belong to at least one of the specified groups.
|
EPerson |
findByNetid(Context context,
String netId)
Find the eperson by their netid.
|
List<EPerson> |
findEPeopleWithSubscription(Context context)
Retrieve all accounts which are subscribed to receive information about new items.
|
List<EPerson> |
findNotActiveSince(Context context,
Date date)
Retrieve all accounts which have not logged in since the specified date
|
List<EPerson> |
findUnsalted(Context context)
Retrieve all accounts which have a password but do not have a digest algorithm
|
List<String> |
getDeleteConstraints(Context context,
EPerson ePerson)
Check for presence of EPerson in tables that have constraints on
EPersons.
|
PasswordHash |
getPasswordHash(EPerson ePerson)
Return the EPerson's password hash.
|
List<EPerson> |
search(Context context,
String query)
Find the epeople that match the search query across firstname, lastname or email.
|
List<EPerson> |
search(Context context,
String query,
int offset,
int limit)
Find the epeople that match the search query across firstname, lastname or email.
|
int |
searchResultCount(Context context,
String query)
Returns the total number of epeople returned by a specific query, without the overhead
of creating the EPerson objects to store the results.
|
void |
setMetadata(Context context,
EPerson ePerson,
String field,
String value)
Deprecated.
|
void |
setPassword(EPerson ePerson,
String password)
Set the EPerson's password.
|
void |
setPasswordHash(EPerson ePerson,
PasswordHash password)
Set the EPerson's password hash.
|
addAndShiftRightMetadata, addMetadata, addMetadata, addMetadata, addMetadata, addMetadata, addMetadata, addMetadata, addMetadata, clearMetadata, delete, find, getAdminObject, getIdentifiers, getMetadata, getMetadata, getMetadata, getMetadata, getMetadataByMetadataString, getMetadataFirstValue, getName, getParentObject, getSupportsTypeConstant, getTypeText, moveMetadata, removeMetadataValues, replaceMetadata, setMetadataSingleValue, update, updateLastModifiedfindByIdOrLegacyId, findByLegacyId, getSupportsTypeConstantEPerson findByEmail(Context context, String email) throws SQLException
context - The relevant DSpace Context.email - EPerson's email to search bynull if none such exists.SQLException - An exception that provides information on a database access error or other errors.EPerson findByNetid(Context context, String netId) throws SQLException
context - The relevant DSpace Context.netId - Network IDnullSQLException - An exception that provides information on a database access error or other errors.List<EPerson> search(Context context, String query) throws SQLException
context - The relevant DSpace Context.query - The search stringSQLException - An exception that provides information on a database access error or other errors.List<EPerson> search(Context context, String query, int offset, int limit) throws SQLException
context - The relevant DSpace Context.query - The search stringoffset - Inclusive offsetlimit - Maximum number of matches returnedSQLException - An exception that provides information on a database access error or other errors.int searchResultCount(Context context, String query) throws SQLException
context - The relevant DSpace Context.query - The search stringSQLException - An exception that provides information on a database access error or other errors.@Deprecated List<EPerson> findAll(Context context, int sortField) throws SQLException
IDLASTNAMEEMAILNETIDcontext - The relevant DSpace Context.sortField - which field to sort EPersons bySQLException - An exception that provides information on a database access error or other errors.List<EPerson> findAll(Context context, int sortField, int pageSize, int offset) throws SQLException
IDLASTNAMEEMAILNETIDcontext - The relevant DSpace Context.sortField - which field to sort EPersons bypageSize - how many results returnoffset - the position of the first result to returnSQLException - An exception that provides information on a database access error or other errors.EPerson create(Context context) throws SQLException, AuthorizeException
context - The relevant DSpace Context.SQLException - An exception that provides information on a database access error or other errors.AuthorizeException - Exception indicating the current user of the context does not have permission
to perform a particular action.void setPassword(EPerson ePerson, String password)
ePerson - EPerson whose password we want to set.password - the new password.void setPasswordHash(EPerson ePerson, PasswordHash password)
ePerson - EPerson whose password hash we want to set.password - hashed password, or null to set row data to NULL.PasswordHash getPasswordHash(EPerson ePerson)
ePerson - EPerson whose password hash we want to get.boolean checkPassword(Context context, EPerson ePerson, String attempt)
context - The relevant DSpace Context.ePerson - EPerson whose password we want to checkattempt - the password attempt@Deprecated void setMetadata(Context context, EPerson ePerson, String field, String value) throws SQLException
context - The relevant DSpace Context.ePerson - EPerson whose metadata we want to set.field - Metadata field we want to set (e.g. "phone").value - Metadata value we want to setSQLException - if the requested metadata field doesn't existList<EPerson> findUnsalted(Context context) throws SQLException
context - The relevant DSpace Context.SQLException - An exception that provides information on a database access error or other errors.List<EPerson> findNotActiveSince(Context context, Date date) throws SQLException
context - The relevant DSpace Context.date - from which dateSQLException - An exception that provides information on a database access error or other errors.List<String> getDeleteConstraints(Context context, EPerson ePerson) throws SQLException
context - The relevant DSpace Context.ePerson - EPerson to findSQLException - An exception that provides information on a database access error or other errors.List<EPerson> findByGroups(Context c, Set<Group> groups) throws SQLException
c - The relevant DSpace Context.groups - set of eperson groupsSQLException - An exception that provides information on a database access error or other errors.List<EPerson> findEPeopleWithSubscription(Context context) throws SQLException
context - The relevant DSpace Context.SQLException - An exception that provides information on a database access error or other errors.int countTotal(Context context) throws SQLException
context - The relevant DSpace Context.SQLException - An exception that provides information on a database access error or other errors.Copyright © 2019 DuraSpace. All rights reserved.