Class MongoScheduleProgressDao
java.lang.Object
dev.getelements.elements.dao.mongo.mission.MongoScheduleProgressDao
- All Implemented Interfaces:
ScheduleProgressDao
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassignProgressesForMissionsIn
(String scheduleNameOrId, String profileId, Collection<ScheduleEvent> events) dev.morphia.Datastore
getProgresses
(String profileId, String scheduleNameOrId, int offset, int count) Gets allProgress
instances with the supplied profile, schedule, and offet, countvoid
setDatastore
(dev.morphia.Datastore datastore) void
setDozerMapper
(MapperRegistry dozerMapperRegistry) void
setMapper
(MapperRegistry mapperRegistry) void
setMongoConcurrentUtils
(MongoConcurrentUtils mongoConcurrentUtils) void
setMongoDBUtils
(MongoDBUtils mongoDBUtils) void
setMongoMissionDao
(MongoMissionDao mongoMissionDao) void
setMongoProfileDao
(MongoProfileDao mongoProfileDao) void
setMongoScheduleDao
(MongoScheduleDao mongoScheduleDao) void
setMongoScheduleEventDao
(MongoScheduleEventDao mongoScheduleEventDao) void
setValidationHelper
(ValidationHelper validationHelper) unassignProgressesForMissionsNotIn
(String scheduleNameOrId, String profileId, Collection<ScheduleEvent> events)
-
Constructor Details
-
MongoScheduleProgressDao
public MongoScheduleProgressDao()
-
-
Method Details
-
getProgresses
public Pagination<Progress> getProgresses(String profileId, String scheduleNameOrId, int offset, int count) Description copied from interface:ScheduleProgressDao
Gets allProgress
instances with the supplied profile, schedule, and offet, count- Specified by:
getProgresses
in interfaceScheduleProgressDao
- Parameters:
profileId
-scheduleNameOrId
-offset
-count
-- Returns:
-
assignProgressesForMissionsIn
public List<Progress> assignProgressesForMissionsIn(String scheduleNameOrId, String profileId, Collection<ScheduleEvent> events) Description copied from interface:ScheduleProgressDao
CreatesProgress
instances forMission
s in the supplied list. If the missions are already assigned, then no changes will be made. If aProgress
with the mission is already assigned, then this will ensure that theMission
is now linked to theSchedule
if not already assigned.- Specified by:
assignProgressesForMissionsIn
in interfaceScheduleProgressDao
- Parameters:
scheduleNameOrId
- theSchedule
name or IDprofileId
-Profile
identifierevents
-- Returns:
-
unassignProgressesForMissionsNotIn
public List<Progress> unassignProgressesForMissionsNotIn(String scheduleNameOrId, String profileId, Collection<ScheduleEvent> events) Description copied from interface:ScheduleProgressDao
DeletesProgress
instances forMission
s not in the supplied list. If no otherSchedule
links theMission
, then this will permamently remove theProgress
instances.- Specified by:
unassignProgressesForMissionsNotIn
in interfaceScheduleProgressDao
- Parameters:
scheduleNameOrId
- theSchedule
name or IDprofileId
-Profile
identifierevents
-- Returns:
-
getDatastore
public dev.morphia.Datastore getDatastore() -
setDatastore
@Inject public void setDatastore(dev.morphia.Datastore datastore) -
getValidationHelper
-
setValidationHelper
-
getDozerMapper
-
setDozerMapper
-
getMongoDBUtils
-
setMongoDBUtils
-
getMapper
-
setMapper
-
getMongoProfileDao
-
setMongoProfileDao
-
getMongoMissionDao
-
setMongoMissionDao
-
getMongoScheduleDao
-
setMongoScheduleDao
-
getMongoScheduleEventDao
-
setMongoScheduleEventDao
-
getMongoConcurrentUtils
-
setMongoConcurrentUtils
-