Package org.dspace.eperson

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


                                  if ((ldap.ldapSurname!=null)&&(!ldap.ldapSurname.equals(""))) eperson.setLastName(ldap.ldapSurname);
                                  if ((ldap.ldapPhone!=null)&&(!ldap.ldapPhone.equals(""))) eperson.setMetadata("phone", ldap.ldapPhone);
                                  eperson.setNetid(netid.toLowerCase());
                                  eperson.setCanLogIn(true);
                                  AuthenticationManager.initEPerson(context, request, eperson);
                                  eperson.update();
                                  context.commit();
                  context.setCurrentUser(eperson);
                }
                              catch (AuthorizeException e)
                              {
View Full Code Here


     
      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

        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

                        ePerson.setNetid(netId);
                        ePerson.setLanguage(language);
                        ePerson.setCanLogIn(canLogIn);
                        ePerson.setRequireCertificate(requireCertificate);
                        ePerson.setSelfRegistered(selfRegistered);
                        ePerson.update();

                        group.addMember(ePerson);
                        group.update();
                    } else {
                        throw new EntityException("Internal server error", "Could not create ePerson", 500);
View Full Code Here

                    ePerson.setNetid(netId);
                    ePerson.setLanguage(language);
                    ePerson.setCanLogIn(canLogIn);
                    ePerson.setRequireCertificate(requireCertificate);
                    ePerson.setSelfRegistered(selfRegistered);
                    ePerson.update();
                } else {
                    throw new EntityException("Internal server error", "Could not create ePerson", 500);
                }
            } else {
                throw new EntityException("Internal server error", "Duplicated ePerson", 500);
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

                        eperson = EPerson.create(context);
                        eperson.setEmail(email);
                        eperson.setCanLogIn(true);
                        AuthenticationManager.initEPerson(context, request,
                                eperson);
                        eperson.update();
                        context.commit();
                        context.setIgnoreAuthorization(false);
                        context.setCurrentUser(eperson);
                        setSpecialGroupsFlag(request, email);
                        return SUCCESS;
View Full Code Here

                        {
                            log.info(LogManager.getHeader(context,
                                    "type=ldap-login", "type=ldap_but_already_email"));
                            context.setIgnoreAuthorization(true);
                            eperson.setNetid(netid.toLowerCase());
                            eperson.update();
                            context.commit();
                            context.setIgnoreAuthorization(false);
                            context.setCurrentUser(eperson);

                            // assign user to groups based on ldap dn
View Full Code Here

                                        eperson.setMetadata("phone", ldap.ldapPhone);
                                    }
                                    eperson.setNetid(netid.toLowerCase());
                                    eperson.setCanLogIn(true);
                                    AuthenticationManager.initEPerson(context, request, eperson);
                                    eperson.update();
                                    context.commit();
                                    context.setCurrentUser(eperson);

                                    // assign user to groups based on ldap dn
                                    assignGroups(dn, ldap.ldapGroup, context);
View Full Code Here

                {
                    EPerson me = context.getCurrentUser();
                    me.setLastActive(new Date());
                    try
                    {
                        me.update();
                    } catch (SQLException ex)
                    {
                        log.error("Could not update last-active stamp", ex);
                    } catch (AuthorizeException ex)
                    {
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.