Interface MissionService
- All Known Implementing Classes:
AnonMissionService
,SuperUserMissionService
public interface MissionService
-
Method Summary
Modifier and TypeMethodDescriptioncreateMission
(Mission mission) Creates a newMission
.void
deleteMission
(String missionNameOrId) Deletes theMission
with the supplied id or name.getMissionByNameOrId
(String missionNameOrId) Gets a mission with specified name or ID.getMissions
(int offset, int count, String query) Returns a list ofMission
objects.getMissions
(int offset, int count, List<String> tags) Returns a list ofMission
objects.updateMission
(Mission mission) Updates theMission
.
-
Method Details
-
getMissions
Returns a list ofMission
objects.- Parameters:
offset
- the offsetcount
- the counttags
- the search query- Returns:
- the list of
Mission
instances
-
getMissions
Returns a list ofMission
objects.- Parameters:
offset
- the offsetcount
- the countquery
- the search query- Returns:
- the list of
Mission
instances
-
getMissionByNameOrId
Gets a mission with specified name or ID.- Parameters:
missionNameOrId
- the UserId- Returns:
- the mission
-
updateMission
-
createMission
Creates a newMission
. The ID of the mission, as specified byMission.getId()
, should be null and will be assigned. -
deleteMission
Deletes theMission
with the supplied id or name.- Parameters:
missionNameOrId
- the mission name or ID.
-