Package com.exedio.cope.pattern
Class MediaFilter
java.lang.Object
com.exedio.cope.Feature
com.exedio.cope.Pattern
com.exedio.cope.pattern.MediaPath
com.exedio.cope.pattern.MediaFilter
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MediaImageioFilter
,TextUrlFilter
,TextUrlFilterDelegator
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.exedio.cope.pattern.MediaPath
MediaPath.Locator, MediaPath.Log, MediaPath.NotFound
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Date
getLastModified
(Item item) The default implementation returns null.final MediaPath.Locator
Returns the same result asgetLocator
, if this filter supports filtering thesource media
for this item.final Media
final String
Returns the same result asgetURL
, if this filter supports filtering thesource media
for this item.boolean
isFinal()
Returns, whether the contents of this media path may change or not.final boolean
A MediaPath is "mandatory" ifMediaPath.getContentType(Item)
andMediaPath.getLocator(Item)
will not returnnull
for any item.final Condition
Returns a condition matching all items, for whichMediaPath.getLocator(Item)
does not return null.final Condition
Returns a condition matching all items, for whichMediaPath.getLocator(Item)
does not return null.final Condition
isNull()
Returns a condition matching all items, for whichMediaPath.getLocator(Item)
returns null.final Condition
Returns a condition matching all items, for whichMediaPath.getLocator(Item)
returns null.Methods inherited from class com.exedio.cope.pattern.MediaPath
commit, doGetAndCommit, getContentType, getExceptionLogs, getGuessedUrlLogs, getInfo, getInvalidSpecialLogs, getIsNullLogs, getLocator, getNamedURL, getNoSuchItemLogs, getNoSuchPath, getNoSuchPathLogs, getNotAnItemLogs, getNotComputableLogs, getURL, incrementDelivered, isContentTypeWrapped, isUrlFingerPrinted, isUrlGuessingPrevented, isUrlGuessingPreventedSecurely, notFoundIsNull, notFoundNotComputable, onMount
Methods inherited from class com.exedio.cope.Pattern
addSource, addSource, addSource, addSource, addSourceFeature, addSourceFeature, addSourceFeature, annotationField, equals, getGeneratedTypes, getSourceFeatures, getSourceFeaturesGather, getSourceFields, getSources, getSourceTypes, getType, hashCode, initialize, newSourceType, newSourceType, newSourceType, newSourceType, newSourceType, newSourceType, newType, newType, registerSource
Methods inherited from class com.exedio.cope.Feature
afterModelCreated, getAbstractType, getAnnotation, getID, getLocalizationKeys, getName, getPattern, isAnnotationPresent, isSourceAlready, mount, readResolve, requireMounted, toString, toString, writeReplace
-
Constructor Details
-
MediaFilter
-
-
Method Details
-
getSource
-
getSupportedSourceContentTypes
-
isFinal
public boolean isFinal()Description copied from class:MediaPath
Returns, whether the contents of this media path may change or not. The default implementation returns false. -
getLastModified
Description copied from class:MediaPath
The default implementation returns null.- Overrides:
getLastModified
in classMediaPath
- Parameters:
item
- the item which has the LastModified information
-
getURLWithFallbackToSource
Returns the same result asgetURL
, if this filter supports filtering thesource media
for this item. Otherwise it returnsgetSource()
.getURL(item)
. -
getLocatorWithFallbackToSource
Returns the same result asgetLocator
, if this filter supports filtering thesource media
for this item. Otherwise it returnsgetSource()
.getLocator(item)
. -
isMandatory
public final boolean isMandatory()Description copied from class:MediaPath
A MediaPath is "mandatory" ifMediaPath.getContentType(Item)
andMediaPath.getLocator(Item)
will not returnnull
for any item.- Specified by:
isMandatory
in classMediaPath
-
isNull
Description copied from class:MediaPath
Returns a condition matching all items, for whichMediaPath.getLocator(Item)
returns null. -
isNull
Description copied from class:MediaPath
Returns a condition matching all items, for whichMediaPath.getLocator(Item)
returns null. -
isNotNull
Description copied from class:MediaPath
Returns a condition matching all items, for whichMediaPath.getLocator(Item)
does not return null. -
isNotNull
Description copied from class:MediaPath
Returns a condition matching all items, for whichMediaPath.getLocator(Item)
does not return null.
-