Class BasicMemberQueryFilter

    • Field Detail

      • order

        protected int order
    • Constructor Detail

      • BasicMemberQueryFilter

        public BasicMemberQueryFilter()
        Constructs a QueryFilter with order = 0
        Since:
        jcms-6.1.0
      • BasicMemberQueryFilter

        public BasicMemberQueryFilter​(int order)
        Constructs a QueryFilter with the given order
        Parameters:
        order - the order
        Since:
        jcms-6.1.0
    • Method Detail

      • init

        public boolean init​(Plugin plugin)
        Description copied from interface: PluginComponent
        Initialize the component with the given plugin configuration
        Specified by:
        init in interface PluginComponent
        Parameters:
        plugin - the calling plugin
        Returns:
        true if the component has been correctly initialized.
        Since:
        jcms-5.7.2
        See Also:
        PluginComponent.init(Plugin)
      • filterMemberQueryHandler

        public void filterMemberQueryHandler​(MemberQueryHandler mqh,
                                             java.util.Map<java.lang.String,​java.lang.Object> context)
        This method should be overriden to filter the value of the MemberQueryHandler
        Specified by:
        filterMemberQueryHandler in interface MemberQueryFilter
        Parameters:
        mqh - the MemberQueryHandler
        context - the context. Can be used to exchange data between custom MemberQueryFilters.
        Since:
        jcms-6.1.0
      • filterResultSet

        public java.util.Set<Member> filterResultSet​(MemberQueryHandler mqh,
                                                     java.util.Set<Member> set,
                                                     java.util.Map<java.lang.String,​java.lang.Object> context)
        This method should be overriden to filter the result set
        Specified by:
        filterResultSet in interface MemberQueryFilter
        Parameters:
        mqh - the MemberQueryHandler
        set - the result set
        context - the context. Can be used to exchange data between custom MemberQueryFilters.
        Returns:
        the (filtered) result set
        Since:
        jcms-6.1.0
      • filterMemberQueryHandler

        public void filterMemberQueryHandler​(DBMemberQueryHandler dbmqh,
                                             java.util.Map<java.lang.String,​java.lang.Object> context)
        This method should be overriden to filter the value of the DBMemberQueryHandler
        Specified by:
        filterMemberQueryHandler in interface MemberQueryFilter
        Parameters:
        dbmqh - the DBMemberQueryHandler
        context - the context. Can be used to exchange data between custom MemberQueryFilters.
        Since:
        jcms-6.1.0
      • filterPageResult

        public PageResult<DBMember> filterPageResult​(DBMemberQueryHandler dbmqh,
                                                     PageResult<DBMember> pr,
                                                     java.util.Map<java.lang.String,​java.lang.Object> context)
        This method should be overriden to filter the page result of a DBMemberQueryHandler..
        Specified by:
        filterPageResult in interface MemberQueryFilter
        Parameters:
        dbmqh - the DBMemberQueryHandler
        pr - the page result
        context - the context. Can be used to exchange data between custom MemberQueryFilters.
        Returns:
        the (filtered) page result
        Since:
        jcms-6.1.0
      • filterResultList

        public java.util.List<java.lang.String> filterResultList​(DBMemberQueryHandler dbmqh,
                                                                 java.util.List<java.lang.String> list,
                                                                 java.util.Map<java.lang.String,​java.lang.Object> context)
        This method should be overriden to filter the result list of a DBMemberQueryHandler.
        Specified by:
        filterResultList in interface MemberQueryFilter
        Parameters:
        dbmqh - the DBMemberQueryHandler
        list - the list of member id to filter
        context - the context. Can be used to exchange data between custom MemberQueryFilters.
        Returns:
        the (filtered) list
        Since:
        jcms-6.1.0
      • filterMemberQueryHandler

        public void filterMemberQueryHandler​(AllMemberQueryHandler amqh,
                                             java.util.Map<java.lang.String,​java.lang.Object> context)
        This method should be overriden to filter the value of the AllMemberQueryHandler
        Specified by:
        filterMemberQueryHandler in interface MemberQueryFilter
        Parameters:
        amqh - the AllMemberQueryHandler
        context - the context. Can be used to exchange data between custom MemberQueryFilters.
        Since:
        jcms-6.1.0
      • filterPageResult

        public PageResult<Member> filterPageResult​(AllMemberQueryHandler amqh,
                                                   PageResult<Member> pr,
                                                   java.util.Map<java.lang.String,​java.lang.Object> context)
        This method should be overriden to filter the page result of a AllMemberQueryHandler..
        Specified by:
        filterPageResult in interface MemberQueryFilter
        Parameters:
        amqh - the AllMemberQueryHandler
        pr - the page result
        context - the context. Can be used to exchange data between custom MemberQueryFilters.
        Returns:
        the (filtered) page result
        Since:
        jcms-6.1.0
      • filterResultList

        public java.util.List<java.lang.String> filterResultList​(AllMemberQueryHandler amqh,
                                                                 java.util.List<java.lang.String> list,
                                                                 java.util.Map<java.lang.String,​java.lang.Object> context)
        This method should be overriden to filter the result list of a AllMemberQueryHandler.
        Specified by:
        filterResultList in interface MemberQueryFilter
        Parameters:
        amqh - the AllMemberQueryHandler
        list - the list of member id to filter
        context - the context. Can be used to exchange data between custom MemberQueryFilters.
        Returns:
        the (filtered) list
        Since:
        jcms-6.1.0