Squash use of deprecated Context.setIgnoreAuthorization (and tidy some doc comments)

git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@6495 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Mark Wood
2011-07-18 20:37:26 +00:00
parent a5431e261e
commit bc6b9af830

View File

@@ -45,7 +45,7 @@ import org.dspace.search.DSIndexer;
/** /**
* MediaFilterManager is the class that invokes the media/format filters over the * MediaFilterManager is the class that invokes the media/format filters over the
* repository's content. a few command line flags affect the operation of the * repository's content. A few command line flags affect the operation of the
* MFM: -v verbose outputs all extracted text to STDOUT; -f force forces all * MFM: -v verbose outputs all extracted text to STDOUT; -f force forces all
* bitstreams to be processed, even if they have been before; -n noindex does not * bitstreams to be processed, even if they have been before; -n noindex does not
* recreate index after processing bitstreams; -i [identifier] limits processing * recreate index after processing bitstreams; -i [identifier] limits processing
@@ -325,7 +325,7 @@ public class MediaFilterManager
c = new Context(); c = new Context();
// have to be super-user to do the filtering // have to be super-user to do the filtering
c.setIgnoreAuthorization(true); c.turnOffAuthorisationSystem();
// now apply the filters // now apply the filters
if (identifier == null) if (identifier == null)
@@ -490,8 +490,8 @@ public class MediaFilterManager
} }
/** /**
* iterate through the item's bitstreams in the ORIGINAL bundle, applying * Iterate through the item's bitstreams in the ORIGINAL bundle, applying
* filters if possible * filters if possible.
* *
* @return true if any bitstreams processed, * @return true if any bitstreams processed,
* false if none * false if none
@@ -515,10 +515,10 @@ public class MediaFilterManager
} }
/** /**
* Attempt to filter a bitstream * Attempt to filter a bitstream.
* *
* An exception will be thrown if the media filter class cannot be * An exception will be thrown if the media filter class cannot be
* instantiated, exceptions from filtering will be logged to STDOUT and * instantiated. Exceptions from filtering will be logged to STDOUT and
* swallowed. * swallowed.
* *
* @return true if bitstream processed, * @return true if bitstream processed,
@@ -573,7 +573,7 @@ public class MediaFilterManager
String checksum = myBitstream.getChecksum() + " ("+myBitstream.getChecksumAlgorithm()+")"; String checksum = myBitstream.getChecksum() + " ("+myBitstream.getChecksumAlgorithm()+")";
int assetstore = myBitstream.getStoreNumber(); int assetstore = myBitstream.getStoreNumber();
// Printout helpfull information to find the errored bistream. // Printout helpful information to find the errored bitstream.
System.out.println("ERROR filtering, skipping bitstream:\n"); System.out.println("ERROR filtering, skipping bitstream:\n");
System.out.println("\tItem Handle: "+ handle); System.out.println("\tItem Handle: "+ handle);
for (Bundle bundle : bundles) for (Bundle bundle : bundles)
@@ -666,7 +666,7 @@ public class MediaFilterManager
} }
/** /**
* processBitstream is a utility class that calls the virtual methods * A utility class that calls the virtual methods
* from the current MediaFilter class. * from the current MediaFilter class.
* It scans the bitstreams in an item, and decides if a bitstream has * It scans the bitstreams in an item, and decides if a bitstream has
* already been filtered, and if not or if overWrite is set, invokes the * already been filtered, and if not or if overWrite is set, invokes the
@@ -797,7 +797,7 @@ public class MediaFilterManager
/** /**
* Return the item that is currently being processed/filtered * Return the item that is currently being processed/filtered
* by the MediaFilterManager * by the MediaFilterManager.
* <p> * <p>
* This allows FormatFilters to retrieve the Item object * This allows FormatFilters to retrieve the Item object
* in case they need access to item-level information for their format * in case they need access to item-level information for their format
@@ -811,7 +811,7 @@ public class MediaFilterManager
} }
/** /**
* Check whether or not to skip processing the given identifier * Check whether or not to skip processing the given identifier.
* *
* @param identifier * @param identifier
* identifier (handle) of a community, collection or item * identifier (handle) of a community, collection or item