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
.void
deleteMission
(String missionNameOrId) Deletes theMission
with the supplied id or name.getMissionByNameOrId
(String missionNameOrId) Gets a mission with specified name or ID.void
getMissionDao
(MissionDao missionDao) 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.getUser()
void
updateMission
(Mission mission) Updates theMission
.
-
Field Details
-
user
-
missionDao
-
-
Constructor Details
-
AnonMissionService
public AnonMissionService()
-
-
Method Details
-
getMissionByNameOrId
Description copied from interface:MissionService
Gets a mission with specified name or ID.- Specified by:
getMissionByNameOrId
in interfaceMissionService
- Parameters:
missionNameOrId
- the UserId- Returns:
- the mission
-
getMissions
Description copied from interface:MissionService
Returns a list ofMission
objects.- Specified by:
getMissions
in interfaceMissionService
- Parameters:
offset
- the offsetcount
- the counttags
- the search query- Returns:
- the list of
Mission
instances
-
getMissions
Description copied from interface:MissionService
Returns a list ofMission
objects.- Specified by:
getMissions
in interfaceMissionService
- Parameters:
offset
- the offsetcount
- the countquery
- the search query- Returns:
- the list of
Mission
instances
-
updateMission
Description copied from interface:MissionService
- Specified by:
updateMission
in interfaceMissionService
- Parameters:
mission
- theMission
to update- Returns:
- the
Mission
as it was written to the database
-
createMission
Description copied from interface:MissionService
Creates a newMission
. The ID of the mission, as specified byMission.getId()
, should be null and will be assigned.- Specified by:
createMission
in interfaceMissionService
- Parameters:
mission
- theMission
to create- Returns:
- the
Mission
as it was created by the service.
-
deleteMission
Description copied from interface:MissionService
Deletes theMission
with the supplied id or name.- Specified by:
deleteMission
in interfaceMissionService
- Parameters:
missionNameOrId
- the mission name or ID.
-
setMissionDao
-
getMissionDao
-
getUser
-
setUser
-