Interface MultiMatchService
- All Known Implementing Classes:
SuperuserMultiMatchService,UserMultiMatchService
public interface MultiMatchService
-
Method Summary
Modifier and TypeMethodDescriptioncreateMatch(MultiMatch match) Creates aMultiMatch.voidDeletes allMultiMatchinstances.voiddeleteMatch(String matchId) Deletes aMultiMatchwith the supplied ID, as determined byMultiMatch.getId().Gets theMultiMatchwith the specified id.getMatches(int offset, int count) Gets all matches.getMatches(int offset, int count, String search) Gets all matches, specifying search criteria.updateMatch(String matchId, MultiMatch match) Updates aMultiMatch.
-
Method Details
-
getMatch
Gets theMultiMatchwith the specified id.- Parameters:
matchId- the Match ID as specified byMultiMatch.getId()- Returns:
- the
MultiMatch
-
getMatches
Gets all matches.- Parameters:
offset- the offsetcount- the count- Returns:
- a
Paginationinstance containing the requested data
-
getMatches
Gets all matches, specifying search criteria.- Parameters:
offset- the offsetcount- the count- Returns:
- a
Paginationinstance containing the requested data
-
createMatch
Creates aMultiMatch.- Parameters:
match- theMultiMatchobject- Returns:
- the
MultiMatch, as it was written to the database
-
updateMatch
Updates aMultiMatch.- Parameters:
match- theMultiMatchobject- Returns:
- the
MultiMatch, as it was written to the database
-
deleteMatch
Deletes aMultiMatchwith the supplied ID, as determined byMultiMatch.getId().- Parameters:
matchId- the match ID
-
deleteAllMatches
void deleteAllMatches()Deletes allMultiMatchinstances.
-