Package com.jalios.jcms.media
Class MediaQueryFilter
- java.lang.Object
-
- com.jalios.jcms.QueryFilter
-
- com.jalios.jcms.media.MediaQueryFilter
-
- All Implemented Interfaces:
PluginComponent
,JPropertiesListener
,java.lang.Comparable
public class MediaQueryFilter extends QueryFilter implements JPropertiesListener
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CTXT_SHOW_ALL_MEDIA
static java.lang.String
SKIP_UNCATEGORIZED_MEDIA_PROP
-
Fields inherited from class com.jalios.jcms.QueryFilter
BACKOFFICE_SEARCH, FRONTOFFICE_SEARCH, order, PORTLET_QUERY
-
-
Constructor Summary
Constructors Constructor Description MediaQueryFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
callFilterDBResult(java.lang.Class clazz, java.util.Map<java.lang.String,java.lang.Object> context)
This convenient method is a simplfied version ofQueryFilter.callFilterDBResult(PublicationCriteria)
.boolean
filterDBResult(Publication pub, java.util.Map<java.lang.String,java.lang.Object> context)
This method should be overriden to filter DB results.void
propertiesChange(JProperties properties)
Invoked after properties have been modified in JCMS and save on disk.-
Methods inherited from class com.jalios.jcms.QueryFilter
callFilterDBResult, compareTo, equals, filterCriteria, filterQueryHandler, filterResultSet, getOrder, getSearchDefault, getSearchDescription, getSearchLabel, getSearchParam, init, isBackOfficeSearch, isFrontOfficeSearch, isPortletQuery
-
-
-
-
Method Detail
-
propertiesChange
public void propertiesChange(JProperties properties)
Description copied from interface:JPropertiesListener
Invoked after properties have been modified in JCMS and save on disk.You cannot alter the value received in parameters.
Note that properties parameter may be null, a limited set of site properties, or all site properties.
To check that a property has been modified, reload the "current" property instead using
channel.getProperties
orchannel.getProperty
.- Specified by:
propertiesChange
in interfaceJPropertiesListener
- Parameters:
properties
- the properties which have been submitted to change
-
callFilterDBResult
public boolean callFilterDBResult(java.lang.Class clazz, java.util.Map<java.lang.String,java.lang.Object> context)
Description copied from class:QueryFilter
This convenient method is a simplfied version ofQueryFilter.callFilterDBResult(PublicationCriteria)
.- Overrides:
callFilterDBResult
in classQueryFilter
- Parameters:
clazz
- the classcontext
- a context map.- Returns:
- true if the method
QueryFilter.filterDBResult(Publication, Map)
must be called during a DB query search.
-
filterDBResult
public boolean filterDBResult(Publication pub, java.util.Map<java.lang.String,java.lang.Object> context)
Description copied from class:QueryFilter
This method should be overriden to filter DB results.- Overrides:
filterDBResult
in classQueryFilter
- Parameters:
pub
- a DB Publicationcontext
- the context used during the query- Returns:
- true if the results must be kept and false if it must be ignored.
-
-