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 Summary
ConstructorsConstructorDescriptionConstructor.BasicUserEventFilter(net.solarnetwork.dao.PaginationCriteria criteria) Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionclone()voidcopyFrom(net.solarnetwork.dao.PaginationCriteria criteria) Copy the properties of another criteria into this instance.booleangetTag()Get the first tag.String[]getTags()Get an array of tags.inthashCode()voidsetEndDate(Instant endDate) Set the end date.voidsetStartDate(Instant startDate) Set the start date.voidSet a single tag.voidSet the tags.Methods inherited from class net.solarnetwork.central.common.dao.BasicCoreCriteria
getEnabled, getLocation, getLocationId, getLocationIds, getNodeId, getNodeIds, getOrderBy, getSearchFilter, getSourceId, getSourceIds, getTokenId, getTokenIds, getUserId, getUserIds, getValidNodeOwnership, setEnabled, setLocation, setLocationId, setLocationIds, setNodeId, setNodeIds, setOrderBy, setSearchFilter, setSourceId, setSourceIds, setTokenId, setTokenIds, setUserId, setUserIds, setValidNodeOwnershipMethods inherited from class net.solarnetwork.domain.SimplePagination
getMax, getOffset, getSorts, matches, setMax, setOffset, setSortsMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.solarnetwork.dao.DateRangeCriteria
hasDate, hasDateRange, hasEndDate, hasStartDateMethods inherited from interface net.solarnetwork.central.common.dao.EnabledCriteria
hasEnabledCriteriaMethods inherited from interface net.solarnetwork.central.common.dao.LocationCriteria
hasLocationCriteriaMethods inherited from interface net.solarnetwork.central.common.dao.NodeCriteria
hasNodeCriteriaMethods inherited from interface net.solarnetwork.central.common.dao.NodeOwnershipCriteria
hasNodeOwnershipCriteriaMethods inherited from interface net.solarnetwork.dao.PaginationCriteria
getMax, getOffset, getSorts, hasSortsMethods inherited from interface net.solarnetwork.central.common.dao.SearchFilterCriteria
getSearchFilter, hasSearchFilterCriteria, searchFilterMethods inherited from interface net.solarnetwork.central.common.dao.SecurityTokenCriteria
hasTokenCriteriaMethods inherited from interface net.solarnetwork.dao.SortCriteria
getSortsMethods inherited from interface net.solarnetwork.central.common.dao.SourceCriteria
hasSourceCriteriaMethods inherited from interface net.solarnetwork.central.common.dao.TagCriteria
hasTagCriteriaMethods inherited from interface net.solarnetwork.central.common.dao.UserCriteria
getUserId, getUserIds, hasUserCriteria
-
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:BasicCoreCriteriaCopy 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:
copyFromin classBasicCoreCriteria- Parameters:
criteria- the criteria to copy
-
clone
- Overrides:
clonein classBasicCoreCriteria
-
hashCode
public int hashCode()- Overrides:
hashCodein classBasicCoreCriteria
-
equals
- Overrides:
equalsin classBasicCoreCriteria
-
getTags
Description copied from interface:TagCriteriaGet an array of tags.- Specified by:
getTagsin interfaceTagCriteria- Returns:
- array of tags (may be null)
-
setTags
Set the tags.- Parameters:
tags- the tags to set
-
getTag
Description copied from interface:TagCriteriaGet the first tag.This returns the first available tag from the
TagCriteria.getTags()array, or null if not available.- Specified by:
getTagin interfaceTagCriteria- Returns:
- the tag, or null if not available
-
setTag
Set a single tag.- Parameters:
tag- the tag to set
-
getStartDate
- Specified by:
getStartDatein interfacenet.solarnetwork.dao.DateRangeCriteria
-
setStartDate
Set the start date.- Parameters:
startDate- the start date to set
-
getEndDate
- Specified by:
getEndDatein interfacenet.solarnetwork.dao.DateRangeCriteria
-
setEndDate
Set the end date.- Parameters:
endDate- the end date to set
-