Package com.morpheusdata.core.backup
Interface MorpheusBackupRepositoryService
- All Superinterfaces:
MorpheusDataQueryService<BackupRepository>,MorpheusDataService<BackupRepository,,BackupRepositoryIdentityProjection> MorpheusIdentityService<BackupRepositoryIdentityProjection>
public interface MorpheusBackupRepositoryService
extends MorpheusDataService<BackupRepository,BackupRepositoryIdentityProjection>, MorpheusIdentityService<BackupRepositoryIdentityProjection>
Context methods for interacting with
BackupRepository in Morpheus.- Since:
- 1.0.3
-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<Boolean>create(List<BackupRepository> addList) Deprecated, for removal: This API element is subject to removal in a future version.io.reactivex.rxjava3.core.Observable<BackupRepositoryIdentityProjection>listById(Collection<Long> ids) Deprecated, for removal: This API element is subject to removal in a future version.io.reactivex.rxjava3.core.Observable<BackupRepositoryIdentityProjection>listIdentityProjections(BackupProvider backupProvider) Deprecated, for removal: This API element is subject to removal in a future version.io.reactivex.rxjava3.core.Single<Boolean>remove(List<BackupRepositoryIdentityProjection> removeList) Deprecated, for removal: This API element is subject to removal in a future version.io.reactivex.rxjava3.core.Single<Boolean>save(List<BackupRepository> saveList) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from interface com.morpheusdata.core.MorpheusDataQueryService
count, find, get, list, list, listById, listOptions, listOptions, searchMethods inherited from interface com.morpheusdata.core.MorpheusDataService
bulkCreate, bulkRemove, bulkSave, create, remove, saveMethods inherited from interface com.morpheusdata.core.MorpheusIdentityService
getIdentityProperties, listIdentityProjections
-
Method Details
-
listIdentityProjections
@Deprecated(since="1.0.5", forRemoval=true) io.reactivex.rxjava3.core.Observable<BackupRepositoryIdentityProjection> listIdentityProjections(BackupProvider backupProvider) Deprecated, for removal: This API element is subject to removal in a future version.Lists all Backup Repository projection objects for a specified backup provider id. The projection is a subset of the properties on a fullBackupRepositoryobject for sync matching.- Parameters:
backupProvider- theAbstractBackupProvideridentifier associated to the backup repositories to be listed.- Returns:
- an RxJava Observable stream of result projection objects.
-
listById
@Deprecated(since="1.0.5", forRemoval=true) io.reactivex.rxjava3.core.Observable<BackupRepositoryIdentityProjection> listById(Collection<Long> ids) Deprecated, for removal: This API element is subject to removal in a future version.Lists allBackupRepositoryobjects by a list of Identifiers. This is commonly used in sync / caching logic.- Parameters:
ids- list ofBackupRepositoryids to fetch.- Returns:
- an RxJava Observable stream of
Backupobjects for subscription.
-
remove
@Deprecated(since="1.0.5", forRemoval=true) io.reactivex.rxjava3.core.Single<Boolean> remove(List<BackupRepositoryIdentityProjection> removeList) Deprecated, for removal: This API element is subject to removal in a future version.Removes missing Backup Repositories on the Morpheus side. This accepts the Projection Object instead of the main Object. It is important to note this is an Observer pattern and must be subscribed to in order for the action to occurExample:
morpheusContext.async.getBackupRepository().remove(removeItems).blockingGet()- Specified by:
removein interfaceMorpheusDataService<BackupRepository,BackupRepositoryIdentityProjection> - Parameters:
removeList- a list of Backup Repository projections to be removed- Returns:
- a Single
Observablereturning the success status of the operation. - See Also:
-
create
@Deprecated(since="1.0.5", forRemoval=true) io.reactivex.rxjava3.core.Single<Boolean> create(List<BackupRepository> addList) Deprecated, for removal: This API element is subject to removal in a future version.Creates new Backup Repository Domains from cache / sync implementations- Specified by:
createin interfaceMorpheusDataService<BackupRepository,BackupRepositoryIdentityProjection> - Parameters:
addList- List of newBackupRepositoryobjects to be inserted into the database- Returns:
- notification of completion
- See Also:
-
save
@Deprecated(since="1.0.5", forRemoval=true) io.reactivex.rxjava3.core.Single<Boolean> save(List<BackupRepository> saveList) Deprecated, for removal: This API element is subject to removal in a future version.Saves a list ofBackupRepositoryobjects. Be mindful this is an RxJava implementation and must be subscribed to for any action to actually take place.- Specified by:
savein interfaceMorpheusDataService<BackupRepository,BackupRepositoryIdentityProjection> - Parameters:
saveList- a List of Backup Repository objects that need to be updated in the database.- Returns:
- the Single Observable stating the success state of the save attempt
- See Also:
-