@Entity public class EPerson extends DSpaceObject implements DSpaceObjectLegacySupport
| Modifier and Type | Field and Description |
|---|---|
static int |
EMAIL
The e-mail field (for sorting)
|
protected EPersonService |
ePersonService |
static int |
ID
The e-mail field (for sorting)
|
static int |
LANGUAGE
The e-mail field (for sorting)
|
static int |
LASTNAME
The last name (for sorting)
|
static int |
NETID
The netid field (for sorting)
|
id| Modifier | Constructor and Description |
|---|---|
protected |
EPerson()
Protected constructor, create object using:
EPersonService.create(Context) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLogIn()
Can the user log in?
|
boolean |
equals(Object obj)
Return true if this object equals obj, false otherwise.
|
String |
getEmail()
Get the e-person's email address
|
String |
getFirstName()
Get the eperson's first name.
|
String |
getFullName()
Get the e-person's full name, combining first and last name in a
displayable string.
|
List<Group> |
getGroups() |
String |
getLanguage()
Get the e-person's language
|
Date |
getLastActive()
Get the EPerson's last-active stamp.
|
String |
getLastName()
Get the eperson's last name.
|
Integer |
getLegacyId() |
String |
getName() |
String |
getNetid()
Get the e-person's netid
|
boolean |
getRequireCertificate()
Get require certificate or not
|
boolean |
getSelfRegistered()
Is the user self-registered?
|
int |
getType()
return type found in Constants
|
int |
hashCode()
Return a hash code for this object.
|
void |
setCanLogIn(boolean login)
Indicate whether the user can log in
|
void |
setEmail(String s)
Set the EPerson's email
|
void |
setFirstName(Context context,
String firstname)
Set the eperson's first name
|
void |
setLanguage(Context context,
String language)
Set the EPerson's language.
|
void |
setLastActive(Date when)
Stamp the EPerson's last-active date.
|
void |
setLastName(Context context,
String lastname)
Set the eperson's last name
|
void |
setNetid(String netid)
Set the EPerson's netid
|
void |
setRequireCertificate(boolean isrequired)
Set require cert yes/no
|
void |
setSelfRegistered(boolean sr)
Indicate whether the user self-registered
|
addDetails, addHandle, addMetadata, clearDetails, clearModified, getDetails, getHandle, getHandles, getID, getMetadata, getResourcePolicies, isMetadataModified, isModified, removeMetadata, removeMetadata, setMetadata, setMetadataModified, setModifiedpublic static final int EMAIL
public static final int LASTNAME
public static final int ID
public static final int NETID
public static final int LANGUAGE
protected transient EPersonService ePersonService
protected EPerson()
EPersonService.create(Context)public Integer getLegacyId()
getLegacyId in interface DSpaceObjectLegacySupportpublic boolean equals(Object obj)
public int hashCode()
public String getLanguage()
public void setLanguage(Context context, String language) throws SQLException
language - language codeSQLExceptionpublic String getEmail()
public void setEmail(String s)
s - the new emailpublic String getNetid()
public void setNetid(String netid)
netid - the new netidpublic String getFullName()
public String getFirstName()
public void setFirstName(Context context, String firstname) throws SQLException
firstname - the person's first nameSQLExceptionpublic String getLastName()
public void setLastName(Context context, String lastname) throws SQLException
lastname - the person's last nameSQLExceptionpublic void setCanLogIn(boolean login)
login - boolean yes/nopublic boolean canLogIn()
public void setRequireCertificate(boolean isrequired)
isrequired - boolean yes/nopublic boolean getRequireCertificate()
public void setSelfRegistered(boolean sr)
sr - boolean yes/nopublic boolean getSelfRegistered()
public void setLastActive(Date when)
when - latest activity timestamp, or null to clear.public Date getLastActive()
public int getType()
getType in class DSpaceObjectpublic String getName()
getName in class DSpaceObjectCopyright © 2016 DuraSpace. All rights reserved.