/** * Set the EPerson's language. Value is expected to be a Unix/POSIX * Locale specification of the form {language} or {language}_{territory}, * e.g. "en", "en_US", "pt_BR" (the latter is Brazilian Portugese). * * @param context The relevant DSpace Context. * @param language language code * @throws SQLException An exception that provides information on a database access error or other errors. */ public void setLanguage(Context context, String language) throws SQLException { getePersonService().setMetadataSingleValue(context, this, "eperson", "language", null, null, language); }
/** * Set the eperson's last name * * @param context The relevant DSpace Context. * @param lastname the person's last name * @throws SQLException An exception that provides information on a database access error or other errors. */ public void setLastName(Context context, String lastname) throws SQLException { getePersonService().setMetadataSingleValue(context, this, "eperson", "lastname", null, null, lastname); setModified(); }
/** * Set the eperson's first name * * @param context The relevant DSpace Context. * @param firstname the person's first name * @throws SQLException An exception that provides information on a database access error or other errors. */ public void setFirstName(Context context, String firstname) throws SQLException { getePersonService().setMetadataSingleValue(context, this, "eperson", "firstname", null, null, firstname); setModified(); }