Package org.dspace.eperson

Examples of org.dspace.eperson.EPerson.update()


     
      eperson.setLastName(last);
      eperson.setFirstName(first);
      eperson.setLanguage(language);
      eperson.setPassword(pw);
      eperson.update();
     
      admins.addMember(eperson);
      admins.update();
     
      context.complete();
View Full Code Here


      eperson.setLastName(lname);
    eperson.setCanLogIn(true);

    // Commit the new eperson
    AuthenticationManager.initEPerson(context, request, eperson);
    eperson.update();
    context.commit();

    // Turn authorizations back on.
    context.restoreAuthSystemState();
View Full Code Here

                                if (ConfigurationManager.getBooleanProperty(METSManifest.CONFIG_METS_PREFIX + configName + ".ingest.createSubmitter"))
                                {
                                    sub = EPerson.create(context);
                                    sub.setEmail(value);
                                    sub.setCanLogIn(false);
                                    sub.update();
                                }
                                else
                                {
                                    log.warn("Ignoring unknown Submitter=" + value + " in AIP Tech MD, no matching EPerson and 'mets.dspaceAIP.ingest.createSubmitter' is false in dspace.cfg.");
                                }
View Full Code Here

        newUser.setLastName("Doe");
        newUser.setEmail(createdEmail);
        newUser.setCanLogIn(true);
        newUser.setLanguage(I18nUtil.getDefaultLocale().getLanguage());
        // Ensure EPerson is committed
        newUser.update();
        context.commit();
       
        //Now, open a new context, and see if this eperson can be found!
        Context newInstance = new Context();
        EPerson found = EPerson.findByEmail(newInstance, createdEmail);
View Full Code Here

        context.setIgnoreAuthorization(true);
        EPerson eperson = EPerson.create(context);
        eperson.setEmail(email);
        eperson.setCanLogIn(true);
        eperson.setSelfRegistered(true);
        eperson.update();
        context.setIgnoreAuthorization(false);
       
        // Give site auth a chance to set/override appropriate fields
        AuthenticationManager.initEPerson(context, request, eperson);
       
View Full Code Here

            // add an EPerson, then jump user to edit page
            EPerson e = EPerson.create(context);

            // create clever name and do update before continuing
            e.setEmail("newuser" + e.getID());
            e.update();

            request.setAttribute("eperson", e);

            JSPManager.showJSP(request, response,
                    "/dspace-admin/eperson-edit.jsp");
View Full Code Here

                    e.setRequireCertificate((request
                            .getParameter("require_certificate") != null)
                            && request.getParameter("require_certificate")
                                    .equals("true"));

                    e.update();

                    if (button.equals("submit_resetpassword"))
                    {                       
                        try
                        {
View Full Code Here

                e.setRequireCertificate((request
                        .getParameter("require_certificate") != null)
                        && request.getParameter("require_certificate").equals(
                                "true"));

                e.update();

                if (button.equals("submit_resetpassword"))
                {
                    try
                    {
View Full Code Here

        if (passwordOK)
        {
            log.info(LogManager.getHeader(context, "usedtoken_forgotpw",
                    "email=" + eperson.getEmail()));

            eperson.update();
            AccountManager.deleteToken(context, token);

            JSPManager.showJSP(request, response,
                    "/register/password-changed.jsp");
            context.complete();
View Full Code Here

        if (ok)
        {
            // Update the DB
            log.info(LogManager.getHeader(context, "edit_profile",
                    "password_changed=" + settingPassword));
            eperson.update();

            // Show confirmation
            request.setAttribute("password.updated", Boolean.valueOf(settingPassword));
            JSPManager.showJSP(request, response,
                    "/register/profile-updated.jsp");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.