Class BasicUserEventFilter

java.lang.Object
net.solarnetwork.domain.SimplePagination
net.solarnetwork.central.common.dao.BasicCoreCriteria
net.solarnetwork.central.common.dao.BasicUserEventFilter
All Implemented Interfaces:
Cloneable, EnabledCriteria, LocationCriteria, NodeCriteria, NodeOwnershipCriteria, SearchFilterCriteria, SecurityTokenCriteria, SourceCriteria, TagCriteria, UserCriteria, UserEventFilter, UserEventMaintenanceDao.UserEventPurgeFilter, UserModifiableFilter, net.solarnetwork.dao.DateRangeCriteria, net.solarnetwork.dao.PaginationCriteria, net.solarnetwork.dao.SortCriteria

public class BasicUserEventFilter extends BasicCoreCriteria implements UserEventFilter, UserEventMaintenanceDao.UserEventPurgeFilter
Basic implementation of UserEventFilter.
  • Constructor Details

    • BasicUserEventFilter

      public BasicUserEventFilter()
      Constructor.
    • BasicUserEventFilter

      public BasicUserEventFilter(net.solarnetwork.dao.PaginationCriteria criteria)
      Copy constructor.
      Parameters:
      criteria - the criteria to copy
  • Method Details

    • copyFrom

      public void copyFrom(net.solarnetwork.dao.PaginationCriteria criteria)
      Description copied from class: BasicCoreCriteria
      Copy the properties of another criteria into this instance.

      This method will test for conformance to all the various criteria interfaces implemented by this class, and copy those properties as well.

      Overrides:
      copyFrom in class BasicCoreCriteria
      Parameters:
      criteria - the criteria to copy
    • clone

      public BasicUserEventFilter clone()
      Overrides:
      clone in class BasicCoreCriteria
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class BasicCoreCriteria
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class BasicCoreCriteria
    • getTags

      public String[] getTags()
      Description copied from interface: TagCriteria
      Get an array of tags.
      Specified by:
      getTags in interface TagCriteria
      Returns:
      array of tags (may be null)
    • setTags

      public void setTags(String[] tags)
      Set the tags.
      Parameters:
      tags - the tags to set
    • getTag

      public String getTag()
      Description copied from interface: TagCriteria
      Get the first tag.

      This returns the first available tag from the TagCriteria.getTags() array, or null if not available.

      Specified by:
      getTag in interface TagCriteria
      Returns:
      the tag, or null if not available
    • setTag

      public void setTag(String kind)
      Set a single tag.
      Parameters:
      tag - the tag to set
    • getStartDate

      public Instant getStartDate()
      Specified by:
      getStartDate in interface net.solarnetwork.dao.DateRangeCriteria
    • setStartDate

      public void setStartDate(Instant startDate)
      Set the start date.
      Parameters:
      startDate - the start date to set
    • getEndDate

      public Instant getEndDate()
      Specified by:
      getEndDate in interface net.solarnetwork.dao.DateRangeCriteria
    • setEndDate

      public void setEndDate(Instant endDate)
      Set the end date.
      Parameters:
      endDate - the end date to set