Convert getLogger() and Log4J imports for Log4J 2

This commit is contained in:
Patrick Trottier
2018-03-09 17:54:01 -05:00
committed by Mark H. Wood
parent fb4e7ae9cb
commit 7f4b4e9f8a
414 changed files with 844 additions and 835 deletions

View File

@@ -17,7 +17,7 @@ import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException; import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.TransformerException; import javax.xml.transform.TransformerException;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.apache.xpath.XPathAPI; import org.apache.xpath.XPathAPI;
import org.dspace.authorize.AuthorizeException; import org.dspace.authorize.AuthorizeException;
import org.dspace.content.BitstreamFormat; import org.dspace.content.BitstreamFormat;
@@ -47,7 +47,7 @@ public class RegistryLoader {
/** /**
* log4j category * log4j category
*/ */
private static Logger log = Logger.getLogger(RegistryLoader.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(RegistryLoader.class);
protected static BitstreamFormatService bitstreamFormatService = ContentServiceFactory.getInstance() protected static BitstreamFormatService bitstreamFormatService = ContentServiceFactory.getInstance()
.getBitstreamFormatService(); .getBitstreamFormatService();

View File

@@ -26,7 +26,7 @@ import org.apache.commons.cli.Options;
import org.apache.commons.cli.ParseException; import org.apache.commons.cli.ParseException;
import org.apache.commons.cli.PosixParser; import org.apache.commons.cli.PosixParser;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.authority.AuthorityValue; import org.dspace.authority.AuthorityValue;
import org.dspace.authority.factory.AuthorityServiceFactory; import org.dspace.authority.factory.AuthorityServiceFactory;
import org.dspace.authority.service.AuthorityValueService; import org.dspace.authority.service.AuthorityValueService;
@@ -92,7 +92,7 @@ public class MetadataImport {
/** /**
* Logger * Logger
*/ */
protected static final Logger log = Logger.getLogger(MetadataImport.class); protected static final Logger log = org.apache.logging.log4j.LogManager.getLogger(MetadataImport.class);
protected final AuthorityValueService authorityValueService; protected final AuthorityValueService authorityValueService;

View File

@@ -23,7 +23,8 @@ import org.apache.commons.cli.OptionBuilder;
import org.apache.commons.cli.Options; import org.apache.commons.cli.Options;
import org.apache.commons.cli.ParseException; import org.apache.commons.cli.ParseException;
import org.apache.commons.cli.PosixParser; import org.apache.commons.cli.PosixParser;
import org.apache.log4j.Logger; import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.dspace.checker.BitstreamDispatcher; import org.dspace.checker.BitstreamDispatcher;
import org.dspace.checker.CheckerCommand; import org.dspace.checker.CheckerCommand;
import org.dspace.checker.HandleDispatcher; import org.dspace.checker.HandleDispatcher;
@@ -48,7 +49,7 @@ import org.dspace.core.Utils;
* @author Nathan Sarr * @author Nathan Sarr
*/ */
public final class ChecksumChecker { public final class ChecksumChecker {
private static final Logger LOG = Logger.getLogger(ChecksumChecker.class); private static final Logger LOG = LogManager.getLogger(ChecksumChecker.class);
private static final BitstreamService bitstreamService = ContentServiceFactory.getInstance().getBitstreamService(); private static final BitstreamService bitstreamService = ContentServiceFactory.getInstance().getBitstreamService();

View File

@@ -33,7 +33,7 @@ import java.util.zip.ZipOutputStream;
import javax.mail.MessagingException; import javax.mail.MessagingException;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.app.itemexport.service.ItemExportService; import org.dspace.app.itemexport.service.ItemExportService;
import org.dspace.content.Bitstream; import org.dspace.content.Bitstream;
import org.dspace.content.Bundle; import org.dspace.content.Bundle;
@@ -98,7 +98,7 @@ public class ItemExportServiceImpl implements ItemExportService {
/** /**
* log4j logger * log4j logger
*/ */
private Logger log = Logger.getLogger(ItemExportServiceImpl.class); private Logger log = org.apache.logging.log4j.LogManager.getLogger(ItemExportServiceImpl.class);
protected ItemExportServiceImpl() { protected ItemExportServiceImpl() {

View File

@@ -58,7 +58,7 @@ import org.apache.commons.io.FileUtils;
import org.apache.commons.lang3.RandomStringUtils; import org.apache.commons.lang3.RandomStringUtils;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.exception.ExceptionUtils; import org.apache.commons.lang3.exception.ExceptionUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.apache.xpath.XPathAPI; import org.apache.xpath.XPathAPI;
import org.dspace.app.itemimport.service.ItemImportService; import org.dspace.app.itemimport.service.ItemImportService;
import org.dspace.app.util.LocalSchemaFilenameFilter; import org.dspace.app.util.LocalSchemaFilenameFilter;
@@ -124,7 +124,7 @@ import org.xml.sax.SAXException;
* allow the registration of files (bitstreams) into DSpace. * allow the registration of files (bitstreams) into DSpace.
*/ */
public class ItemImportServiceImpl implements ItemImportService, InitializingBean { public class ItemImportServiceImpl implements ItemImportService, InitializingBean {
private final Logger log = Logger.getLogger(ItemImportServiceImpl.class); private final Logger log = org.apache.logging.log4j.LogManager.getLogger(ItemImportServiceImpl.class);
@Autowired(required = true) @Autowired(required = true)
protected AuthorizeService authorizeService; protected AuthorizeService authorizeService;

View File

@@ -30,7 +30,7 @@ import javax.xml.transform.TransformerConfigurationException;
import javax.xml.transform.TransformerException; import javax.xml.transform.TransformerException;
import javax.xml.transform.TransformerFactory; import javax.xml.transform.TransformerFactory;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.app.util.LocalSchemaFilenameFilter; import org.dspace.app.util.LocalSchemaFilenameFilter;
import org.dspace.authorize.AuthorizeException; import org.dspace.authorize.AuthorizeException;
import org.dspace.content.DSpaceObject; import org.dspace.content.DSpaceObject;
@@ -47,7 +47,7 @@ import org.w3c.dom.Document;
* Encapsulates the Item in the context of the DSpace Archive Format * Encapsulates the Item in the context of the DSpace Archive Format
*/ */
public class ItemArchive { public class ItemArchive {
private static final Logger log = Logger.getLogger(ItemArchive.class); private static final Logger log = org.apache.logging.log4j.LogManager.getLogger(ItemArchive.class);
public static final String DUBLIN_CORE_XML = "dublin_core.xml"; public static final String DUBLIN_CORE_XML = "dublin_core.xml";

View File

@@ -11,7 +11,7 @@ import java.io.InputStream;
import java.nio.charset.StandardCharsets; import java.nio.charset.StandardCharsets;
import org.apache.commons.io.IOUtils; import org.apache.commons.io.IOUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.apache.poi.POITextExtractor; import org.apache.poi.POITextExtractor;
import org.apache.poi.extractor.ExtractorFactory; import org.apache.poi.extractor.ExtractorFactory;
import org.apache.poi.hssf.extractor.ExcelExtractor; import org.apache.poi.hssf.extractor.ExcelExtractor;
@@ -36,7 +36,7 @@ import org.dspace.content.Item;
*/ */
public class ExcelFilter extends MediaFilter { public class ExcelFilter extends MediaFilter {
private static Logger log = Logger.getLogger(ExcelFilter.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(ExcelFilter.class);
public String getFilteredName(String oldFilename) { public String getFilteredName(String oldFilename) {
return oldFilename + ".txt"; return oldFilename + ".txt";

View File

@@ -16,7 +16,7 @@ import java.io.InputStream;
import java.io.OutputStreamWriter; import java.io.OutputStreamWriter;
import java.io.Writer; import java.io.Writer;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.apache.pdfbox.pdmodel.PDDocument; import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.text.PDFTextStripper; import org.apache.pdfbox.text.PDFTextStripper;
import org.dspace.content.Item; import org.dspace.content.Item;
@@ -30,7 +30,7 @@ import org.dspace.core.ConfigurationManager;
*/ */
public class PDFFilter extends MediaFilter { public class PDFFilter extends MediaFilter {
private static Logger log = Logger.getLogger(PDFFilter.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(PDFFilter.class);
@Override @Override
public String getFilteredName(String oldFilename) { public String getFilteredName(String oldFilename) {

View File

@@ -10,7 +10,7 @@ package org.dspace.app.mediafilter;
import java.io.ByteArrayInputStream; import java.io.ByteArrayInputStream;
import java.io.InputStream; import java.io.InputStream;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.apache.poi.POITextExtractor; import org.apache.poi.POITextExtractor;
import org.apache.poi.extractor.ExtractorFactory; import org.apache.poi.extractor.ExtractorFactory;
import org.apache.poi.hslf.extractor.PowerPointExtractor; import org.apache.poi.hslf.extractor.PowerPointExtractor;
@@ -23,7 +23,7 @@ import org.dspace.content.Item;
*/ */
public class PowerPointFilter extends MediaFilter { public class PowerPointFilter extends MediaFilter {
private static Logger log = Logger.getLogger(PowerPointFilter.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(PowerPointFilter.class);
@Override @Override
public String getFilteredName(String oldFilename) { public String getFilteredName(String oldFilename) {

View File

@@ -11,7 +11,7 @@ import java.io.ByteArrayInputStream;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.content.Item; import org.dspace.content.Item;
import org.textmining.extraction.TextExtractor; import org.textmining.extraction.TextExtractor;
import org.textmining.extraction.word.WordTextExtractorFactory; import org.textmining.extraction.word.WordTextExtractorFactory;
@@ -24,7 +24,7 @@ import org.textmining.extraction.word.WordTextExtractorFactory;
*/ */
public class WordFilter extends MediaFilter { public class WordFilter extends MediaFilter {
private static Logger log = Logger.getLogger(WordFilter.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(WordFilter.class);
@Override @Override
public String getFilteredName(String oldFilename) { public String getFilteredName(String oldFilename) {

View File

@@ -10,7 +10,7 @@ package org.dspace.app.requestitem;
import java.sql.SQLException; import java.sql.SQLException;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.content.Item; import org.dspace.content.Item;
import org.dspace.core.ConfigurationManager; import org.dspace.core.ConfigurationManager;
import org.dspace.core.Context; import org.dspace.core.Context;
@@ -31,7 +31,7 @@ import org.springframework.beans.factory.annotation.Autowired;
*/ */
public class RequestItemHelpdeskStrategy extends RequestItemSubmitterStrategy { public class RequestItemHelpdeskStrategy extends RequestItemSubmitterStrategy {
private Logger log = Logger.getLogger(RequestItemHelpdeskStrategy.class); private Logger log = org.apache.logging.log4j.LogManager.getLogger(RequestItemHelpdeskStrategy.class);
@Autowired(required = true) @Autowired(required = true)
protected EPersonService ePersonService; protected EPersonService ePersonService;

View File

@@ -10,7 +10,7 @@ package org.dspace.app.requestitem;
import java.sql.SQLException; import java.sql.SQLException;
import java.util.Date; import java.util.Date;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.app.requestitem.dao.RequestItemDAO; import org.dspace.app.requestitem.dao.RequestItemDAO;
import org.dspace.app.requestitem.service.RequestItemService; import org.dspace.app.requestitem.service.RequestItemService;
import org.dspace.content.Bitstream; import org.dspace.content.Bitstream;
@@ -28,7 +28,7 @@ import org.springframework.beans.factory.annotation.Autowired;
*/ */
public class RequestItemServiceImpl implements RequestItemService { public class RequestItemServiceImpl implements RequestItemService {
private final Logger log = Logger.getLogger(RequestItemServiceImpl.class); private final Logger log = org.apache.logging.log4j.LogManager.getLogger(RequestItemServiceImpl.class);
@Autowired(required = true) @Autowired(required = true)
protected RequestItemDAO requestItemDAO; protected RequestItemDAO requestItemDAO;

View File

@@ -16,7 +16,7 @@ import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException; import javax.xml.parsers.ParserConfigurationException;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.app.sfx.service.SFXFileReaderService; import org.dspace.app.sfx.service.SFXFileReaderService;
import org.dspace.content.DCPersonName; import org.dspace.content.DCPersonName;
import org.dspace.content.Item; import org.dspace.content.Item;
@@ -58,7 +58,7 @@ public class SFXFileReaderServiceImpl implements SFXFileReaderService {
/** /**
* log4j logger * log4j logger
*/ */
private final Logger log = Logger.getLogger(SFXFileReaderServiceImpl.class); private final Logger log = org.apache.logging.log4j.LogManager.getLogger(SFXFileReaderServiceImpl.class);
protected SFXFileReaderServiceImpl() { protected SFXFileReaderServiceImpl() {
} }

View File

@@ -16,7 +16,7 @@ import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.utils.URIBuilder; import org.apache.http.client.utils.URIBuilder;
import org.apache.http.impl.client.CloseableHttpClient; import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClientBuilder; import org.apache.http.impl.client.HttpClientBuilder;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.core.ConfigurationManager; import org.dspace.core.ConfigurationManager;
public class SHERPAService { public class SHERPAService {
@@ -29,7 +29,7 @@ public class SHERPAService {
/** /**
* log4j category * log4j category
*/ */
private static final Logger log = Logger.getLogger(SHERPAService.class); private static final Logger log = org.apache.logging.log4j.LogManager.getLogger(SHERPAService.class);
public SHERPAService() { public SHERPAService() {
HttpClientBuilder builder = HttpClientBuilder.create(); HttpClientBuilder builder = HttpClientBuilder.create();

View File

@@ -12,7 +12,7 @@ import java.util.List;
import java.util.Set; import java.util.Set;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.app.sherpa.SHERPAResponse; import org.dspace.app.sherpa.SHERPAResponse;
import org.dspace.app.sherpa.SHERPAService; import org.dspace.app.sherpa.SHERPAService;
import org.dspace.content.Item; import org.dspace.content.Item;
@@ -27,7 +27,7 @@ public class SHERPASubmitService {
/** /**
* log4j logger * log4j logger
*/ */
private static Logger log = Logger.getLogger(SHERPASubmitService.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(SHERPASubmitService.class);
public void setConfiguration(SHERPASubmitConfigurationService configuration) { public void setConfiguration(SHERPASubmitConfigurationService configuration) {
this.configuration = configuration; this.configuration = configuration;

View File

@@ -29,7 +29,7 @@ import org.apache.commons.cli.ParseException;
import org.apache.commons.cli.PosixParser; import org.apache.commons.cli.PosixParser;
import org.apache.commons.lang3.ArrayUtils; import org.apache.commons.lang3.ArrayUtils;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.content.Collection; import org.dspace.content.Collection;
import org.dspace.content.Community; import org.dspace.content.Community;
import org.dspace.content.Item; import org.dspace.content.Item;
@@ -52,7 +52,7 @@ public class GenerateSitemaps {
/** /**
* Logger * Logger
*/ */
private static Logger log = Logger.getLogger(GenerateSitemaps.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(GenerateSitemaps.class);
private static final CommunityService communityService = ContentServiceFactory.getInstance().getCommunityService(); private static final CommunityService communityService = ContentServiceFactory.getInstance().getCommunityService();
private static final CollectionService collectionService = private static final CollectionService collectionService =

View File

@@ -16,14 +16,14 @@ import java.util.Enumeration;
import javax.servlet.ServletContextEvent; import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener; import javax.servlet.ServletContextListener;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
/** /**
* Class to initialize / cleanup resources used by DSpace when the web application * Class to initialize / cleanup resources used by DSpace when the web application
* is started or stopped. * is started or stopped.
*/ */
public class DSpaceContextListener implements ServletContextListener { public class DSpaceContextListener implements ServletContextListener {
private static Logger log = Logger.getLogger(DSpaceContextListener.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(DSpaceContextListener.class);
/** /**
* Initialize any resources required by the application. * Initialize any resources required by the application.

View File

@@ -15,9 +15,9 @@ import java.util.Calendar;
import java.util.Date; import java.util.Date;
import org.apache.commons.lang3.time.DateUtils; import org.apache.commons.lang3.time.DateUtils;
import org.apache.log4j.FileAppender; import org.apache.logging.log4j.FileAppender;
import org.apache.log4j.helpers.LogLog; import org.apache.logging.log4j.helpers.LogLog;
import org.apache.log4j.spi.LoggingEvent; import org.apache.logging.log4j.spi.LoggingEvent;
/** /**
* Special log appender for log4j. Adds the current date (ie. year-mon) to * Special log appender for log4j. Adds the current date (ie. year-mon) to
@@ -35,7 +35,7 @@ import org.apache.log4j.spi.LoggingEvent;
* log4j.appender.A1.File=@@log.dir@@/dspace.log * log4j.appender.A1.File=@@log.dir@@/dspace.log
* log4j.appender.A1.DatePattern=yyyy-MM * log4j.appender.A1.DatePattern=yyyy-MM
* log4j.appender.A1.MaxLogs=3 * log4j.appender.A1.MaxLogs=3
* log4j.appender.A1.layout=org.apache.log4j.PatternLayout * log4j.appender.A1.layout=org.apache.logging.log4j.PatternLayout
* log4j.appender.A1.layout.ConversionPattern=%d %-5p %c @ %m%n * log4j.appender.A1.layout.ConversionPattern=%d %-5p %c @ %m%n
*/ */
public class DailyFileAppender extends FileAppender { public class DailyFileAppender extends FileAppender {
@@ -81,7 +81,7 @@ public class DailyFileAppender extends FileAppender {
} }
/* (non-Javadoc) /* (non-Javadoc)
* @see org.apache.log4j.FileAppender#activateOptions() * @see org.apache.logging.log4j.FileAppender#activateOptions()
*/ */
@Override @Override
public void activateOptions() { public void activateOptions() {
@@ -142,7 +142,7 @@ public class DailyFileAppender extends FileAppender {
* Methods * Methods
*----------------------------------------------------------------------------*/ *----------------------------------------------------------------------------*/
/* (non-Javadoc) /* (non-Javadoc)
* @see org.apache.log4j.WriterAppender#subAppend(org.apache.log4j.spi.LoggingEvent) * @see org.apache.logging.log4j.WriterAppender#subAppend(org.apache.logging.log4j.spi.LoggingEvent)
*/ */
@Override @Override
protected void subAppend(LoggingEvent pobjEvent) { protected void subAppend(LoggingEvent pobjEvent) {

View File

@@ -12,7 +12,7 @@ import java.util.Comparator;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.content.Bitstream; import org.dspace.content.Bitstream;
import org.dspace.content.BitstreamFormat; import org.dspace.content.BitstreamFormat;
import org.dspace.content.factory.ContentServiceFactory; import org.dspace.content.factory.ContentServiceFactory;
@@ -24,7 +24,7 @@ import org.dspace.core.Context;
*/ */
public class GoogleBitstreamComparator implements Comparator<Bitstream> { public class GoogleBitstreamComparator implements Comparator<Bitstream> {
private final static Logger log = Logger.getLogger(GoogleBitstreamComparator.class); private final static Logger log = org.apache.logging.log4j.LogManager.getLogger(GoogleBitstreamComparator.class);
HashMap<String, Integer> priorityMap = new HashMap<>(); HashMap<String, Integer> priorityMap = new HashMap<>();

View File

@@ -26,7 +26,7 @@ import java.util.Properties;
import com.google.common.collect.ArrayListMultimap; import com.google.common.collect.ArrayListMultimap;
import com.google.common.collect.ListMultimap; import com.google.common.collect.ListMultimap;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.authorize.factory.AuthorizeServiceFactory; import org.dspace.authorize.factory.AuthorizeServiceFactory;
import org.dspace.content.Bitstream; import org.dspace.content.Bitstream;
import org.dspace.content.Bundle; import org.dspace.content.Bundle;
@@ -51,7 +51,7 @@ import org.jdom.Element;
@SuppressWarnings("deprecation") @SuppressWarnings("deprecation")
public class GoogleMetadata { public class GoogleMetadata {
private final static Logger log = Logger.getLogger(GoogleMetadata.class); private final static Logger log = org.apache.logging.log4j.LogManager.getLogger(GoogleMetadata.class);
protected static final String GOOGLE_PREFIX = "google."; protected static final String GOOGLE_PREFIX = "google.";

View File

@@ -14,7 +14,7 @@ import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Set; import java.util.Set;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.app.util.service.MetadataExposureService; import org.dspace.app.util.service.MetadataExposureService;
import org.dspace.authorize.service.AuthorizeService; import org.dspace.authorize.service.AuthorizeService;
import org.dspace.core.Context; import org.dspace.core.Context;
@@ -58,7 +58,7 @@ import org.springframework.beans.factory.annotation.Autowired;
* @version $Revision: 3734 $ * @version $Revision: 3734 $
*/ */
public class MetadataExposureServiceImpl implements MetadataExposureService { public class MetadataExposureServiceImpl implements MetadataExposureService {
protected Logger log = Logger.getLogger(MetadataExposureServiceImpl.class); protected Logger log = org.apache.logging.log4j.LogManager.getLogger(MetadataExposureServiceImpl.class);
protected Map<String, Set<String>> hiddenElementSets = null; protected Map<String, Set<String>> hiddenElementSets = null;
protected Map<String, Map<String, Set<String>>> hiddenElementMaps = null; protected Map<String, Map<String, Set<String>>> hiddenElementMaps = null;

View File

@@ -20,7 +20,7 @@ import com.sun.syndication.feed.module.opensearch.OpenSearchModule;
import com.sun.syndication.feed.module.opensearch.entity.OSQuery; import com.sun.syndication.feed.module.opensearch.entity.OSQuery;
import com.sun.syndication.feed.module.opensearch.impl.OpenSearchModuleImpl; import com.sun.syndication.feed.module.opensearch.impl.OpenSearchModuleImpl;
import com.sun.syndication.io.FeedException; import com.sun.syndication.io.FeedException;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.app.util.service.OpenSearchService; import org.dspace.app.util.service.OpenSearchService;
import org.dspace.content.DSpaceObject; import org.dspace.content.DSpaceObject;
import org.dspace.core.Constants; import org.dspace.core.Constants;
@@ -54,7 +54,7 @@ import org.w3c.dom.Document;
* @author Richard Rodgers * @author Richard Rodgers
*/ */
public class OpenSearchServiceImpl implements OpenSearchService, InitializingBean { public class OpenSearchServiceImpl implements OpenSearchService, InitializingBean {
private static final Logger log = Logger.getLogger(OpenSearchServiceImpl.class); private static final Logger log = org.apache.logging.log4j.LogManager.getLogger(OpenSearchServiceImpl.class);
// are open search queries enabled? // are open search queries enabled?
protected boolean enabled = false; protected boolean enabled = false;

View File

@@ -11,7 +11,7 @@ import java.sql.SQLException;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.content.Collection; import org.dspace.content.Collection;
import org.dspace.content.factory.ContentServiceFactory; import org.dspace.content.factory.ContentServiceFactory;
import org.dspace.content.service.CollectionService; import org.dspace.content.service.CollectionService;
@@ -28,7 +28,7 @@ import org.springframework.util.StopWatch;
* Invocation: dsrun org.dspace.app.util.OptimizeSelectCollection * Invocation: dsrun org.dspace.app.util.OptimizeSelectCollection
*/ */
public class OptimizeSelectCollection { public class OptimizeSelectCollection {
private static final Logger log = Logger.getLogger(OptimizeSelectCollection.class); private static final Logger log = org.apache.logging.log4j.LogManager.getLogger(OptimizeSelectCollection.class);
private static Context context; private static Context context;
private static ArrayList<EPerson> brokenPeople; private static ArrayList<EPerson> brokenPeople;

View File

@@ -12,7 +12,7 @@ import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
/** /**
* Class representing a single Item Submission config definition, organized into * Class representing a single Item Submission config definition, organized into
@@ -44,7 +44,7 @@ public class SubmissionConfig implements Serializable {
/** /**
* log4j logger * log4j logger
*/ */
private static Logger log = Logger.getLogger(SubmissionConfig.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(SubmissionConfig.class);
/** /**
* Constructs a new Submission Configuration object, based on the XML * Constructs a new Submission Configuration object, based on the XML

View File

@@ -19,7 +19,7 @@ import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.FactoryConfigurationError; import javax.xml.parsers.FactoryConfigurationError;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.content.Collection; import org.dspace.content.Collection;
import org.dspace.content.DSpaceObject; import org.dspace.content.DSpaceObject;
import org.dspace.core.Context; import org.dspace.core.Context;
@@ -71,7 +71,7 @@ public class SubmissionConfigReader {
/** /**
* log4j logger * log4j logger
*/ */
private static Logger log = Logger.getLogger(SubmissionConfigReader.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(SubmissionConfigReader.class);
/** /**
* The fully qualified pathname of the directory containing the Item Submission Configuration file * The fully qualified pathname of the directory containing the Item Submission Configuration file

View File

@@ -36,7 +36,7 @@ import com.sun.syndication.io.FeedException;
import com.sun.syndication.io.SyndFeedOutput; import com.sun.syndication.io.SyndFeedOutput;
import org.apache.commons.lang3.ArrayUtils; import org.apache.commons.lang3.ArrayUtils;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.content.Bitstream; import org.dspace.content.Bitstream;
import org.dspace.content.Bundle; import org.dspace.content.Bundle;
import org.dspace.content.Collection; import org.dspace.content.Collection;
@@ -69,7 +69,7 @@ import org.w3c.dom.Document;
* @author Larry Stone * @author Larry Stone
*/ */
public class SyndicationFeed { public class SyndicationFeed {
protected final Logger log = Logger.getLogger(SyndicationFeed.class); protected final Logger log = org.apache.logging.log4j.LogManager.getLogger(SyndicationFeed.class);
/** /**

View File

@@ -24,7 +24,7 @@ import javax.servlet.http.HttpServletRequest;
import org.apache.commons.collections4.ListUtils; import org.apache.commons.collections4.ListUtils;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.content.Collection; import org.dspace.content.Collection;
import org.dspace.content.Item; import org.dspace.content.Item;
import org.dspace.content.MetadataValue; import org.dspace.content.MetadataValue;
@@ -44,7 +44,7 @@ public class Util {
// cache for source version result // cache for source version result
private static String sourceVersion = null; private static String sourceVersion = null;
private static Logger log = Logger.getLogger(Util.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(Util.class);
/** /**
* Default constructor. Must be protected as org.dspace.xmlworkflow.WorkflowUtils extends it * Default constructor. Must be protected as org.dspace.xmlworkflow.WorkflowUtils extends it

View File

@@ -18,7 +18,7 @@ import org.apache.http.HttpStatus;
import org.apache.http.client.HttpClient; import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpHead; import org.apache.http.client.methods.HttpHead;
import org.apache.http.impl.client.DefaultHttpClient; import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.app.util.dao.WebAppDAO; import org.dspace.app.util.dao.WebAppDAO;
import org.dspace.app.util.service.WebAppService; import org.dspace.app.util.service.WebAppService;
import org.dspace.core.Context; import org.dspace.core.Context;
@@ -33,7 +33,7 @@ import org.springframework.beans.factory.annotation.Autowired;
*/ */
public class WebAppServiceImpl implements WebAppService { public class WebAppServiceImpl implements WebAppService {
private final Logger log = Logger.getLogger(WebAppServiceImpl.class); private final Logger log = org.apache.logging.log4j.LogManager.getLogger(WebAppServiceImpl.class);
@Autowired(required = true) @Autowired(required = true)
protected WebAppDAO webAppDAO; protected WebAppDAO webAppDAO;

View File

@@ -17,7 +17,8 @@ import java.util.UUID;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.core.ConfigurationManager;
import org.dspace.core.Context; import org.dspace.core.Context;
import org.dspace.core.LogManager; import org.dspace.core.LogManager;
import org.dspace.core.factory.CoreServiceFactory; import org.dspace.core.factory.CoreServiceFactory;
@@ -50,7 +51,7 @@ public class IPAuthentication implements AuthenticationMethod {
/** /**
* Our logger * Our logger
*/ */
private static Logger log = Logger.getLogger(IPAuthentication.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(IPAuthentication.class);
/** /**
* Whether to look for x-forwarded headers for logging IP addresses * Whether to look for x-forwarded headers for logging IP addresses

View File

@@ -10,7 +10,7 @@ package org.dspace.authenticate;
import java.net.Inet6Address; import java.net.Inet6Address;
import java.net.UnknownHostException; import java.net.UnknownHostException;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
/** /**
* <p> * <p>
@@ -38,7 +38,7 @@ import org.apache.log4j.Logger;
* @version $Revision$ * @version $Revision$
*/ */
public class IPMatcher { public class IPMatcher {
private static Logger log = Logger.getLogger(IPMatcher.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(IPMatcher.class);
/** /**
* Network to match * Network to match

View File

@@ -29,7 +29,7 @@ import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.authenticate.factory.AuthenticateServiceFactory; import org.dspace.authenticate.factory.AuthenticateServiceFactory;
import org.dspace.authenticate.service.AuthenticationService; import org.dspace.authenticate.service.AuthenticationService;
import org.dspace.authorize.AuthorizeException; import org.dspace.authorize.AuthorizeException;
@@ -61,7 +61,7 @@ public class LDAPAuthentication
/** /**
* log4j category * log4j category
*/ */
private static Logger log = Logger.getLogger(LDAPAuthentication.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(LDAPAuthentication.class);
protected AuthenticationService authenticationService = AuthenticateServiceFactory.getInstance() protected AuthenticationService authenticationService = AuthenticateServiceFactory.getInstance()
.getAuthenticationService(); .getAuthenticationService();

View File

@@ -15,7 +15,7 @@ import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.core.Context; import org.dspace.core.Context;
import org.dspace.core.LogManager; import org.dspace.core.LogManager;
import org.dspace.eperson.EPerson; import org.dspace.eperson.EPerson;
@@ -49,7 +49,7 @@ public class PasswordAuthentication
/** /**
* log4j category * log4j category
*/ */
private static Logger log = Logger.getLogger(PasswordAuthentication.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(PasswordAuthentication.class);
/** /**

View File

@@ -24,7 +24,7 @@ import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.authenticate.factory.AuthenticateServiceFactory; import org.dspace.authenticate.factory.AuthenticateServiceFactory;
import org.dspace.authorize.AuthorizeException; import org.dspace.authorize.AuthorizeException;
import org.dspace.content.MetadataField; import org.dspace.content.MetadataField;
@@ -70,7 +70,7 @@ public class ShibAuthentication implements AuthenticationMethod {
/** /**
* log4j category * log4j category
*/ */
private static Logger log = Logger.getLogger(ShibAuthentication.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(ShibAuthentication.class);
/** /**
* Additional metadata mappings * Additional metadata mappings

View File

@@ -30,7 +30,7 @@ import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession; import javax.servlet.http.HttpSession;
import org.apache.commons.lang3.ArrayUtils; import org.apache.commons.lang3.ArrayUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.authenticate.factory.AuthenticateServiceFactory; import org.dspace.authenticate.factory.AuthenticateServiceFactory;
import org.dspace.authenticate.service.AuthenticationService; import org.dspace.authenticate.service.AuthenticationService;
import org.dspace.authorize.AuthorizeException; import org.dspace.authorize.AuthorizeException;
@@ -105,7 +105,7 @@ public class X509Authentication implements AuthenticationMethod {
/** /**
* log4j category * log4j category
*/ */
private static Logger log = Logger.getLogger(X509Authentication.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(X509Authentication.class);
/** /**
* public key of CA to check client certs against. * public key of CA to check client certs against.

View File

@@ -12,7 +12,7 @@ import java.net.MalformedURLException;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.apache.solr.client.solrj.SolrQuery; import org.apache.solr.client.solrj.SolrQuery;
import org.apache.solr.client.solrj.SolrServerException; import org.apache.solr.client.solrj.SolrServerException;
import org.apache.solr.client.solrj.impl.HttpSolrServer; import org.apache.solr.client.solrj.impl.HttpSolrServer;
@@ -30,7 +30,7 @@ import org.dspace.core.ConfigurationManager;
*/ */
public class AuthoritySolrServiceImpl implements AuthorityIndexingService, AuthoritySearchService { public class AuthoritySolrServiceImpl implements AuthorityIndexingService, AuthoritySearchService {
private static final Logger log = Logger.getLogger(AuthoritySolrServiceImpl.class); private static final Logger log = org.apache.logging.log4j.LogManager.getLogger(AuthoritySolrServiceImpl.class);
protected AuthoritySolrServiceImpl() { protected AuthoritySolrServiceImpl() {

View File

@@ -12,7 +12,7 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
/** /**
* This class contains a list of active authority types. * This class contains a list of active authority types.
@@ -32,7 +32,7 @@ public class AuthorityTypes {
/** /**
* log4j logger * log4j logger
*/ */
private static Logger log = Logger.getLogger(AuthorityTypes.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(AuthorityTypes.class);
protected List<AuthorityValue> types = new ArrayList<AuthorityValue>(); protected List<AuthorityValue> types = new ArrayList<AuthorityValue>();

View File

@@ -15,7 +15,7 @@ import java.util.List;
import java.util.Map; import java.util.Map;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.apache.solr.common.SolrDocument; import org.apache.solr.common.SolrDocument;
import org.apache.solr.common.SolrInputDocument; import org.apache.solr.common.SolrInputDocument;
import org.dspace.authorize.AuthorizeException; import org.dspace.authorize.AuthorizeException;
@@ -234,7 +234,7 @@ public class AuthorityValue {
/** /**
* log4j logger * log4j logger
*/ */
private static Logger log = Logger.getLogger(AuthorityValue.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(AuthorityValue.class);
@Override @Override
public String toString() { public String toString() {

View File

@@ -14,7 +14,7 @@ import java.util.Map;
import java.util.UUID; import java.util.UUID;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.apache.solr.client.solrj.SolrQuery; import org.apache.solr.client.solrj.SolrQuery;
import org.apache.solr.client.solrj.response.QueryResponse; import org.apache.solr.client.solrj.response.QueryResponse;
import org.apache.solr.common.SolrDocument; import org.apache.solr.common.SolrDocument;
@@ -34,7 +34,7 @@ import org.springframework.beans.factory.annotation.Autowired;
*/ */
public class AuthorityValueServiceImpl implements AuthorityValueService { public class AuthorityValueServiceImpl implements AuthorityValueService {
private final Logger log = Logger.getLogger(AuthorityValueServiceImpl.class); private final Logger log = org.apache.logging.log4j.LogManager.getLogger(AuthorityValueServiceImpl.class);
@Autowired(required = true) @Autowired(required = true)
protected AuthorityTypes authorityTypes; protected AuthorityTypes authorityTypes;

View File

@@ -19,7 +19,7 @@ import org.apache.commons.cli.HelpFormatter;
import org.apache.commons.cli.Options; import org.apache.commons.cli.Options;
import org.apache.commons.cli.ParseException; import org.apache.commons.cli.ParseException;
import org.apache.commons.cli.PosixParser; import org.apache.commons.cli.PosixParser;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.authority.factory.AuthorityServiceFactory; import org.dspace.authority.factory.AuthorityServiceFactory;
import org.dspace.authority.service.AuthorityValueService; import org.dspace.authority.service.AuthorityValueService;
import org.dspace.content.Item; import org.dspace.content.Item;
@@ -40,7 +40,7 @@ public class UpdateAuthorities {
/** /**
* log4j logger * log4j logger
*/ */
private static Logger log = Logger.getLogger(UpdateAuthorities.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(UpdateAuthorities.class);
protected PrintWriter print = null; protected PrintWriter print = null;

View File

@@ -12,7 +12,7 @@ import java.util.HashSet;
import java.util.Set; import java.util.Set;
import java.util.UUID; import java.util.UUID;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.authority.factory.AuthorityServiceFactory; import org.dspace.authority.factory.AuthorityServiceFactory;
import org.dspace.authority.service.AuthorityService; import org.dspace.authority.service.AuthorityService;
import org.dspace.content.DSpaceObject; import org.dspace.content.DSpaceObject;
@@ -33,7 +33,7 @@ import org.dspace.event.Event;
*/ */
public class AuthorityConsumer implements Consumer { public class AuthorityConsumer implements Consumer {
private final Logger log = Logger.getLogger(AuthorityConsumer.class); private final Logger log = org.apache.logging.log4j.LogManager.getLogger(AuthorityConsumer.class);
/** /**
* A set of all item IDs installed which need their authority updated * A set of all item IDs installed which need their authority updated

View File

@@ -12,7 +12,7 @@ import java.util.Iterator;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.authority.AuthorityValue; import org.dspace.authority.AuthorityValue;
import org.dspace.authority.factory.AuthorityServiceFactory; import org.dspace.authority.factory.AuthorityServiceFactory;
import org.dspace.authority.service.AuthorityService; import org.dspace.authority.service.AuthorityService;
@@ -29,7 +29,7 @@ import org.dspace.core.Context;
*/ */
public class AuthorityIndexClient { public class AuthorityIndexClient {
private static Logger log = Logger.getLogger(AuthorityIndexClient.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(AuthorityIndexClient.class);
protected static final AuthorityService authorityService = protected static final AuthorityService authorityService =
AuthorityServiceFactory.getInstance().getAuthorityService(); AuthorityServiceFactory.getInstance().getAuthorityService();

View File

@@ -14,7 +14,7 @@ import java.util.Map;
import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.authority.AuthorityValue; import org.dspace.authority.AuthorityValue;
import org.dspace.authority.service.AuthorityValueService; import org.dspace.authority.service.AuthorityValueService;
import org.dspace.authorize.AuthorizeException; import org.dspace.authorize.AuthorizeException;
@@ -45,7 +45,7 @@ import org.springframework.beans.factory.annotation.Autowired;
*/ */
public class DSpaceAuthorityIndexer implements AuthorityIndexerInterface, InitializingBean { public class DSpaceAuthorityIndexer implements AuthorityIndexerInterface, InitializingBean {
private static final Logger log = Logger.getLogger(DSpaceAuthorityIndexer.class); private static final Logger log = org.apache.logging.log4j.LogManager.getLogger(DSpaceAuthorityIndexer.class);
/** /**
* The list of metadata fields which are to be indexed * * The list of metadata fields which are to be indexed *

View File

@@ -14,9 +14,9 @@ import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException; import javax.xml.bind.JAXBException;
import javax.xml.bind.Unmarshaller; import javax.xml.bind.Unmarshaller;
import org.apache.log4j.Logger;
import org.xml.sax.SAXException; import org.xml.sax.SAXException;
import org.apache.logging.log4j.Logger;
/** /**
* @param <T> type * @param <T> type
@@ -30,7 +30,7 @@ public abstract class Converter<T> {
/** /**
* log4j logger * log4j logger
*/ */
private static Logger log = Logger.getLogger(Converter.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(Converter.class);
public abstract T convert(InputStream document); public abstract T convert(InputStream document);

View File

@@ -12,7 +12,6 @@ import java.net.URISyntaxException;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import org.apache.log4j.Logger;
import org.dspace.authority.orcid.Orcidv2; import org.dspace.authority.orcid.Orcidv2;
import org.dspace.utils.DSpace; import org.dspace.utils.DSpace;
import org.orcid.jaxb.model.common_v2.OrcidId; import org.orcid.jaxb.model.common_v2.OrcidId;
@@ -20,8 +19,7 @@ import org.orcid.jaxb.model.record_v2.Person;
import org.orcid.jaxb.model.search_v2.Result; import org.orcid.jaxb.model.search_v2.Result;
import org.orcid.jaxb.model.search_v2.Search; import org.orcid.jaxb.model.search_v2.Search;
import org.xml.sax.SAXException; import org.xml.sax.SAXException;
import org.apache.logging.log4j.Logger;
/** /**
* @author Antoine Snyers (antoine at atmire.com) * @author Antoine Snyers (antoine at atmire.com)
@@ -34,7 +32,7 @@ public class XMLtoBio extends Converter {
/** /**
* log4j logger * log4j logger
*/ */
private static Logger log = Logger.getLogger(XMLtoBio.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(XMLtoBio.class);
@Override @Override
public List<Person> convert(InputStream xml) { public List<Person> convert(InputStream xml) {

View File

@@ -15,7 +15,7 @@ import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient; import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet; import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.HttpClientBuilder; import org.apache.http.impl.client.HttpClientBuilder;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
/** /**
* @author Antoine Snyers (antoine at atmire.com) * @author Antoine Snyers (antoine at atmire.com)
@@ -28,7 +28,7 @@ public class RESTConnector {
/** /**
* log4j logger * log4j logger
*/ */
private static Logger log = Logger.getLogger(RESTConnector.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(RESTConnector.class);
private String url; private String url;

View File

@@ -8,7 +8,7 @@
package org.dspace.authority.util; package org.dspace.authority.util;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
/** /**
* @author Antoine Snyers (antoine at atmire.com) * @author Antoine Snyers (antoine at atmire.com)
@@ -21,7 +21,7 @@ public class EnumUtils {
/** /**
* log4j logger * log4j logger
*/ */
private static Logger log = Logger.getLogger(EnumUtils.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(EnumUtils.class);
/** /**
* Default constructor * Default constructor

View File

@@ -17,7 +17,7 @@ import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.TransformerException; import javax.xml.transform.TransformerException;
import javax.xml.xpath.XPathExpressionException; import javax.xml.xpath.XPathExpressionException;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.apache.xpath.XPathAPI; import org.apache.xpath.XPathAPI;
import org.w3c.dom.Document; import org.w3c.dom.Document;
import org.w3c.dom.Element; import org.w3c.dom.Element;
@@ -36,7 +36,7 @@ public class XMLUtils {
/** /**
* log4j logger * log4j logger
*/ */
private static Logger log = Logger.getLogger(XMLUtils.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(XMLUtils.class);
/** /**
* Default constructor * Default constructor

View File

@@ -16,7 +16,7 @@ import java.util.Set;
import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.ObjectUtils; import org.apache.commons.lang3.ObjectUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.authorize.dao.ResourcePolicyDAO; import org.dspace.authorize.dao.ResourcePolicyDAO;
import org.dspace.authorize.service.ResourcePolicyService; import org.dspace.authorize.service.ResourcePolicyService;
import org.dspace.content.DSpaceObject; import org.dspace.content.DSpaceObject;
@@ -38,7 +38,7 @@ public class ResourcePolicyServiceImpl implements ResourcePolicyService {
/** /**
* log4j logger * log4j logger
*/ */
private static Logger log = Logger.getLogger(ResourcePolicyServiceImpl.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(ResourcePolicyServiceImpl.class);
@Autowired(required = true) @Autowired(required = true)
protected ContentServiceFactory contentServiceFactory; protected ContentServiceFactory contentServiceFactory;

View File

@@ -12,7 +12,7 @@ import java.util.ArrayList;
import java.util.List; import java.util.List;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.content.Collection; import org.dspace.content.Collection;
import org.dspace.content.Community; import org.dspace.content.Community;
import org.dspace.content.Item; import org.dspace.content.Item;
@@ -34,7 +34,7 @@ public class BrowseEngine {
/** /**
* the logger for this class * the logger for this class
*/ */
private static final Logger log = Logger.getLogger(BrowseEngine.class); private static final Logger log = org.apache.logging.log4j.LogManager.getLogger(BrowseEngine.class);
/** /**
* the browse scope which is the basis for our browse * the browse scope which is the basis for our browse

View File

@@ -11,7 +11,7 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.content.Collection; import org.dspace.content.Collection;
import org.dspace.content.Community; import org.dspace.content.Community;
import org.dspace.content.DSpaceObject; import org.dspace.content.DSpaceObject;
@@ -36,7 +36,7 @@ public class ItemCountDAOSolr implements ItemCountDAO {
/** /**
* Log4j logger * Log4j logger
*/ */
private static Logger log = Logger.getLogger(ItemCountDAOSolr.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(ItemCountDAOSolr.class);
/** /**
* DSpace context * DSpace context

View File

@@ -9,7 +9,7 @@ package org.dspace.browse;
import java.sql.SQLException; import java.sql.SQLException;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.content.Collection; import org.dspace.content.Collection;
import org.dspace.content.Community; import org.dspace.content.Community;
import org.dspace.content.DSpaceObject; import org.dspace.content.DSpaceObject;
@@ -37,7 +37,7 @@ public class ItemCounter {
/** /**
* Log4j logger * Log4j logger
*/ */
private static Logger log = Logger.getLogger(ItemCounter.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(ItemCounter.class);
/** /**
* DAO to use to store and retrieve data * DAO to use to store and retrieve data

View File

@@ -12,7 +12,7 @@ import java.util.Locale;
import com.ibm.icu.text.CollationElementIterator; import com.ibm.icu.text.CollationElementIterator;
import com.ibm.icu.text.Collator; import com.ibm.icu.text.Collator;
import com.ibm.icu.text.RuleBasedCollator; import com.ibm.icu.text.RuleBasedCollator;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.core.ConfigurationManager; import org.dspace.core.ConfigurationManager;
import org.dspace.text.filter.TextFilter; import org.dspace.text.filter.TextFilter;
@@ -32,7 +32,7 @@ import org.dspace.text.filter.TextFilter;
* @author Graham Triggs * @author Graham Triggs
*/ */
public class LocaleOrderingFilter implements TextFilter { public class LocaleOrderingFilter implements TextFilter {
private static Logger log = Logger.getLogger(LocaleOrderingFilter.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(LocaleOrderingFilter.class);
/** /**
* Uses a Locale dependent Collator to generate a sort string * Uses a Locale dependent Collator to generate a sort string

View File

@@ -16,7 +16,7 @@ import java.util.List;
import java.util.UUID; import java.util.UUID;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.authorize.factory.AuthorizeServiceFactory; import org.dspace.authorize.factory.AuthorizeServiceFactory;
import org.dspace.authorize.service.AuthorizeService; import org.dspace.authorize.service.AuthorizeService;
import org.dspace.content.DSpaceObject; import org.dspace.content.DSpaceObject;
@@ -68,7 +68,7 @@ public class SolrBrowseDAO implements BrowseDAO {
/** /**
* Log4j log * Log4j log
*/ */
private static final Logger log = Logger.getLogger(SolrBrowseDAO.class); private static final Logger log = org.apache.logging.log4j.LogManager.getLogger(SolrBrowseDAO.class);
/** /**
* The DSpace context * The DSpace context

View File

@@ -13,7 +13,7 @@ import java.util.Date;
import java.util.Map; import java.util.Map;
import org.apache.commons.collections4.MapUtils; import org.apache.commons.collections4.MapUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.checker.factory.CheckerServiceFactory; import org.dspace.checker.factory.CheckerServiceFactory;
import org.dspace.checker.service.ChecksumHistoryService; import org.dspace.checker.service.ChecksumHistoryService;
import org.dspace.checker.service.ChecksumResultService; import org.dspace.checker.service.ChecksumResultService;
@@ -42,7 +42,7 @@ public final class CheckerCommand {
/** /**
* Usual Log4J logger. * Usual Log4J logger.
*/ */
private static final Logger LOG = Logger.getLogger(CheckerCommand.class); private static final Logger LOG = org.apache.logging.log4j.LogManager.getLogger(CheckerCommand.class);
private Context context; private Context context;

View File

@@ -7,7 +7,7 @@
*/ */
package org.dspace.checker; package org.dspace.checker;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.checker.factory.CheckerServiceFactory; import org.dspace.checker.factory.CheckerServiceFactory;
import org.dspace.checker.service.ChecksumHistoryService; import org.dspace.checker.service.ChecksumHistoryService;
import org.dspace.content.Bitstream; import org.dspace.content.Bitstream;
@@ -26,7 +26,7 @@ public class CheckerConsumer implements Consumer {
/** /**
* log4j logger * log4j logger
*/ */
private static Logger log = Logger.getLogger(CheckerConsumer.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(CheckerConsumer.class);
protected ChecksumHistoryService checksumHistoryService = CheckerServiceFactory.getInstance() protected ChecksumHistoryService checksumHistoryService = CheckerServiceFactory.getInstance()
.getChecksumHistoryService(); .getChecksumHistoryService();

View File

@@ -21,7 +21,7 @@ import org.apache.commons.cli.HelpFormatter;
import org.apache.commons.cli.Options; import org.apache.commons.cli.Options;
import org.apache.commons.cli.ParseException; import org.apache.commons.cli.ParseException;
import org.apache.commons.cli.PosixParser; import org.apache.commons.cli.PosixParser;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.checker.factory.CheckerServiceFactory; import org.dspace.checker.factory.CheckerServiceFactory;
import org.dspace.checker.service.SimpleReporterService; import org.dspace.checker.service.SimpleReporterService;
import org.dspace.core.ConfigurationManager; import org.dspace.core.ConfigurationManager;
@@ -43,7 +43,7 @@ public class DailyReportEmailer {
/** /**
* log4j logger. * log4j logger.
*/ */
private static Logger log = Logger.getLogger(DailyReportEmailer.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(DailyReportEmailer.class);
/** /**
* Default constructor. * Default constructor.

View File

@@ -12,7 +12,7 @@ import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.Iterator; import java.util.Iterator;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.content.Bitstream; import org.dspace.content.Bitstream;
import org.dspace.content.DSpaceObject; import org.dspace.content.DSpaceObject;
import org.dspace.content.factory.ContentServiceFactory; import org.dspace.content.factory.ContentServiceFactory;
@@ -35,7 +35,7 @@ public class HandleDispatcher implements BitstreamDispatcher {
/** /**
* Log 4j logger. * Log 4j logger.
*/ */
private static final Logger LOG = Logger.getLogger(HandleDispatcher.class); private static final Logger LOG = org.apache.logging.log4j.LogManager.getLogger(HandleDispatcher.class);
protected Context context; protected Context context;

View File

@@ -11,7 +11,7 @@ import java.sql.SQLException;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.checker.dao.MostRecentChecksumDAO; import org.dspace.checker.dao.MostRecentChecksumDAO;
import org.dspace.checker.service.ChecksumResultService; import org.dspace.checker.service.ChecksumResultService;
import org.dspace.checker.service.MostRecentChecksumService; import org.dspace.checker.service.MostRecentChecksumService;
@@ -28,7 +28,7 @@ import org.springframework.beans.factory.annotation.Autowired;
* @author kevinvandevelde at atmire.com * @author kevinvandevelde at atmire.com
*/ */
public class MostRecentChecksumServiceImpl implements MostRecentChecksumService { public class MostRecentChecksumServiceImpl implements MostRecentChecksumService {
private static final Logger log = Logger.getLogger(MostRecentChecksumServiceImpl.class); private static final Logger log = org.apache.logging.log4j.LogManager.getLogger(MostRecentChecksumServiceImpl.class);
@Autowired(required = true) @Autowired(required = true)
protected MostRecentChecksumDAO mostRecentChecksumDAO; protected MostRecentChecksumDAO mostRecentChecksumDAO;

View File

@@ -12,7 +12,7 @@ import java.text.DateFormat;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.Date; import java.util.Date;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.content.Bitstream; import org.dspace.content.Bitstream;
import org.dspace.core.Context; import org.dspace.core.Context;
import org.dspace.core.I18nUtil; import org.dspace.core.I18nUtil;
@@ -30,7 +30,7 @@ public class ResultsLogger implements ChecksumResultsCollector {
/** /**
* Usual Log4J logger. * Usual Log4J logger.
*/ */
private static final Logger LOG = Logger.getLogger(ResultsLogger.class); private static final Logger LOG = org.apache.logging.log4j.LogManager.getLogger(ResultsLogger.class);
/** /**
* Utility date format. * Utility date format.

View File

@@ -19,7 +19,7 @@ import java.util.Properties;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.checker.factory.CheckerServiceFactory; import org.dspace.checker.factory.CheckerServiceFactory;
import org.dspace.checker.service.ChecksumHistoryService; import org.dspace.checker.service.ChecksumHistoryService;
import org.dspace.core.ConfigurationManager; import org.dspace.core.ConfigurationManager;
@@ -40,7 +40,7 @@ public final class ResultsPruner {
/** /**
* Default logger. * Default logger.
*/ */
private static final Logger LOG = Logger.getLogger(ResultsPruner.class); private static final Logger LOG = org.apache.logging.log4j.LogManager.getLogger(ResultsPruner.class);
/** /**
* Factory method for the default results pruner configuration using * Factory method for the default results pruner configuration using

View File

@@ -12,7 +12,7 @@ import java.util.Collections;
import java.util.List; import java.util.List;
import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.collections4.CollectionUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.authorize.AuthorizeException; import org.dspace.authorize.AuthorizeException;
import org.dspace.authorize.service.AuthorizeService; import org.dspace.authorize.service.AuthorizeService;
import org.dspace.content.dao.BitstreamFormatDAO; import org.dspace.content.dao.BitstreamFormatDAO;
@@ -33,7 +33,7 @@ public class BitstreamFormatServiceImpl implements BitstreamFormatService {
/** /**
* log4j logger * log4j logger
*/ */
private static Logger log = Logger.getLogger(BitstreamFormat.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(BitstreamFormat.class);
@Autowired(required = true) @Autowired(required = true)
protected BitstreamFormatDAO bitstreamFormatDAO; protected BitstreamFormatDAO bitstreamFormatDAO;

View File

@@ -16,7 +16,7 @@ import java.util.UUID;
import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.authorize.AuthorizeException; import org.dspace.authorize.AuthorizeException;
import org.dspace.authorize.service.AuthorizeService; import org.dspace.authorize.service.AuthorizeService;
import org.dspace.content.dao.BitstreamDAO; import org.dspace.content.dao.BitstreamDAO;
@@ -43,7 +43,7 @@ public class BitstreamServiceImpl extends DSpaceObjectServiceImpl<Bitstream> imp
/** /**
* log4j logger * log4j logger
*/ */
private static Logger log = Logger.getLogger(BitstreamServiceImpl.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(BitstreamServiceImpl.class);
@Autowired(required = true) @Autowired(required = true)

View File

@@ -17,7 +17,7 @@ import java.util.UUID;
import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.authorize.AuthorizeConfiguration; import org.dspace.authorize.AuthorizeConfiguration;
import org.dspace.authorize.AuthorizeException; import org.dspace.authorize.AuthorizeException;
import org.dspace.authorize.ResourcePolicy; import org.dspace.authorize.ResourcePolicy;
@@ -45,7 +45,7 @@ public class BundleServiceImpl extends DSpaceObjectServiceImpl<Bundle> implement
/** /**
* log4j logger * log4j logger
*/ */
private static Logger log = Logger.getLogger(Bundle.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(Bundle.class);
@Autowired(required = true) @Autowired(required = true)
protected BundleDAO bundleDAO; protected BundleDAO bundleDAO;

View File

@@ -21,7 +21,7 @@ import java.util.UUID;
import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.app.util.AuthorizeUtil; import org.dspace.app.util.AuthorizeUtil;
import org.dspace.authorize.AuthorizeConfiguration; import org.dspace.authorize.AuthorizeConfiguration;
import org.dspace.authorize.AuthorizeException; import org.dspace.authorize.AuthorizeException;
@@ -61,7 +61,7 @@ public class CollectionServiceImpl extends DSpaceObjectServiceImpl<Collection> i
/** /**
* log4j category * log4j category
*/ */
private static final Logger log = Logger.getLogger(CollectionServiceImpl.class); private static final Logger log = org.apache.logging.log4j.LogManager.getLogger(CollectionServiceImpl.class);
@Autowired(required = true) @Autowired(required = true)
protected CollectionDAO collectionDAO; protected CollectionDAO collectionDAO;

View File

@@ -24,7 +24,7 @@ import javax.persistence.Table;
import javax.persistence.Transient; import javax.persistence.Transient;
import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.content.comparator.NameAscendingComparator; import org.dspace.content.comparator.NameAscendingComparator;
import org.dspace.content.factory.ContentServiceFactory; import org.dspace.content.factory.ContentServiceFactory;
import org.dspace.content.service.CommunityService; import org.dspace.content.service.CommunityService;
@@ -52,7 +52,7 @@ public class Community extends DSpaceObject implements DSpaceObjectLegacySupport
/** /**
* log4j category * log4j category
*/ */
private static final Logger log = Logger.getLogger(Community.class); private static final Logger log = org.apache.logging.log4j.LogManager.getLogger(Community.class);
@Column(name = "community_id", insertable = false, updatable = false) @Column(name = "community_id", insertable = false, updatable = false)
private Integer legacyId; private Integer legacyId;

View File

@@ -18,7 +18,7 @@ import java.util.UUID;
import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.app.util.AuthorizeUtil; import org.dspace.app.util.AuthorizeUtil;
import org.dspace.authorize.AuthorizeConfiguration; import org.dspace.authorize.AuthorizeConfiguration;
import org.dspace.authorize.AuthorizeException; import org.dspace.authorize.AuthorizeException;
@@ -51,7 +51,7 @@ public class CommunityServiceImpl extends DSpaceObjectServiceImpl<Community> imp
/** /**
* log4j category * log4j category
*/ */
private static Logger log = Logger.getLogger(CommunityServiceImpl.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(CommunityServiceImpl.class);
@Autowired(required = true) @Autowired(required = true)
protected CommunityDAO communityDAO; protected CommunityDAO communityDAO;

View File

@@ -18,7 +18,7 @@ import java.util.Locale;
import java.util.Map; import java.util.Map;
import java.util.TimeZone; import java.util.TimeZone;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
// FIXME: Not very robust - assumes dates will always be valid // FIXME: Not very robust - assumes dates will always be valid
@@ -45,7 +45,7 @@ public class DCDate {
/** /**
* Logger * Logger
*/ */
private static Logger log = Logger.getLogger(DCDate.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(DCDate.class);
// UTC timezone // UTC timezone
private static final TimeZone utcZone = TimeZone.getTimeZone("UTC"); private static final TimeZone utcZone = TimeZone.getTimeZone("UTC");

View File

@@ -19,7 +19,7 @@ import java.util.StringTokenizer;
import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.ArrayUtils; import org.apache.commons.lang3.ArrayUtils;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.authorize.AuthorizeException; import org.dspace.authorize.AuthorizeException;
import org.dspace.content.authority.Choices; import org.dspace.content.authority.Choices;
import org.dspace.content.authority.service.ChoiceAuthorityService; import org.dspace.content.authority.service.ChoiceAuthorityService;
@@ -48,7 +48,7 @@ public abstract class DSpaceObjectServiceImpl<T extends DSpaceObject> implements
/** /**
* log4j category * log4j category
*/ */
private static final Logger log = Logger.getLogger(DSpaceObjectServiceImpl.class); private static final Logger log = org.apache.logging.log4j.LogManager.getLogger(DSpaceObjectServiceImpl.class);
@Autowired(required = true) @Autowired(required = true)
protected ChoiceAuthorityService choiceAuthorityService; protected ChoiceAuthorityService choiceAuthorityService;

View File

@@ -18,7 +18,7 @@ import java.util.UUID;
import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.app.util.AuthorizeUtil; import org.dspace.app.util.AuthorizeUtil;
import org.dspace.authorize.AuthorizeConfiguration; import org.dspace.authorize.AuthorizeConfiguration;
import org.dspace.authorize.AuthorizeException; import org.dspace.authorize.AuthorizeException;
@@ -63,7 +63,7 @@ public class ItemServiceImpl extends DSpaceObjectServiceImpl<Item> implements It
/** /**
* log4j category * log4j category
*/ */
private static final Logger log = Logger.getLogger(Item.class); private static final Logger log = org.apache.logging.log4j.LogManager.getLogger(Item.class);
@Autowired(required = true) @Autowired(required = true)
protected ItemDAO itemDAO; protected ItemDAO itemDAO;

View File

@@ -12,7 +12,7 @@ import java.sql.SQLException;
import java.util.List; import java.util.List;
import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.collections4.CollectionUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.authorize.AuthorizeException; import org.dspace.authorize.AuthorizeException;
import org.dspace.authorize.service.AuthorizeService; import org.dspace.authorize.service.AuthorizeService;
import org.dspace.content.dao.MetadataFieldDAO; import org.dspace.content.dao.MetadataFieldDAO;
@@ -33,7 +33,7 @@ public class MetadataFieldServiceImpl implements MetadataFieldService {
/** /**
* log4j logger * log4j logger
*/ */
private static Logger log = Logger.getLogger(MetadataFieldServiceImpl.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(MetadataFieldServiceImpl.class);
@Autowired(required = true) @Autowired(required = true)
protected MetadataFieldDAO metadataFieldDAO; protected MetadataFieldDAO metadataFieldDAO;

View File

@@ -10,7 +10,7 @@ package org.dspace.content;
import java.sql.SQLException; import java.sql.SQLException;
import java.util.List; import java.util.List;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.authorize.AuthorizeException; import org.dspace.authorize.AuthorizeException;
import org.dspace.authorize.service.AuthorizeService; import org.dspace.authorize.service.AuthorizeService;
import org.dspace.content.dao.MetadataSchemaDAO; import org.dspace.content.dao.MetadataSchemaDAO;
@@ -31,7 +31,7 @@ public class MetadataSchemaServiceImpl implements MetadataSchemaService {
/** /**
* log4j logger * log4j logger
*/ */
private static Logger log = Logger.getLogger(MetadataSchemaServiceImpl.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(MetadataSchemaServiceImpl.class);
@Autowired(required = true) @Autowired(required = true)
protected AuthorizeService authorizeService; protected AuthorizeService authorizeService;

View File

@@ -12,7 +12,7 @@ import java.sql.SQLException;
import java.util.Iterator; import java.util.Iterator;
import java.util.List; import java.util.List;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.authorize.AuthorizeException; import org.dspace.authorize.AuthorizeException;
import org.dspace.authorize.service.AuthorizeService; import org.dspace.authorize.service.AuthorizeService;
import org.dspace.content.dao.MetadataValueDAO; import org.dspace.content.dao.MetadataValueDAO;
@@ -33,7 +33,7 @@ import org.springframework.beans.factory.annotation.Autowired;
*/ */
public class MetadataValueServiceImpl implements MetadataValueService { public class MetadataValueServiceImpl implements MetadataValueService {
private static final Logger log = Logger.getLogger(MetadataValueServiceImpl.class); private static final Logger log = org.apache.logging.log4j.LogManager.getLogger(MetadataValueServiceImpl.class);
@Autowired(required = true) @Autowired(required = true)
protected AuthorizeService authorizeService; protected AuthorizeService authorizeService;

View File

@@ -13,7 +13,7 @@ import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.app.util.DCInputsReaderException; import org.dspace.app.util.DCInputsReaderException;
import org.dspace.app.util.Util; import org.dspace.app.util.Util;
import org.dspace.authorize.AuthorizeException; import org.dspace.authorize.AuthorizeException;
@@ -40,7 +40,7 @@ import org.springframework.beans.factory.annotation.Autowired;
*/ */
public class WorkspaceItemServiceImpl implements WorkspaceItemService { public class WorkspaceItemServiceImpl implements WorkspaceItemService {
private static final Logger log = Logger.getLogger(WorkspaceItemServiceImpl.class); private static final Logger log = org.apache.logging.log4j.LogManager.getLogger(WorkspaceItemServiceImpl.class);
@Autowired(required = true) @Autowired(required = true)
protected WorkspaceItemDAO workspaceItemDAO; protected WorkspaceItemDAO workspaceItemDAO;

View File

@@ -14,7 +14,7 @@ import java.util.Map;
import java.util.Set; import java.util.Set;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.app.util.DCInput; import org.dspace.app.util.DCInput;
import org.dspace.app.util.DCInputSet; import org.dspace.app.util.DCInputSet;
import org.dspace.app.util.DCInputsReader; import org.dspace.app.util.DCInputsReader;
@@ -49,7 +49,7 @@ import org.springframework.beans.factory.annotation.Autowired;
* @see ChoiceAuthority * @see ChoiceAuthority
*/ */
public final class ChoiceAuthorityServiceImpl implements ChoiceAuthorityService { public final class ChoiceAuthorityServiceImpl implements ChoiceAuthorityService {
private Logger log = Logger.getLogger(ChoiceAuthorityServiceImpl.class); private Logger log = org.apache.logging.log4j.LogManager.getLogger(ChoiceAuthorityServiceImpl.class);
// map of field key to authority plugin // map of field key to authority plugin
protected Map<String, ChoiceAuthority> controller = new HashMap<String, ChoiceAuthority>(); protected Map<String, ChoiceAuthority> controller = new HashMap<String, ChoiceAuthority>();

View File

@@ -13,7 +13,7 @@ import java.util.Iterator;
import java.util.List; import java.util.List;
import org.apache.commons.lang3.ArrayUtils; import org.apache.commons.lang3.ArrayUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.app.util.DCInputsReader; import org.dspace.app.util.DCInputsReader;
import org.dspace.app.util.DCInputsReaderException; import org.dspace.app.util.DCInputsReaderException;
import org.dspace.content.Collection; import org.dspace.content.Collection;
@@ -42,7 +42,7 @@ import org.dspace.core.SelfNamedPlugin;
* fields. * fields.
*/ */
public class DCInputAuthority extends SelfNamedPlugin implements ChoiceAuthority { public class DCInputAuthority extends SelfNamedPlugin implements ChoiceAuthority {
private static Logger log = Logger.getLogger(DCInputAuthority.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(DCInputAuthority.class);
private String values[] = null; private String values[] = null;
private String labels[] = null; private String labels[] = null;

View File

@@ -18,7 +18,7 @@ import javax.xml.xpath.XPathFactory;
import org.apache.commons.lang3.ArrayUtils; import org.apache.commons.lang3.ArrayUtils;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.content.Collection; import org.dspace.content.Collection;
import org.dspace.core.SelfNamedPlugin; import org.dspace.core.SelfNamedPlugin;
import org.dspace.services.ConfigurationService; import org.dspace.services.ConfigurationService;
@@ -56,7 +56,7 @@ import org.xml.sax.InputSource;
public class DSpaceControlledVocabulary extends SelfNamedPlugin implements ChoiceAuthority { public class DSpaceControlledVocabulary extends SelfNamedPlugin implements ChoiceAuthority {
private static Logger log = Logger.getLogger(DSpaceControlledVocabulary.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(DSpaceControlledVocabulary.class);
protected static String xpathTemplate = "//node[contains(translate(@label,'ABCDEFGHIJKLMNOPQRSTUVWXYZ'," + protected static String xpathTemplate = "//node[contains(translate(@label,'ABCDEFGHIJKLMNOPQRSTUVWXYZ'," +
"'abcdefghijklmnopqrstuvwxyz'),'%s')]"; "'abcdefghijklmnopqrstuvwxyz'),'%s')]";
protected static String idTemplate = "//node[@id = '%s']"; protected static String idTemplate = "//node[@id = '%s']";

View File

@@ -14,7 +14,7 @@ import java.util.Map;
import java.util.Set; import java.util.Set;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.app.util.DCInputsReader; import org.dspace.app.util.DCInputsReader;
import org.dspace.app.util.DCInputsReaderException; import org.dspace.app.util.DCInputsReaderException;
import org.dspace.content.Collection; import org.dspace.content.Collection;
@@ -32,7 +32,7 @@ import org.dspace.content.Collection;
*/ */
public class InputFormSelfRegisterWrapperAuthority implements ChoiceAuthority { public class InputFormSelfRegisterWrapperAuthority implements ChoiceAuthority {
private static Logger log = Logger.getLogger(InputFormSelfRegisterWrapperAuthority.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(InputFormSelfRegisterWrapperAuthority.class);
private Map<String, ChoiceAuthority> delegates = new HashMap<String, ChoiceAuthority>(); private Map<String, ChoiceAuthority> delegates = new HashMap<String, ChoiceAuthority>();

View File

@@ -22,7 +22,7 @@ import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet; import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.utils.URIBuilder; import org.apache.http.client.utils.URIBuilder;
import org.apache.http.impl.client.DefaultHttpClient; import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.content.Collection; import org.dspace.content.Collection;
import org.dspace.content.DCPersonName; import org.dspace.content.DCPersonName;
import org.dspace.core.ConfigurationManager; import org.dspace.core.ConfigurationManager;
@@ -57,7 +57,7 @@ import org.xml.sax.helpers.DefaultHandler;
* @version $Revision $ * @version $Revision $
*/ */
public class LCNameAuthority implements ChoiceAuthority { public class LCNameAuthority implements ChoiceAuthority {
private static final Logger log = Logger.getLogger(LCNameAuthority.class); private static final Logger log = org.apache.logging.log4j.LogManager.getLogger(LCNameAuthority.class);
// get these from configuration // get these from configuration
protected static String url = null; protected static String url = null;

View File

@@ -15,7 +15,7 @@ import java.util.List;
import java.util.Map; import java.util.Map;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.app.util.DCInput; import org.dspace.app.util.DCInput;
import org.dspace.app.util.DCInputSet; import org.dspace.app.util.DCInputSet;
import org.dspace.app.util.DCInputsReader; import org.dspace.app.util.DCInputsReader;
@@ -57,7 +57,7 @@ import org.springframework.beans.factory.annotation.Autowired;
* @see Choices * @see Choices
*/ */
public class MetadataAuthorityServiceImpl implements MetadataAuthorityService { public class MetadataAuthorityServiceImpl implements MetadataAuthorityService {
private static Logger log = Logger.getLogger(MetadataAuthorityServiceImpl.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(MetadataAuthorityServiceImpl.class);
@Autowired(required = true) @Autowired(required = true)
protected MetadataFieldService metadataFieldService; protected MetadataFieldService metadataFieldService;

View File

@@ -19,7 +19,7 @@ import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.utils.URLEncodedUtils; import org.apache.http.client.utils.URLEncodedUtils;
import org.apache.http.impl.client.DefaultHttpClient; import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.message.BasicNameValuePair; import org.apache.http.message.BasicNameValuePair;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.content.Collection; import org.dspace.content.Collection;
import org.dspace.core.ConfigurationManager; import org.dspace.core.ConfigurationManager;
import org.xml.sax.Attributes; import org.xml.sax.Attributes;
@@ -50,7 +50,7 @@ import org.xml.sax.helpers.DefaultHandler;
* @see SHERPARoMEOJournalTitle * @see SHERPARoMEOJournalTitle
*/ */
public abstract class SHERPARoMEOProtocol implements ChoiceAuthority { public abstract class SHERPARoMEOProtocol implements ChoiceAuthority {
private static final Logger log = Logger.getLogger(SHERPARoMEOProtocol.class); private static final Logger log = org.apache.logging.log4j.LogManager.getLogger(SHERPARoMEOProtocol.class);
// contact URL from configuration // contact URL from configuration
private static String url = null; private static String url = null;

View File

@@ -13,7 +13,7 @@ import java.util.List;
import java.util.Map; import java.util.Map;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.apache.solr.client.solrj.SolrQuery; import org.apache.solr.client.solrj.SolrQuery;
import org.apache.solr.client.solrj.response.QueryResponse; import org.apache.solr.client.solrj.response.QueryResponse;
import org.apache.solr.common.SolrDocument; import org.apache.solr.common.SolrDocument;
@@ -36,10 +36,12 @@ import org.dspace.services.factory.DSpaceServicesFactory;
*/ */
public class SolrAuthority implements ChoiceAuthority { public class SolrAuthority implements ChoiceAuthority {
private static final Logger log = Logger.getLogger(SolrAuthority.class);
protected SolrAuthorityInterface source = protected SolrAuthorityInterface source =
DSpaceServicesFactory.getInstance().getServiceManager() DSpaceServicesFactory.getInstance().getServiceManager()
.getServiceByName("AuthoritySource", SolrAuthorityInterface.class); .getServiceByName("AuthoritySource", SolrAuthorityInterface.class);
private static final Logger log = org.apache.logging.log4j.LogManager.getLogger(SolrAuthority.class);
protected boolean externalResults = false; protected boolean externalResults = false;
protected final AuthorityValueService authorityValueService = AuthorityServiceFactory.getInstance() protected final AuthorityValueService authorityValueService = AuthorityServiceFactory.getInstance()
.getAuthorityValueService(); .getAuthorityValueService();

View File

@@ -13,7 +13,7 @@ import java.util.ArrayList;
import java.util.List; import java.util.List;
import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.collections4.CollectionUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.authorize.AuthorizeException; import org.dspace.authorize.AuthorizeException;
import org.dspace.content.Bitstream; import org.dspace.content.Bitstream;
import org.dspace.content.BitstreamFormat; import org.dspace.content.BitstreamFormat;
@@ -72,7 +72,7 @@ public class AIPTechMDCrosswalk implements IngestionCrosswalk, DisseminationCros
/** /**
* log4j category * log4j category
*/ */
private static Logger log = Logger.getLogger(AIPTechMDCrosswalk.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(AIPTechMDCrosswalk.class);
protected final BitstreamFormatService bitstreamFormatService = ContentServiceFactory.getInstance() protected final BitstreamFormatService bitstreamFormatService = ContentServiceFactory.getInstance()
.getBitstreamFormatService(); .getBitstreamFormatService();
protected final SiteService siteService = ContentServiceFactory.getInstance().getSiteService(); protected final SiteService siteService = ContentServiceFactory.getInstance().getSiteService();

View File

@@ -11,7 +11,7 @@ import java.io.IOException;
import java.io.OutputStream; import java.io.OutputStream;
import java.sql.SQLException; import java.sql.SQLException;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.authorize.AuthorizeException; import org.dspace.authorize.AuthorizeException;
import org.dspace.content.Bitstream; import org.dspace.content.Bitstream;
import org.dspace.content.DSpaceObject; import org.dspace.content.DSpaceObject;
@@ -35,7 +35,7 @@ public class CreativeCommonsRDFStreamDisseminationCrosswalk
/** /**
* log4j logger * log4j logger
*/ */
private static Logger log = Logger.getLogger(CreativeCommonsRDFStreamDisseminationCrosswalk.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(CreativeCommonsRDFStreamDisseminationCrosswalk.class);
protected BitstreamService bitstreamService = ContentServiceFactory.getInstance().getBitstreamService(); protected BitstreamService bitstreamService = ContentServiceFactory.getInstance().getBitstreamService();
protected CreativeCommonsService creativeCommonsService = LicenseServiceFactory.getInstance() protected CreativeCommonsService creativeCommonsService = LicenseServiceFactory.getInstance()
.getCreativeCommonsService(); .getCreativeCommonsService();

View File

@@ -11,7 +11,7 @@ import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.sql.SQLException; import java.sql.SQLException;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.authorize.AuthorizeException; import org.dspace.authorize.AuthorizeException;
import org.dspace.content.DSpaceObject; import org.dspace.content.DSpaceObject;
import org.dspace.content.Item; import org.dspace.content.Item;
@@ -38,7 +38,7 @@ public class CreativeCommonsRDFStreamIngestionCrosswalk
/** /**
* log4j logger * log4j logger
*/ */
private static Logger log = Logger.getLogger(CreativeCommonsRDFStreamIngestionCrosswalk.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(CreativeCommonsRDFStreamIngestionCrosswalk.class);
protected CreativeCommonsService creativeCommonsService = LicenseServiceFactory.getInstance() protected CreativeCommonsService creativeCommonsService = LicenseServiceFactory.getInstance()
.getCreativeCommonsService(); .getCreativeCommonsService();

View File

@@ -11,7 +11,7 @@ import java.io.IOException;
import java.io.OutputStream; import java.io.OutputStream;
import java.sql.SQLException; import java.sql.SQLException;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.authorize.AuthorizeException; import org.dspace.authorize.AuthorizeException;
import org.dspace.content.Bitstream; import org.dspace.content.Bitstream;
import org.dspace.content.DSpaceObject; import org.dspace.content.DSpaceObject;
@@ -42,7 +42,7 @@ public class CreativeCommonsTextStreamDisseminationCrosswalk
/** /**
* log4j logger * log4j logger
*/ */
private static Logger log = Logger.getLogger(CreativeCommonsTextStreamDisseminationCrosswalk.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(CreativeCommonsTextStreamDisseminationCrosswalk.class);
@Override @Override
public boolean canDisseminate(Context context, DSpaceObject dso) { public boolean canDisseminate(Context context, DSpaceObject dso) {

View File

@@ -11,7 +11,7 @@ import java.io.IOException;
import java.io.OutputStream; import java.io.OutputStream;
import java.sql.SQLException; import java.sql.SQLException;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.authorize.AuthorizeException; import org.dspace.authorize.AuthorizeException;
import org.dspace.content.Bitstream; import org.dspace.content.Bitstream;
import org.dspace.content.DSpaceObject; import org.dspace.content.DSpaceObject;
@@ -34,7 +34,7 @@ public class LicenseStreamDisseminationCrosswalk
/** /**
* log4j logger * log4j logger
*/ */
private static Logger log = Logger.getLogger(LicenseStreamDisseminationCrosswalk.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(LicenseStreamDisseminationCrosswalk.class);
protected BitstreamService bitstreamService = ContentServiceFactory.getInstance().getBitstreamService(); protected BitstreamService bitstreamService = ContentServiceFactory.getInstance().getBitstreamService();
@Override @Override

View File

@@ -12,7 +12,7 @@ import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.sql.SQLException; import java.sql.SQLException;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.authorize.AuthorizeException; import org.dspace.authorize.AuthorizeException;
import org.dspace.content.DSpaceObject; import org.dspace.content.DSpaceObject;
import org.dspace.content.Item; import org.dspace.content.Item;
@@ -39,7 +39,7 @@ public class LicenseStreamIngestionCrosswalk
/** /**
* log4j logger * log4j logger
*/ */
private static Logger log = Logger.getLogger(LicenseStreamIngestionCrosswalk.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(LicenseStreamIngestionCrosswalk.class);
@Override @Override
public void ingest(Context context, DSpaceObject dso, InputStream in, String MIMEType) public void ingest(Context context, DSpaceObject dso, InputStream in, String MIMEType)

View File

@@ -19,7 +19,7 @@ import java.util.Map;
import org.apache.commons.lang3.ArrayUtils; import org.apache.commons.lang3.ArrayUtils;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.authorize.AuthorizeException; import org.dspace.authorize.AuthorizeException;
import org.dspace.authorize.ResourcePolicy; import org.dspace.authorize.ResourcePolicy;
import org.dspace.authorize.factory.AuthorizeServiceFactory; import org.dspace.authorize.factory.AuthorizeServiceFactory;
@@ -61,7 +61,7 @@ public class METSRightsCrosswalk
/** /**
* log4j category * log4j category
*/ */
private static Logger log = Logger.getLogger(METSRightsCrosswalk.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(METSRightsCrosswalk.class);
private static final Namespace METSRights_NS = private static final Namespace METSRights_NS =
Namespace.getNamespace("rights", "http://cosimo.stanford.edu/sdr/metsrights/"); Namespace.getNamespace("rights", "http://cosimo.stanford.edu/sdr/metsrights/");

View File

@@ -21,7 +21,7 @@ import java.util.Map;
import java.util.Properties; import java.util.Properties;
import org.apache.commons.lang3.ArrayUtils; import org.apache.commons.lang3.ArrayUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.authorize.AuthorizeException; import org.dspace.authorize.AuthorizeException;
import org.dspace.content.Collection; import org.dspace.content.Collection;
import org.dspace.content.Community; import org.dspace.content.Community;
@@ -90,7 +90,7 @@ public class MODSDisseminationCrosswalk extends SelfNamedPlugin
/** /**
* log4j category * log4j category
*/ */
private static Logger log = Logger.getLogger(MODSDisseminationCrosswalk.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(MODSDisseminationCrosswalk.class);
private static final String CONFIG_PREFIX = "crosswalk.mods.properties."; private static final String CONFIG_PREFIX = "crosswalk.mods.properties.";

View File

@@ -11,7 +11,7 @@ import java.io.IOException;
import java.sql.SQLException; import java.sql.SQLException;
import java.util.List; import java.util.List;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.authorize.AuthorizeException; import org.dspace.authorize.AuthorizeException;
import org.dspace.content.DSpaceObject; import org.dspace.content.DSpaceObject;
import org.dspace.core.Context; import org.dspace.core.Context;
@@ -43,7 +43,7 @@ public class NullIngestionCrosswalk
/** /**
* log4j category * log4j category
*/ */
private static Logger log = Logger.getLogger(NullIngestionCrosswalk.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(NullIngestionCrosswalk.class);
private static XMLOutputter outputPretty = new XMLOutputter(Format.getPrettyFormat()); private static XMLOutputter outputPretty = new XMLOutputter(Format.getPrettyFormat());

View File

@@ -20,7 +20,7 @@ import java.util.HashSet;
import java.util.List; import java.util.List;
import java.util.Set; import java.util.Set;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.authorize.AuthorizeException; import org.dspace.authorize.AuthorizeException;
import org.dspace.content.Bitstream; import org.dspace.content.Bitstream;
import org.dspace.content.BitstreamFormat; import org.dspace.content.BitstreamFormat;
@@ -54,7 +54,7 @@ public class OREIngestionCrosswalk
/** /**
* log4j category * log4j category
*/ */
private static Logger log = Logger.getLogger(OREDisseminationCrosswalk.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(OREDisseminationCrosswalk.class);
/* Namespaces */ /* Namespaces */
public static final Namespace ATOM_NS = public static final Namespace ATOM_NS =

View File

@@ -15,7 +15,7 @@ import java.util.List;
import org.apache.commons.lang3.ArrayUtils; import org.apache.commons.lang3.ArrayUtils;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.authorize.AuthorizeException; import org.dspace.authorize.AuthorizeException;
import org.dspace.content.Bitstream; import org.dspace.content.Bitstream;
import org.dspace.content.BitstreamFormat; import org.dspace.content.BitstreamFormat;
@@ -48,7 +48,7 @@ public class PREMISCrosswalk
/** /**
* log4j category * log4j category
*/ */
private static Logger log = Logger.getLogger(PREMISCrosswalk.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(PREMISCrosswalk.class);
private static final Namespace PREMIS_NS = private static final Namespace PREMIS_NS =
Namespace.getNamespace("premis", "http://www.loc.gov/standards/premis"); Namespace.getNamespace("premis", "http://www.loc.gov/standards/premis");

View File

@@ -20,7 +20,7 @@ import java.util.Map;
import java.util.Properties; import java.util.Properties;
import org.apache.commons.lang3.ArrayUtils; import org.apache.commons.lang3.ArrayUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.authorize.AuthorizeException; import org.dspace.authorize.AuthorizeException;
import org.dspace.content.DSpaceObject; import org.dspace.content.DSpaceObject;
import org.dspace.content.Item; import org.dspace.content.Item;
@@ -97,7 +97,7 @@ public class QDCCrosswalk extends SelfNamedPlugin
/** /**
* log4j category * log4j category
*/ */
private static Logger log = Logger.getLogger(QDCCrosswalk.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(QDCCrosswalk.class);
// map of qdc to JDOM Element // map of qdc to JDOM Element
private Map<String, Element> qdc2element = new HashMap<String, Element>(); private Map<String, Element> qdc2element = new HashMap<String, Element>();

View File

@@ -19,7 +19,7 @@ import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Properties; import java.util.Properties;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.authorize.AuthorizeException; import org.dspace.authorize.AuthorizeException;
import org.dspace.content.DSpaceObject; import org.dspace.content.DSpaceObject;
import org.dspace.content.Item; import org.dspace.content.Item;

View File

@@ -16,7 +16,7 @@ import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerException; import javax.xml.transform.TransformerException;
import org.apache.commons.lang3.ArrayUtils; import org.apache.commons.lang3.ArrayUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.authorize.AuthorizeException; import org.dspace.authorize.AuthorizeException;
import org.dspace.content.Collection; import org.dspace.content.Collection;
import org.dspace.content.Community; import org.dspace.content.Community;
@@ -55,7 +55,7 @@ public class XSLTIngestionCrosswalk
/** /**
* log4j category * log4j category
*/ */
private static final Logger log = Logger.getLogger(XSLTIngestionCrosswalk.class); private static final Logger log = org.apache.logging.log4j.LogManager.getLogger(XSLTIngestionCrosswalk.class);
private static final String DIRECTION = "submission"; private static final String DIRECTION = "submission";

View File

@@ -16,7 +16,7 @@ import java.util.UUID;
import javax.persistence.Query; import javax.persistence.Query;
import javax.persistence.TemporalType; import javax.persistence.TemporalType;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.content.Collection; import org.dspace.content.Collection;
import org.dspace.content.Item; import org.dspace.content.Item;
import org.dspace.content.MetadataField; import org.dspace.content.MetadataField;
@@ -42,7 +42,7 @@ import org.hibernate.type.StandardBasicTypes;
* @author kevinvandevelde at atmire.com * @author kevinvandevelde at atmire.com
*/ */
public class ItemDAOImpl extends AbstractHibernateDSODAO<Item> implements ItemDAO { public class ItemDAOImpl extends AbstractHibernateDSODAO<Item> implements ItemDAO {
private static final Logger log = Logger.getLogger(ItemDAOImpl.class); private static final Logger log = org.apache.logging.log4j.LogManager.getLogger(ItemDAOImpl.class);
protected ItemDAOImpl() { protected ItemDAOImpl() {
super(); super();

View File

@@ -53,6 +53,7 @@ import edu.harvard.hul.ois.mets.helper.MetsException;
import edu.harvard.hul.ois.mets.helper.MetsValidator; import edu.harvard.hul.ois.mets.helper.MetsValidator;
import edu.harvard.hul.ois.mets.helper.MetsWriter; import edu.harvard.hul.ois.mets.helper.MetsWriter;
import edu.harvard.hul.ois.mets.helper.PreformedXML; import edu.harvard.hul.ois.mets.helper.PreformedXML;
import org.apache.logging.log4j.Logger;
import org.dspace.app.util.Util; import org.dspace.app.util.Util;
import org.dspace.authorize.AuthorizeException; import org.dspace.authorize.AuthorizeException;
import org.dspace.authorize.factory.AuthorizeServiceFactory; import org.dspace.authorize.factory.AuthorizeServiceFactory;
@@ -125,7 +126,8 @@ public abstract class AbstractMETSDisseminator
/** /**
* log4j category * log4j category
*/ */
private static final Logger log = LoggerFactory.getLogger(AbstractMETSDisseminator.class);
private static Logger log = org.apache.logging.log4j.LogManager.getLogger(AbstractMETSDisseminator.class);
// JDOM xml output writer - indented format for readability. // JDOM xml output writer - indented format for readability.
protected static XMLOutputter outputter = new XMLOutputter(Format.getPrettyFormat()); protected static XMLOutputter outputter = new XMLOutputter(Format.getPrettyFormat());

View File

@@ -20,7 +20,7 @@ import java.util.zip.ZipEntry;
import java.util.zip.ZipFile; import java.util.zip.ZipFile;
import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.collections4.CollectionUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.authorize.AuthorizeException; import org.dspace.authorize.AuthorizeException;
import org.dspace.content.Bitstream; import org.dspace.content.Bitstream;
import org.dspace.content.BitstreamFormat; import org.dspace.content.BitstreamFormat;
@@ -109,7 +109,7 @@ public abstract class AbstractMETSIngester extends AbstractPackageIngester {
/** /**
* log4j category * log4j category
*/ */
private static Logger log = Logger.getLogger(AbstractMETSIngester.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(AbstractMETSIngester.class);
protected final BitstreamService bitstreamService = ContentServiceFactory.getInstance().getBitstreamService(); protected final BitstreamService bitstreamService = ContentServiceFactory.getInstance().getBitstreamService();
protected final BitstreamFormatService bitstreamFormatService = ContentServiceFactory.getInstance() protected final BitstreamFormatService bitstreamFormatService = ContentServiceFactory.getInstance()

View File

@@ -16,7 +16,7 @@ import java.util.LinkedHashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.authorize.AuthorizeException; import org.dspace.authorize.AuthorizeException;
import org.dspace.content.Collection; import org.dspace.content.Collection;
import org.dspace.content.DSpaceObject; import org.dspace.content.DSpaceObject;
@@ -59,7 +59,7 @@ public abstract class AbstractPackageIngester
/** /**
* log4j category * log4j category
*/ */
private static Logger log = Logger.getLogger(AbstractPackageIngester.class); private static Logger log = org.apache.logging.log4j.LogManager.getLogger(AbstractPackageIngester.class);
protected final CollectionService collectionService = ContentServiceFactory.getInstance().getCollectionService(); protected final CollectionService collectionService = ContentServiceFactory.getInstance().getCollectionService();
protected final ItemService itemService = ContentServiceFactory.getInstance().getItemService(); protected final ItemService itemService = ContentServiceFactory.getInstance().getItemService();

View File

@@ -29,7 +29,7 @@ import edu.harvard.hul.ois.mets.helper.MetsException;
import edu.harvard.hul.ois.mets.helper.PCData; import edu.harvard.hul.ois.mets.helper.PCData;
import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.ArrayUtils; import org.apache.commons.lang3.ArrayUtils;
import org.apache.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.dspace.app.util.Util; import org.dspace.app.util.Util;
import org.dspace.authorize.AuthorizeException; import org.dspace.authorize.AuthorizeException;
import org.dspace.content.Bundle; import org.dspace.content.Bundle;
@@ -82,7 +82,7 @@ import org.dspace.services.factory.DSpaceServicesFactory;
* @see AbstractPackageDisseminator * @see AbstractPackageDisseminator
*/ */
public class DSpaceAIPDisseminator extends AbstractMETSDisseminator { public class DSpaceAIPDisseminator extends AbstractMETSDisseminator {
private static final Logger log = Logger.getLogger(DSpaceAIPDisseminator.class); private static final Logger log = org.apache.logging.log4j.LogManager.getLogger(DSpaceAIPDisseminator.class);
/** /**
* Unique identifier for the profile of the METS document. * Unique identifier for the profile of the METS document.

Some files were not shown because too many files have changed in this diff Show More