Class AllSeriesRequest
- java.lang.Object
-
- com.treescrub.spedran.ResourceCollectionRequest<Series>
-
- com.treescrub.spedran.requests.builders.series.AllSeriesRequest
-
public class AllSeriesRequest extends ResourceCollectionRequest<Series>
A request builder to get allSeriesmatching the set filters.
-
-
Constructor Summary
Constructors Constructor Description AllSeriesRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AllSeriesRequestabbreviation(String abbreviation)Search for an exact series abbreviation.AllSeriesRequestmoderator(User user)Restricts the results to series moderated by the givenUser.AllSeriesRequestmoderator(String id)Restricts the results to series moderated by the givenUser.AllSeriesRequestname(String name)Use a fuzzy search to filter series names and abbreviations.AllSeriesRequestsortByAbbreviation()Sorts the results alphanumerically by the abbreviation of the series.AllSeriesRequestsortByCreationDate()Sorts the results by the creation time of the series on SRC.AllSeriesRequestsortByInternationalName()Sorts the results alphanumerically by the international name of the series.AllSeriesRequestsortByJapaneseName()Sorts the results alphanumerically by the Japanese name of the series.AllSeriesRequestsortDirection(SortDirection direction)Sets the direction (ascending or descending) of the sorting.-
Methods inherited from class com.treescrub.spedran.ResourceCollectionRequest
complete
-
-
-
-
Method Detail
-
name
public AllSeriesRequest name(String name)
Use a fuzzy search to filter series names and abbreviations.- Parameters:
name- theStringto search for- Returns:
- this
AllSeriesRequestbuilder
-
abbreviation
public AllSeriesRequest abbreviation(String abbreviation)
Search for an exact series abbreviation.- Parameters:
abbreviation- the abbreviation to search for- Returns:
- this
AllSeriesRequestbuilder
-
moderator
public AllSeriesRequest moderator(String id)
Restricts the results to series moderated by the givenUser.- Parameters:
id- the user ID- Returns:
- this
AllSeriesRequestbuilder
-
moderator
public AllSeriesRequest moderator(User user)
Restricts the results to series moderated by the givenUser.- Parameters:
user- the user- Returns:
- this
AllSeriesRequestbuilder
-
sortByInternationalName
public AllSeriesRequest sortByInternationalName()
Sorts the results alphanumerically by the international name of the series.- Returns:
- this
AllSeriesRequestbuilder
-
sortByJapaneseName
public AllSeriesRequest sortByJapaneseName()
Sorts the results alphanumerically by the Japanese name of the series.- Returns:
- this
AllSeriesRequestbuilder
-
sortByAbbreviation
public AllSeriesRequest sortByAbbreviation()
Sorts the results alphanumerically by the abbreviation of the series.- Returns:
- this
AllSeriesRequestbuilder
-
sortByCreationDate
public AllSeriesRequest sortByCreationDate()
Sorts the results by the creation time of the series on SRC.- Returns:
- this
AllSeriesRequestbuilder
-
sortDirection
public AllSeriesRequest sortDirection(SortDirection direction)
Sets the direction (ascending or descending) of the sorting.- Parameters:
direction- the sort direction- Returns:
- this
AllSeriesRequestbuilder
-
-