Interface MissionService
- All Known Implementing Classes:
AnonMissionService,SuperUserMissionService
public interface MissionService
-
Method Summary
Modifier and TypeMethodDescriptioncreateMission(Mission mission) Creates a newMission.voiddeleteMission(String missionNameOrId) Deletes theMissionwith 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 ofMissionobjects.getMissions(int offset, int count, List<String> tags) Returns a list ofMissionobjects.updateMission(Mission mission) Updates theMission.
-
Method Details
-
getMissions
Returns a list ofMissionobjects.- Parameters:
offset- the offsetcount- the counttags- the search query- Returns:
- the list of
Missioninstances
-
getMissions
Returns a list ofMissionobjects.- Parameters:
offset- the offsetcount- the countquery- the search query- Returns:
- the list of
Missioninstances
-
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 theMissionwith the supplied id or name.- Parameters:
missionNameOrId- the mission name or ID.
-