public interface MediaFilterService
| Modifier and Type | Field and Description |
|---|---|
static String |
FILTER_PLUGIN_SEPARATOR |
| Modifier and Type | Method and Description |
|---|---|
void |
applyFiltersAllItems(Context context) |
void |
applyFiltersCollection(Context context,
Collection collection) |
void |
applyFiltersCommunity(Context context,
Community community) |
void |
applyFiltersItem(Context c,
Item item) |
boolean |
filterBitstream(Context c,
Item myItem,
Bitstream myBitstream)
Attempt to filter a bitstream.
|
boolean |
filterItem(Context context,
Item myItem)
Iterate through the item's bitstreams in the ORIGINAL bundle, applying
filters if possible.
|
Item |
getCurrentItem()
Return the item that is currently being processed/filtered
by the MediaFilterManager.
|
boolean |
inSkipList(String identifier)
Check whether or not to skip processing the given identifier.
|
boolean |
processBitstream(Context context,
Item item,
Bitstream source,
FormatFilter formatFilter)
A utility class that calls the virtual methods
from the current MediaFilter class.
|
void |
setFilterClasses(List<FormatFilter> filterClasses) |
void |
setFilterFormats(Map<String,List<String>> filterFormats) |
void |
setForce(boolean isForce) |
void |
setMax2Process(int max2Process) |
void |
setQuiet(boolean isQuiet) |
void |
setSkipList(List<String> skipList) |
void |
setVerbose(boolean isVerbose) |
static final String FILTER_PLUGIN_SEPARATOR
void applyFiltersCommunity(Context context, Community community) throws Exception
Exceptionvoid applyFiltersCollection(Context context, Collection collection) throws Exception
Exceptionboolean filterItem(Context context, Item myItem) throws Exception
context - contextmyItem - itemException - if errorboolean filterBitstream(Context c, Item myItem, Bitstream myBitstream) throws Exception
c - contextmyItem - itemmyBitstream - bitstreamException - if errorboolean processBitstream(Context context, Item item, Bitstream source, FormatFilter formatFilter) throws Exception
context - contextitem - item containing bitstream to processsource - source bitstream to processformatFilter - FormatFilter to perform filteringException - if error occursItem getCurrentItem()
This allows FormatFilters to retrieve the Item object in case they need access to item-level information for their format transformations/conversions.
boolean inSkipList(String identifier)
identifier - identifier (handle) of a community, collection or itemvoid setVerbose(boolean isVerbose)
void setQuiet(boolean isQuiet)
void setForce(boolean isForce)
void setMax2Process(int max2Process)
void setFilterClasses(List<FormatFilter> filterClasses)
Copyright © 2016 DuraSpace. All rights reserved.