public class DPService extends java.lang.Object implements IDataProtect
| Constructor and Description | 
|---|
DPService(BmContext context,
         java.util.List<RestoreOperation> ops,
         java.util.List<IRestoreActionProvider> providers)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected static java.util.Collection<java.lang.String> | 
expandContextManageRestoreOrgUnitPerms(BmContext context)  | 
TaskRef | 
forget(int generationId)
Removes protected data 
 | 
java.util.List<DataProtectGeneration> | 
getAvailableGenerations()
Returns all protected generations, ordered from oldest to most recent 
 | 
TaskRef | 
getContent(java.lang.String generationId)
Loads an index of protected datas with possible restore actions. 
 | 
java.util.List<RestoreOperation> | 
getRestoreCapabilities()
Returns infos about the restore operations that the core provides 
 | 
java.util.List<RestoreOperation> | 
getRestoreCapabilitiesByTags(java.util.List<java.lang.String> tags)
* Returns infos about the restore operations that the core provides
 (filtered by tags) 
 | 
RetentionPolicy | 
getRetentionPolicy()
Returns the  
RetentionPolicy used for backup automatic removals. | 
protected DataProtectGenerationStore | 
getStore()  | 
TaskRef | 
installFromGeneration(int generationId)
Populates a blue mind database using protected data from a given
 generation. 
 | 
TaskRef | 
run(RestoreDefinition restoreDefinition)
Executes a restore operation on the given  
Restorable item using
 data from a DataProtectGeneration | 
TaskRef | 
saveAll()
Run the incremental dataprotect backup process 
 | 
void | 
syncWithFilesystem()
Re-creates the in-database metadata using the generations.xml index from
 the data protect spool on the filesystem. 
 | 
void | 
updatePolicy(RetentionPolicy rp)
creates or updates the  
RetentionPolicy. | 
public DPService(BmContext context, java.util.List<RestoreOperation> ops, java.util.List<IRestoreActionProvider> providers)
protected DataProtectGenerationStore getStore()
public java.util.List<DataProtectGeneration> getAvailableGenerations() throws ServerFault
IDataProtectgetAvailableGenerations in interface IDataProtectServerFaultpublic TaskRef getContent(java.lang.String generationId) throws ServerFault
IDataProtectgetContent in interface IDataProtectGenerationContent XML from TaskStatus resultServerFaultpublic java.util.List<RestoreOperation> getRestoreCapabilities() throws ServerFault
IDataProtectgetRestoreCapabilities in interface IDataProtectServerFaultpublic java.util.List<RestoreOperation> getRestoreCapabilitiesByTags(java.util.List<java.lang.String> tags) throws ServerFault
IDataProtectgetRestoreCapabilitiesByTags in interface IDataProtectServerFaultpublic TaskRef run(RestoreDefinition restoreDefinition) throws ServerFault
IDataProtectRestorable item using
 data from a DataProtectGenerationrun in interface IDataProtectServerFaultpublic TaskRef forget(int generationId) throws ServerFault
IDataProtectforget in interface IDataProtectServerFaultpublic RetentionPolicy getRetentionPolicy() throws ServerFault
IDataProtectRetentionPolicy used for backup automatic removals.
 Never returns null.getRetentionPolicy in interface IDataProtectServerFaultpublic void updatePolicy(RetentionPolicy rp) throws ServerFault
IDataProtectRetentionPolicy.updatePolicy in interface IDataProtectServerFaultpublic void syncWithFilesystem()
                        throws ServerFault
IDataProtectsyncWithFilesystem in interface IDataProtectServerFaultpublic TaskRef installFromGeneration(int generationId) throws ServerFault
IDataProtectinstallFromGeneration in interface IDataProtectServerFaultpublic TaskRef saveAll()
IDataProtectsaveAll in interface IDataProtectprotected static java.util.Collection<java.lang.String> expandContextManageRestoreOrgUnitPerms(BmContext context)
Copyright © 2023. All Rights Reserved.