Class MediaQueryFilter

    • Field Detail

      • SKIP_UNCATEGORIZED_MEDIA_PROP

        public static java.lang.String SKIP_UNCATEGORIZED_MEDIA_PROP
      • CTXT_SHOW_ALL_MEDIA

        public static java.lang.String CTXT_SHOW_ALL_MEDIA
    • Constructor Detail

      • MediaQueryFilter

        public MediaQueryFilter()
    • 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 or channel.getProperty.

        Specified by:
        propertiesChange in interface JPropertiesListener
        Parameters:
        properties - the properties which have been submitted to change
      • 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 class QueryFilter
        Parameters:
        pub - a DB Publication
        context - the context used during the query
        Returns:
        true if the results must be kept and false if it must be ignored.