Class IdentityFilter

java.lang.Object
de.uplanet.lucy.server.newsagent.AbstractFilter
de.uplanet.lucy.server.newsagent.IdentityFilter
All Implemented Interfaces:
IFilter

@Scriptable public final class IdentityFilter extends AbstractFilter
This filter actually performs no filtering. All items of the source collection are copied to the filtered collection.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    filter(List<de.uplanet.lucy.server.newsagent.Message> p_from, List<de.uplanet.lucy.server.newsagent.Message> p_to)
    Do the filtering, operating on array lists.
    boolean
    Indicates if post-processing is needed after SQL retrieval.
    boolean
    pass(de.uplanet.lucy.server.newsagent.Message p_message)
    Decide if the given message passes the filter.
    A SQL query for identity filtering, actually null.

    Methods inherited from class de.uplanet.lucy.server.newsagent.AbstractFilter

    forConnection, forUser

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • IdentityFilter

      public IdentityFilter()
  • Method Details

    • sqlQuery

      public String sqlQuery()
      A SQL query for identity filtering, actually null.
      Returns:
      null.
      See Also:
    • needsSqlPostProcessing

      public boolean needsSqlPostProcessing()
      Description copied from interface: IFilter
      Indicates if post-processing is needed after SQL retrieval.
      Returns:
      Always false.
      See Also:
    • pass

      public boolean pass(de.uplanet.lucy.server.newsagent.Message p_message)
      Decide if the given message passes the filter.
      Parameters:
      p_message - The message to be filtered.
      Returns:
      true for all non-null messages or false if the message parameter is null.
      See Also:
    • filter

      public void filter(List<de.uplanet.lucy.server.newsagent.Message> p_from, List<de.uplanet.lucy.server.newsagent.Message> p_to)
      Description copied from interface: IFilter
      Do the filtering, operating on array lists.
      Specified by:
      filter in interface IFilter
      Overrides:
      filter in class AbstractFilter
      Parameters:
      p_from - Collection of messages to be filtered.
      p_to - The filtered collection.