1 40 41 package org.dspace.content.crosswalk; 42 43 import java.io.IOException ; 44 import java.sql.SQLException ; 45 import java.util.Iterator ; 46 import java.util.List ; 47 48 import java.sql.SQLException ; 49 50 import org.apache.log4j.Logger; 51 52 import org.dspace.core.Context; 53 import org.dspace.core.Constants; 54 import org.dspace.content.DSpaceObject; 55 import org.dspace.authorize.AuthorizeException; 56 57 import org.jdom.*; 58 import org.jdom.output.XMLOutputter; 59 import org.jdom.output.Format; 60 61 79 public class NullIngestionCrosswalk 80 implements IngestionCrosswalk 81 { 82 83 private static Logger log = Logger.getLogger(NullIngestionCrosswalk.class); 84 85 private static XMLOutputter outputPretty = new XMLOutputter(Format.getPrettyFormat()); 86 87 public void ingest(Context context, DSpaceObject dso, Element root) 88 throws CrosswalkException, IOException , SQLException , AuthorizeException 89 { 90 log.debug("Null crosswalk is ignoring this metadata Element: \n"+ 92 outputPretty.outputString(root)); 93 } 94 95 public void ingest(Context context, DSpaceObject dso, List ml) 96 throws CrosswalkException, IOException , SQLException , AuthorizeException 97 { 98 log.debug("Null crosswalk is ignoring this List of metadata: \n"+ 100 outputPretty.outputString(ml)); 101 } 102 103 public boolean preferList() 104 { 105 return false; 106 } 107 } 108 | Popular Tags |