Class Person


  • public class Person
    extends Object
    A Person tag for the DSpaceRoles schema
    Author:
    mikejritter
    • Constructor Detail

      • Person

        protected Person()
        Default constructor for JAXB
      • Person

        public Person​(org.dspace.eperson.EPerson ePerson)
        Create a Person from an EPerson
        Parameters:
        ePerson - the EPerson to 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)