Package com.morpheusdata.core
Interface MorpheusOperationNotificationService
-
public interface MorpheusOperationNotificationService
Context methods for syncing OperationNotifications in Morpheus
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.reactivex.Single<java.lang.Boolean>
create(java.util.List<OperationNotification> operationNotifications)
Create new OperationNotifications in Morpheusio.reactivex.Observable<OperationNotification>
listById(java.util.Collection<java.lang.Long> ids)
Get a list of OperationNotification objects from a list of projection idsio.reactivex.Observable<OperationNotificationIdentityProjection>
listSyncProjections(java.lang.String category)
Get a list of OperationNotification projections based on a category nameio.reactivex.Single<java.lang.Boolean>
remove(java.util.List<OperationNotificationIdentityProjection> operationNotifications)
Remove persisted OperationNotifications from Morpheusio.reactivex.Single<java.lang.Boolean>
save(java.util.List<OperationNotification> operationNotifications)
Save updates to existing OperationNotification
-
-
-
Method Detail
-
listSyncProjections
io.reactivex.Observable<OperationNotificationIdentityProjection> listSyncProjections(java.lang.String category)
Get a list of OperationNotification projections based on a category name- Parameters:
category
- category- Returns:
- Observable stream of sync projection
-
listById
io.reactivex.Observable<OperationNotification> listById(java.util.Collection<java.lang.Long> ids)
Get a list of OperationNotification objects from a list of projection ids- Parameters:
ids
- OperationNotification ids- Returns:
- Observable stream of OperationNotification
-
save
io.reactivex.Single<java.lang.Boolean> save(java.util.List<OperationNotification> operationNotifications)
Save updates to existing OperationNotification- Parameters:
operationNotifications
- updated OperationNotifications- Returns:
- success
-
create
io.reactivex.Single<java.lang.Boolean> create(java.util.List<OperationNotification> operationNotifications)
Create new OperationNotifications in Morpheus- Parameters:
operationNotifications
- new OperationNotification to persist- Returns:
- success
-
remove
io.reactivex.Single<java.lang.Boolean> remove(java.util.List<OperationNotificationIdentityProjection> operationNotifications)
Remove persisted OperationNotifications from Morpheus- Parameters:
operationNotifications
- OperationNotifications to delete- Returns:
- success
-
-