Class LevelVariablesRequest
- java.lang.Object
-
- com.treescrub.spedran.ResourceCollectionRequest<Variable>
-
- com.treescrub.spedran.requests.builders.LevelVariablesRequest
-
public class LevelVariablesRequest extends ResourceCollectionRequest<Variable>
-
-
Constructor Summary
Constructors Constructor Description LevelVariablesRequest(Level level)LevelVariablesRequest(String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LevelVariablesRequestsortByMandatory()Sorts the variables by theVariable.isMandatory()boolean flag.LevelVariablesRequestsortByName()Sorts the variables alphanumerically by the variable name.LevelVariablesRequestsortByPosition()Sorts the variables by the moderator defined position.LevelVariablesRequestsortByUserDefined()Sorts the variables by theVariable.isUserDefined()boolean flag.LevelVariablesRequestsortDirection(SortDirection direction)Sets the direction (ascending or descending) of the sorting.-
Methods inherited from class com.treescrub.spedran.ResourceCollectionRequest
complete
-
-
-
-
Method Detail
-
sortByName
public LevelVariablesRequest sortByName()
Sorts the variables alphanumerically by the variable name.- Returns:
- this
LevelVariablesRequestbuilder
-
sortByMandatory
public LevelVariablesRequest sortByMandatory()
Sorts the variables by theVariable.isMandatory()boolean flag.- Returns:
- this
LevelVariablesRequestbuilder
-
sortByUserDefined
public LevelVariablesRequest sortByUserDefined()
Sorts the variables by theVariable.isUserDefined()boolean flag.- Returns:
- this
LevelVariablesRequestbuilder
-
sortByPosition
public LevelVariablesRequest sortByPosition()
Sorts the variables by the moderator defined position.- Returns:
- this
LevelVariablesRequestbuilder
-
sortDirection
public LevelVariablesRequest sortDirection(SortDirection direction)
Sets the direction (ascending or descending) of the sorting.- Parameters:
direction- the sort direction- Returns:
- this
LevelVariablesRequestbuilder
-
-