Class MongoScheduleEventDao
java.lang.Object
dev.getelements.elements.dao.mongo.mission.MongoScheduleEventDao
- All Implemented Interfaces:
ScheduleEventDao
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateScheduleEvent
(ScheduleEvent scheduleEvent) Creates a newScheduleEvent
.void
deleteScheduleEvent
(String scheduleNameOrId, String scheduleEventId) Deletes a specific schedule event.void
deleteScheduleEvents
(String scheduleNameOrId) Deletes all events associated with the supplied schedule id.findMongoScheduleEventById
(String scheduleEventId) findMongoScheduleEventById
(String scheduleNameOrId, String scheduleEventId) findMongoScheduleEventById
(org.bson.types.ObjectId scheduleEventId) findScheduleEventById
(String scheduleNameOrId, String scheduleEventId) Finds aSchedule
by name or ID.getAllScheduleEvents
(String scheduleNameOrId, boolean includeExpired, boolean includeFuture, long reference) Gets allScheduleEvent
instances for the suppliedSchedule
dev.morphia.Datastore
getMongoScheduleEventById
(String scheduleEventId) getMongoScheduleEventById
(org.bson.types.ObjectId scheduleEventId) dev.morphia.query.Query
<MongoScheduleEvent> getScheduleEvents
(String scheduleNameOrId, int offset, int count) getScheduleEvents
(String scheduleNameOrId, int offset, int count, String search) void
setBooleanQueryParser
(BooleanQueryParser booleanQueryParser) void
setDatastore
(dev.morphia.Datastore datastore) void
setDozerMapper
(MapperRegistry dozerMapperRegistry) void
setMapper
(MapperRegistry mapperRegistry) void
setMongoDBUtils
(MongoDBUtils mongoDBUtils) void
setMongoMissionDao
(MongoMissionDao mongoMissionDao) void
setMongoScheduleDao
(MongoScheduleDao mongoScheduleDao) void
setValidationHelper
(ValidationHelper validationHelper) updateScheduleEvent
(ScheduleEvent scheduleEvent) Updates theScheduleEvent
.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.dao.ScheduleEventDao
getAllScheduleEvents, getAllScheduleEvents, getScheduleEventById
-
Constructor Details
-
MongoScheduleEventDao
public MongoScheduleEventDao()
-
-
Method Details
-
createScheduleEvent
Description copied from interface:ScheduleEventDao
Creates a newScheduleEvent
.- Specified by:
createScheduleEvent
in interfaceScheduleEventDao
- Parameters:
scheduleEvent
- theScheduleEvent
to create- Returns:
- the object as written to the database
-
updateScheduleEvent
Description copied from interface:ScheduleEventDao
Updates theScheduleEvent
.- Specified by:
updateScheduleEvent
in interfaceScheduleEventDao
- Parameters:
scheduleEvent
- theScheduleEvent
to update- Returns:
- the object as written to the database
-
getScheduleEvents
Description copied from interface:ScheduleEventDao
- Specified by:
getScheduleEvents
in interfaceScheduleEventDao
- Parameters:
scheduleNameOrId
- the name or id of theSchedule
- Returns:
- a
Pagination<ScheduleEvent>
of schedule events.
-
getScheduleEvents
public Pagination<ScheduleEvent> getScheduleEvents(String scheduleNameOrId, int offset, int count, String search) Description copied from interface:ScheduleEventDao
- Specified by:
getScheduleEvents
in interfaceScheduleEventDao
- Parameters:
scheduleNameOrId
- the name or id of theSchedule
search
- the search query- Returns:
- a
Pagination<ScheduleEvent>
of schedule events.
-
getAllScheduleEvents
public List<ScheduleEvent> getAllScheduleEvents(String scheduleNameOrId, boolean includeExpired, boolean includeFuture, long reference) Description copied from interface:ScheduleEventDao
Gets allScheduleEvent
instances for the suppliedSchedule
- Specified by:
getAllScheduleEvents
in interfaceScheduleEventDao
- Parameters:
scheduleNameOrId
- the name or id of theScheduleEvent
- Returns:
- a
List<ScheduleEvent>
of schedule events.
-
findScheduleEventById
public Optional<ScheduleEvent> findScheduleEventById(String scheduleNameOrId, String scheduleEventId) Description copied from interface:ScheduleEventDao
Finds aSchedule
by name or ID.- Specified by:
findScheduleEventById
in interfaceScheduleEventDao
- Parameters:
scheduleNameOrId
- the schedule name or idscheduleEventId
- the schedule event id- Returns:
Optional<ScheduleEvent>
-
findMongoScheduleEventById
public Optional<MongoScheduleEvent> findMongoScheduleEventById(String scheduleNameOrId, String scheduleEventId) -
getMongoScheduleEventById
-
findMongoScheduleEventById
-
getMongoScheduleEventById
-
findMongoScheduleEventById
public Optional<MongoScheduleEvent> findMongoScheduleEventById(org.bson.types.ObjectId scheduleEventId) -
getQuery
public dev.morphia.query.Query<MongoScheduleEvent> getQuery(String scheduleNameOrId, String scheduleEventId) -
deleteScheduleEvents
Description copied from interface:ScheduleEventDao
Deletes all events associated with the supplied schedule id.- Specified by:
deleteScheduleEvents
in interfaceScheduleEventDao
- Parameters:
scheduleNameOrId
- the schedule name or id
-
deleteScheduleEvent
Description copied from interface:ScheduleEventDao
Deletes a specific schedule event.- Specified by:
deleteScheduleEvent
in interfaceScheduleEventDao
- Parameters:
scheduleNameOrId
- the schedule name or idscheduleEventId
- the schedule event id
-
getDatastore
public dev.morphia.Datastore getDatastore() -
setDatastore
@Inject public void setDatastore(dev.morphia.Datastore datastore) -
getValidationHelper
-
setValidationHelper
-
getDozerMapper
-
setDozerMapper
-
getMongoDBUtils
-
setMongoDBUtils
-
getMapper
-
setMapper
-
getBooleanQueryParser
-
setBooleanQueryParser
-
getMongoMissionDao
-
setMongoMissionDao
-
getMongoScheduleDao
-
setMongoScheduleDao
-