Class AnonMissionService
java.lang.Object
dev.getelements.elements.service.mission.AnonMissionService
- All Implemented Interfaces:
MissionService
- Direct Known Subclasses:
SuperUserMissionService
-
Field Summary
Fields -
Constructor Summary
Constructors -
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.voidgetMissionDao(MissionDao missionDao) getMissions(int offset, int count, String query) Returns a list ofMissionobjects.getMissions(int offset, int count, List<String> tags) Returns a list ofMissionobjects.getUser()voidupdateMission(Mission mission) Updates theMission.
-
Field Details
-
user
-
missionDao
-
-
Constructor Details
-
AnonMissionService
public AnonMissionService()
-
-
Method Details
-
getMissionByNameOrId
Description copied from interface:MissionServiceGets a mission with specified name or ID.- Specified by:
getMissionByNameOrIdin interfaceMissionService- Parameters:
missionNameOrId- the UserId- Returns:
- the mission
-
getMissions
Description copied from interface:MissionServiceReturns a list ofMissionobjects.- Specified by:
getMissionsin interfaceMissionService- Parameters:
offset- the offsetcount- the counttags- the search query- Returns:
- the list of
Missioninstances
-
getMissions
Description copied from interface:MissionServiceReturns a list ofMissionobjects.- Specified by:
getMissionsin interfaceMissionService- Parameters:
offset- the offsetcount- the countquery- the search query- Returns:
- the list of
Missioninstances
-
updateMission
Description copied from interface:MissionService- Specified by:
updateMissionin interfaceMissionService- Parameters:
mission- theMissionto update- Returns:
- the
Missionas it was written to the database
-
createMission
Description copied from interface:MissionServiceCreates a newMission. The ID of the mission, as specified byMission.getId(), should be null and will be assigned.- Specified by:
createMissionin interfaceMissionService- Parameters:
mission- theMissionto create- Returns:
- the
Missionas it was created by the service.
-
deleteMission
Description copied from interface:MissionServiceDeletes theMissionwith the supplied id or name.- Specified by:
deleteMissionin interfaceMissionService- Parameters:
missionNameOrId- the mission name or ID.
-
setMissionDao
-
getMissionDao
-
getUser
-
setUser
-