Class SuperUserMissionService
java.lang.Object
dev.getelements.elements.service.mission.AnonMissionService
dev.getelements.elements.service.mission.SuperUserMissionService
- All Implemented Interfaces:
MissionService
-
Field Summary
Fields inherited from class dev.getelements.elements.service.mission.AnonMissionService
missionDao, user
-
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.updateMission
(Mission mission) Updates theMission
.Methods inherited from class dev.getelements.elements.service.mission.AnonMissionService
getMissionByNameOrId, getMissionDao, getMissions, getMissions, getUser, setMissionDao, setUser
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.getelements.elements.sdk.service.mission.MissionService
getMissionByNameOrId, getMissions, getMissions
-
Constructor Details
-
SuperUserMissionService
public SuperUserMissionService()
-
-
Method Details
-
updateMission
Description copied from interface:MissionService
- Specified by:
updateMission
in interfaceMissionService
- Overrides:
updateMission
in classAnonMissionService
- 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
- Overrides:
createMission
in classAnonMissionService
- 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
- Overrides:
deleteMission
in classAnonMissionService
- Parameters:
missionNameOrId
- the mission name or ID.
-