public void updateLastActiveDate(Context context) { EPerson me = context.getCurrentUser(); if (me != null) { me.setLastActive(new Date()); try { ePersonService.update(context, me); } catch (SQLException ex) { log.error("Could not update last-active stamp", ex); } catch (AuthorizeException ex) { log.error("Could not update last-active stamp", ex); } } }
ePersonService.update(context, eperson); context.complete(); System.out.printf("Modified EPerson %s\n", eperson.getID().toString());
ePersonService.update(context, eperson); context.complete(); System.out.printf("Created EPerson %s\n", eperson.getID().toString());
} else { ePerson.setLastActive(date); ePersonService.update(ctx, ePerson);
"Updated the eperson's '" + field + "' metadata using header: '" + header + "' = '" + value + "'."); ePersonService.update(context, eperson); context.dispatchEvents(); context.restoreAuthSystemState();
sub.setEmail(value); sub.setCanLogIn(false); ePersonService.update(context, sub); } else { log.warn(
ePersonService.update(context, eperson);
ePersonService.update(context, eperson); context.dispatchEvents();
context.turnOffAuthorisationSystem(); eperson.setNetid(netid.toLowerCase()); ePersonService.update(context, eperson); context.dispatchEvents(); context.restoreAuthSystemState(); eperson.setCanLogIn(true); authenticationService.initEPerson(context, request, eperson); ePersonService.update(context, eperson); context.dispatchEvents(); context.setCurrentUser(eperson);
authenticationService.initEPerson(context, request, eperson); ePersonService.update(context, eperson); context.dispatchEvents(); context.restoreAuthSystemState();
eperson.setLanguage(context, language); ePersonService.setPassword(eperson, pw); ePersonService.update(context, eperson);