Package net.solarnetwork.central.support
Class SourceLocationFilter
java.lang.Object
net.solarnetwork.central.support.SourceLocationFilter
- All Implemented Interfaces:
Serializable,Filter,SourceLocation
Criteria for location data tied to a source.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.SourceLocationFilter(String source, String locationName) Construct with criteria parameters. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet a mapping of filter keys and associated filter values.getId()Get a specific ID to find.A location filter.getMax()List<net.solarnetwork.domain.SortDescriptor> List<net.solarnetwork.domain.MutableSortDescriptor> getSorts()Get the source name.inthashCode()voidChange values that are non-null but empty to null.voidvoidsetLocation(SolarLocation location) voidsetLocationName(String locationName) voidvoidvoidvoidvoidsetSourceName(String sourceName) voidsetTimeZoneId(String timeZoneId) toString()
-
Constructor Details
-
SourceLocationFilter
public SourceLocationFilter()Default constructor. -
SourceLocationFilter
Construct with criteria parameters.- Parameters:
source- the source namelocationName- the location name
-
-
Method Details
-
toString
-
removeEmptyValues
public void removeEmptyValues()Change values that are non-null but empty to null.This method is helpful for web form submission, to remove filter values that are empty and would otherwise try to match on empty string values.
-
getFilter
Description copied from interface:FilterGet a mapping of filter keys and associated filter values. -
getLocationName
-
setLocationName
-
getSourceName
-
setSourceName
-
getSource
Description copied from interface:SourceLocationGet the source name.- Specified by:
getSourcein interfaceSourceLocation- Returns:
- the source name
-
setSource
-
getLocation
Description copied from interface:SourceLocationA location filter.- Specified by:
getLocationin interfaceSourceLocation- Returns:
- the location filter
-
setLocation
-
getSortDescriptors
-
getTimeZoneId
-
setTimeZoneId
-
getSorts
-
setSorts
-
getOffset
-
setOffset
-
getMax
-
setMax
-
getId
Description copied from interface:SourceLocationGet a specific ID to find.- Specified by:
getIdin interfaceSourceLocation- Returns:
- the ID
-
setId
-
hashCode
public int hashCode() -
equals
-