Package org.dspace.pack.bagit.xml.roles
Class Person
- java.lang.Object
-
- org.dspace.pack.bagit.xml.roles.Person
-
public class Person extends Object
A Person tag for theDSpaceRolesschema- Author:
- mikejritter
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCanLogin()For the xml, a tag is omitted without a body so an empty String is stored if the person can log in.StringgetEmail()StringgetFirstName()StringgetId()StringgetLanguage()StringgetLastName()StringgetNetId()StringgetRequiredCertificate()For the xml, a tag is omitted without a body so an empty String is stored if the person is requires a certificate.StringgetSelfRegistered()For the xml, a tag is omitted without a body so an empty String is stored if the person is self registered.
-
-
-
Constructor Detail
-
Person
protected Person()
Default constructor for JAXB
-
Person
public Person(org.dspace.eperson.EPerson ePerson)
Create aPersonfrom anEPerson- Parameters:
ePerson- theEPersonto use
-
-
Method Detail
-
getId
public String getId()
- Returns:
- the id, equivalent to
DSpaceObject.getID()
-
getEmail
public String getEmail()
- Returns:
- the email of the person, equivalent to
EPerson.getEmail()
-
getNetId
public String getNetId()
- Returns:
- the netid of the person, equivalent to
EPerson.getNetid()
-
getFirstName
public String getFirstName()
- Returns:
- the first name of the person, equivalent to
EPerson.getFirstName()
-
getLastName
public String getLastName()
- Returns:
- the last name of the person, equivalent to
EPerson.getLastName()
-
getLanguage
public String getLanguage()
- Returns:
- the language of the person, equivalent to
EPerson.getLanguage()
-
getCanLogin
public String getCanLogin()
For the xml, a tag is omitted without a body so an empty String is stored if the person can log in.- Returns:
- a non empty String if the person can log in (
EPerson.canLogIn()is true)
-
getSelfRegistered
public String getSelfRegistered()
For the xml, a tag is omitted without a body so an empty String is stored if the person is self registered.- Returns:
- a non empty String if the person can log in (
EPerson.getSelfRegistered()is true)
-
getRequiredCertificate
public String getRequiredCertificate()
For the xml, a tag is omitted without a body so an empty String is stored if the person is requires a certificate.- Returns:
- a non empty String if the person can log in (
EPerson.getRequireCertificate()is true)
-
-