private EPersonService getePersonService() { if (ePersonService == null) { ePersonService = EPersonServiceFactory.getInstance().getEPersonService(); } return ePersonService; }
/** * constructor, which just creates and object with a ready context * * @throws Exception if error */ protected CreateAdministrator() throws Exception { context = new Context(); groupService = EPersonServiceFactory.getInstance().getGroupService(); ePersonService = EPersonServiceFactory.getInstance().getEPersonService(); }
String e = line.getOptionValue('e'); if (e.indexOf('@') != -1) { eperson = EPersonServiceFactory.getInstance().getEPersonService().findByEmail(c, e); } else { eperson = EPersonServiceFactory.getInstance().getEPersonService().find(c, UUID.fromString(e));
ctx.turnOffAuthorisationSystem(); EPersonService ePersonService = EPersonServiceFactory.getInstance().getEPersonService();
public HarvestScheduler() throws SQLException, AuthorizeException { mainContext = new Context(); String harvestAdminParam = ConfigurationManager.getProperty("oai", "harvester.eperson"); harvestAdmin = null; if (harvestAdminParam != null && harvestAdminParam.length() > 0) { harvestAdmin = EPersonServiceFactory.getInstance().getEPersonService() .findByEmail(mainContext, harvestAdminParam); } harvestThreads = new Stack<HarvestThread>(); maxActiveThreads = ConfigurationManager.getIntProperty("oai", "harvester.maxThreads"); if (maxActiveThreads == 0) { maxActiveThreads = 3; } minHeartbeat = ConfigurationManager.getIntProperty("oai", "harvester.minHeartbeat") * 1000; if (minHeartbeat == 0) { minHeartbeat = 30000; } maxHeartbeat = ConfigurationManager.getIntProperty("oai", "harvester.maxHeartbeat") * 1000; if (maxHeartbeat == 0) { maxHeartbeat = 3600000; } }
if (context.getCurrentUser() != null && StringUtils.isNotBlank( EPersonServiceFactory.getInstance().getEPersonService().getPasswordHash(context.getCurrentUser()) .toString())) { String groupName = DSpaceServicesFactory.getInstance().getConfigurationService()
System.exit(1); EPersonService ePersonService = EPersonServiceFactory.getInstance().getEPersonService();
EPerson eperson = null; log.info(LogManager.getHeader(context, "authenticate", "attempting password auth of user=" + username)); eperson = EPersonServiceFactory.getInstance().getEPersonService() .findByEmail(context, username.toLowerCase()); "certificate.")); return CERT_REQUIRED; } else if (EPersonServiceFactory.getInstance().getEPersonService() .checkPassword(context, eperson, password)) {
EPersonServiceFactory.getInstance().getEPersonService().findByEmail(context, authentication.getName()));
myEPerson = EPersonServiceFactory.getInstance().getEPersonService().findByEmail(context, eperson); if (myEPerson == null) { usageError("Error, eperson cannot be found: " + eperson);
EPerson eperson = EPersonServiceFactory.getInstance().getEPersonService().findByEmail(context, user); int epersonId = 0; if (eperson != null) {
EPersonServiceFactory.getInstance().getEPersonService();
EPersonServiceFactory.getInstance().getEPersonService();