Class EventFilter


  • public class EventFilter
    extends Filter
    A filter to be used in event queries. The setter (by*) methods return the filter itself to provide chaining: EventFilter filter = new EventFilter().byType(type).bySource(source);
    • Constructor Detail

      • EventFilter

        public EventFilter()
    • Method Detail

      • byType

        public EventFilter byType​(String type)
        Specifies the type query parameter
        Parameters:
        type - the type of the event(s)
        Returns:
        the event filter with type set
      • bySource

        public EventFilter bySource​(GId id)
        Specifies the source query parameter
        Parameters:
        id - the managed object id that generated the event(s)
        Returns:
        the event filter with source set
      • bySource

        @Deprecated
        public EventFilter bySource​(ManagedObjectRepresentation source)
        Deprecated.
        Specifies the source query parameter
        Parameters:
        source - the managed object that generated the event(s)
        Returns:
        the event filter with source set
      • getType

        public String getType()
        Returns:
        the type parameter of the query
      • getSource

        public String getSource()
        Returns:
        the source parameter of the query
      • getFragmentType

        public String getFragmentType()
      • getFragmentValue

        public String getFragmentValue()
      • getFromDate

        public String getFromDate()
      • getToDate

        public String getToDate()
      • getCreatedFrom

        public String getCreatedFrom()
      • getCreatedTo

        public String getCreatedTo()
      • byFromCreationDate

        public EventFilter byFromCreationDate​(Date fromDate)