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) |
EPerson |
create(Context context)
Create a new eperson
|
List<EPerson> |
findAll(Context context,
int sortField)
Find all the epeople that match a particular query
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) |
EPerson |
findByNetid(Context context,
String netId)
Find the eperson by their netid.
|
List<EPerson> |
findEPeopleWithSubscription(Context context) |
List<EPerson> |
findNotActiveSince(Context context,
Date 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.
|
addMetadata, addMetadata, addMetadata, addMetadata, addMetadata, addMetadata, addMetadata, addMetadata, clearMetadata, delete, find, getAdminObject, getIdentifiers, getMetadata, getMetadata, getMetadata, getMetadata, getMetadataByMetadataString, getMetadataFirstValue, getName, getParentObject, getSupportsTypeConstant, getTypeText, removeMetadataValues, setMetadataSingleValue, update, updateLastModifiedfindByIdOrLegacyId, findByLegacyId, getSupportsTypeConstantEPerson findByEmail(Context context, String email) throws SQLException
null if none such exists.SQLExceptionEPerson findByNetid(Context context, String netId) throws SQLException
context - DSpace contextnetId - Network IDnullSQLExceptionList<EPerson> search(Context context, String query) throws SQLException
context - DSpace contextquery - The search stringSQLExceptionList<EPerson> search(Context context, String query, int offset, int limit) throws SQLException
context - DSpace contextquery - The search stringoffset - Inclusive offsetlimit - Maximum number of matches returnedSQLExceptionint searchResultCount(Context context, String query) throws SQLException
context - DSpace contextquery - The search stringSQLExceptionList<EPerson> findAll(Context context, int sortField) throws SQLException
IDLASTNAMEEMAILNETIDSQLExceptionEPerson create(Context context) throws SQLException, AuthorizeException
context - DSpace context objectSQLExceptionAuthorizeExceptionvoid setPassword(EPerson ePerson, String password)
password - the new password.void setPasswordHash(EPerson ePerson, PasswordHash password)
password - hashed password, or null to set row data to NULL.PasswordHash getPasswordHash(EPerson ePerson)
boolean checkPassword(Context context, EPerson ePerson, String attempt)
attempt - the password attempt@Deprecated void setMetadata(Context context, EPerson ePerson, String field, String value) throws SQLException
field - the name of the metadata field to setvalue - value to set the field toIllegalArgumentException - if the requested metadata field doesn't existSQLExceptionList<EPerson> findUnsalted(Context context) throws SQLException
context - the dspace contextSQLExceptionList<EPerson> findNotActiveSince(Context context, Date date) throws SQLException
SQLExceptionList<String> getDeleteConstraints(Context context, EPerson ePerson) throws SQLException
SQLExceptionList<EPerson> findByGroups(Context c, Set<Group> groups) throws SQLException
SQLExceptionList<EPerson> findEPeopleWithSubscription(Context context) throws SQLException
SQLExceptionint countTotal(Context context) throws SQLException
SQLExceptionCopyright © 2022 LYRASIS. All rights reserved.