Interface Sortable
-
public interface Sortable
Repository domain should implement this interface in order to notify the system that they can be managed for sorting (seeSortPositionRequest
).- Author:
- Jeff Fischer
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_VALUE
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Boolean
getSorted()
Whether or not this instance is explicitly sorted (i.e.String
getSorting()
Get the value used for sortingvoid
setSorting(String sorting)
Set the value used for sortingdefault Map<String,Object>
sortableBounds()
A map of field names to values that will be used to construct the bounds of the sorting group to which this entity belongs.
-
-
-
Field Detail
-
DEFAULT_VALUE
static final String DEFAULT_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSorting
String getSorting()
Get the value used for sorting- Returns:
- The sorting value
-
setSorting
void setSorting(String sorting)
Set the value used for sorting- Parameters:
sorting
- The sorting value
-
sortableBounds
default Map<String,Object> sortableBounds()
A map of field names to values that will be used to construct the bounds of the sorting group to which this entity belongs. For example, when sorting CategoryProduct instances, you will want to limit the sorting calculations based on the Category to which this entity belongs. This information is most often used bySortPositionStrategy
components.- Returns:
- The restrictions that describe the bounds for the sorting group to which this instance belongs
-
getSorted
default Boolean getSorted()
Whether or not this instance is explicitly sorted (i.e.getSorting()
is not equal toDEFAULT_VALUE
).- Returns:
- Whether or not this instance is explicitly sorted
-
-