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.voiddeleteScheduleEvent(String scheduleNameOrId, String scheduleEventId) Deletes a specific schedule event.voiddeleteScheduleEvents(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 aScheduleby name or ID.getAllScheduleEvents(String scheduleNameOrId, boolean includeExpired, boolean includeFuture, long reference) Gets allScheduleEventinstances for the suppliedScheduledev.morphia.DatastoregetMongoScheduleEventById(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) voidsetBooleanQueryParser(BooleanQueryParser booleanQueryParser) voidsetDatastore(dev.morphia.Datastore datastore) voidsetDozerMapper(MapperRegistry dozerMapperRegistry) voidsetMapper(MapperRegistry mapperRegistry) voidsetMongoDBUtils(MongoDBUtils mongoDBUtils) voidsetMongoMissionDao(MongoMissionDao mongoMissionDao) voidsetMongoScheduleDao(MongoScheduleDao mongoScheduleDao) voidsetValidationHelper(ValidationHelper validationHelper) updateScheduleEvent(ScheduleEvent scheduleEvent) Updates theScheduleEvent.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.getelements.elements.sdk.dao.ScheduleEventDao
getAllScheduleEvents, getAllScheduleEvents, getScheduleEventById
-
Constructor Details
-
MongoScheduleEventDao
public MongoScheduleEventDao()
-
-
Method Details
-
createScheduleEvent
Description copied from interface:ScheduleEventDaoCreates a newScheduleEvent.- Specified by:
createScheduleEventin interfaceScheduleEventDao- Parameters:
scheduleEvent- theScheduleEventto create- Returns:
- the object as written to the database
-
updateScheduleEvent
Description copied from interface:ScheduleEventDaoUpdates theScheduleEvent.- Specified by:
updateScheduleEventin interfaceScheduleEventDao- Parameters:
scheduleEvent- theScheduleEventto update- Returns:
- the object as written to the database
-
getScheduleEvents
Description copied from interface:ScheduleEventDao- Specified by:
getScheduleEventsin 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:
getScheduleEventsin interfaceScheduleEventDao- Parameters:
scheduleNameOrId- the name or id of theSchedulesearch- 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:ScheduleEventDaoGets allScheduleEventinstances for the suppliedSchedule- Specified by:
getAllScheduleEventsin 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:ScheduleEventDaoFinds aScheduleby name or ID.- Specified by:
findScheduleEventByIdin 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:ScheduleEventDaoDeletes all events associated with the supplied schedule id.- Specified by:
deleteScheduleEventsin interfaceScheduleEventDao- Parameters:
scheduleNameOrId- the schedule name or id
-
deleteScheduleEvent
Description copied from interface:ScheduleEventDaoDeletes a specific schedule event.- Specified by:
deleteScheduleEventin 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
-