Blue Mind
Release 1.0

net.bluemind.core.client.backup
Class BackupClient

java.lang.Object
  extended by net.bluemind.core.client.impl.AbstractClientImpl
      extended by net.bluemind.core.client.backup.BackupClient
All Implemented Interfaces:
IBackup, ISyncClient

public class BackupClient
extends AbstractClientImpl
implements IBackup


Field Summary
 
Fields inherited from class net.bluemind.core.client.impl.AbstractClientImpl
logger
 
Constructor Summary
BackupClient(java.lang.String backendUrl)
           
 
Method Summary
 java.lang.String backupDomains(AccessToken token)
           
 BluejobExitStatus backupDomainStatus(AccessToken token, int domainId)
           
 void backupGroup(AccessToken token, java.lang.Integer groupId)
           
 void backupMailshare(AccessToken token, int mailshareId)
           
 void backupResource(AccessToken token, int resourceId)
           
 BackupStatus backupTaskStatus(AccessToken token, java.lang.String entityType, int entityId)
           
 void backupUser(AccessToken token, int userId)
           
 ResultList<DirectoryEntry> getBackupedDomainEntitiesList(AccessToken token, BackupedEntityQuery backupedEntityQuery)
           
 java.util.List<BackupedDomain> getBackupedDomainsList(AccessToken token)
           
 Domain restoreDomain(AccessToken token, int backupServerId, java.lang.String domainName, boolean withEntities)
           
 Group restoreGroup(AccessToken token, int backupServerId, java.lang.String domainName, int backupedGroupId)
           
 void restoreGroupMembers(AccessToken token, int groupId)
           
 void restoreGroupMembers(AccessToken token, int groupId, int backupServerId, int backupedUserId)
           
 Mailshare restoreMailshare(AccessToken token, int backupServerId, java.lang.String domainName, int backupedMailshareId)
           
 void restoreMailshareMails(AccessToken token, int mailshareId, boolean replaceContent)
           
 void restoreMailshareMails(AccessToken token, int mailshareId, boolean replaceContent, int backupServerId, int backupedMailshareId)
           
 void restoreMailshareMailsAcls(AccessToken token, int mailshareId)
           
 Resource restoreResource(AccessToken token, int backupServerId, java.lang.String domainName, int backupedResourceId)
           
 void restoreResourceAcls(AccessToken token, int resourceId)
           
 void restoreResourceCalendar(AccessToken token, int resourceId)
           
 void restoreResourceCalendar(AccessToken token, int resourceId, int backupServerId, int backupedResourceId)
           
 User restoreUser(AccessToken token, int backupServerId, java.lang.String domainName, int backupedUserId)
           
 void restoreUserCalendar(AccessToken token, int userId)
           
 void restoreUserCalendar(AccessToken token, int userId, int backupServerId, int backupedUserId)
           
 void restoreUserCalendarAcls(AccessToken token, int userId)
           
 void restoreUserFolders(AccessToken token, int userId)
           
 void restoreUserFolders(AccessToken token, int userId, int backupServerId, int backupedUserId)
           
 void restoreUserFoldersAcls(AccessToken token, int userId)
           
 void restoreUserMails(AccessToken token, int userId, boolean replaceContent)
           
 void restoreUserMails(AccessToken token, int userId, boolean replaceContent, int backupServerId, int backupedUserId)
           
 void restoreUserMailsAcls(AccessToken token, int userId)
           
 
Methods inherited from class net.bluemind.core.client.impl.AbstractClientImpl
checkServerError, execute, executeStream, executeVoid, initParams, login, logout, setToken, sudo, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BackupClient

public BackupClient(java.lang.String backendUrl)
Method Detail

backupUser

public void backupUser(AccessToken token,
                       int userId)
                throws AuthFault,
                       ServerFault
Specified by:
backupUser in interface IBackup
Throws:
AuthFault
ServerFault

backupTaskStatus

public BackupStatus backupTaskStatus(AccessToken token,
                                     java.lang.String entityType,
                                     int entityId)
                              throws AuthFault,
                                     ServerFault
Specified by:
backupTaskStatus in interface IBackup
Throws:
AuthFault
ServerFault

backupMailshare

public void backupMailshare(AccessToken token,
                            int mailshareId)
                     throws AuthFault,
                            ServerFault
Specified by:
backupMailshare in interface IBackup
Throws:
AuthFault
ServerFault

backupGroup

public void backupGroup(AccessToken token,
                        java.lang.Integer groupId)
                 throws AuthFault,
                        ServerFault
Specified by:
backupGroup in interface IBackup
Throws:
AuthFault
ServerFault

backupResource

public void backupResource(AccessToken token,
                           int resourceId)
                    throws AuthFault,
                           ServerFault
Specified by:
backupResource in interface IBackup
Throws:
AuthFault
ServerFault

backupDomains

public java.lang.String backupDomains(AccessToken token)
                               throws AuthFault,
                                      ServerFault
Specified by:
backupDomains in interface IBackup
Throws:
AuthFault
ServerFault

restoreMailshareMails

public void restoreMailshareMails(AccessToken token,
                                  int mailshareId,
                                  boolean replaceContent)
                           throws AuthFault,
                                  ServerFault
Specified by:
restoreMailshareMails in interface IBackup
Throws:
AuthFault
ServerFault

restoreMailshareMails

public void restoreMailshareMails(AccessToken token,
                                  int mailshareId,
                                  boolean replaceContent,
                                  int backupServerId,
                                  int backupedMailshareId)
                           throws AuthFault,
                                  ServerFault
Specified by:
restoreMailshareMails in interface IBackup
Throws:
AuthFault
ServerFault

restoreMailshareMailsAcls

public void restoreMailshareMailsAcls(AccessToken token,
                                      int mailshareId)
                               throws AuthFault,
                                      ServerFault
Specified by:
restoreMailshareMailsAcls in interface IBackup
Throws:
AuthFault
ServerFault

restoreUserMails

public void restoreUserMails(AccessToken token,
                             int userId,
                             boolean replaceContent)
                      throws AuthFault,
                             ServerFault
Specified by:
restoreUserMails in interface IBackup
Throws:
AuthFault
ServerFault

restoreUserMails

public void restoreUserMails(AccessToken token,
                             int userId,
                             boolean replaceContent,
                             int backupServerId,
                             int backupedUserId)
                      throws AuthFault,
                             ServerFault
Specified by:
restoreUserMails in interface IBackup
Throws:
AuthFault
ServerFault

restoreUserMailsAcls

public void restoreUserMailsAcls(AccessToken token,
                                 int userId)
                          throws AuthFault,
                                 ServerFault
Specified by:
restoreUserMailsAcls in interface IBackup
Throws:
AuthFault
ServerFault

restoreUserCalendar

public void restoreUserCalendar(AccessToken token,
                                int userId)
                         throws AuthFault,
                                ServerFault
Specified by:
restoreUserCalendar in interface IBackup
Throws:
AuthFault
ServerFault

restoreUserCalendar

public void restoreUserCalendar(AccessToken token,
                                int userId,
                                int backupServerId,
                                int backupedUserId)
                         throws AuthFault,
                                ServerFault
Specified by:
restoreUserCalendar in interface IBackup
Throws:
AuthFault
ServerFault

restoreUserCalendarAcls

public void restoreUserCalendarAcls(AccessToken token,
                                    int userId)
                             throws AuthFault,
                                    ServerFault
Specified by:
restoreUserCalendarAcls in interface IBackup
Throws:
AuthFault
ServerFault

restoreResourceCalendar

public void restoreResourceCalendar(AccessToken token,
                                    int resourceId)
                             throws AuthFault,
                                    ServerFault
Specified by:
restoreResourceCalendar in interface IBackup
Throws:
AuthFault
ServerFault

restoreResourceCalendar

public void restoreResourceCalendar(AccessToken token,
                                    int resourceId,
                                    int backupServerId,
                                    int backupedResourceId)
                             throws AuthFault,
                                    ServerFault
Specified by:
restoreResourceCalendar in interface IBackup
Throws:
AuthFault
ServerFault

restoreResourceAcls

public void restoreResourceAcls(AccessToken token,
                                int resourceId)
                         throws AuthFault,
                                ServerFault
Specified by:
restoreResourceAcls in interface IBackup
Throws:
AuthFault
ServerFault

restoreGroupMembers

public void restoreGroupMembers(AccessToken token,
                                int groupId)
                         throws AuthFault,
                                ServerFault
Specified by:
restoreGroupMembers in interface IBackup
Throws:
AuthFault
ServerFault

restoreGroupMembers

public void restoreGroupMembers(AccessToken token,
                                int groupId,
                                int backupServerId,
                                int backupedUserId)
                         throws AuthFault,
                                ServerFault
Specified by:
restoreGroupMembers in interface IBackup
Throws:
AuthFault
ServerFault

getBackupedDomainsList

public java.util.List<BackupedDomain> getBackupedDomainsList(AccessToken token)
                                                      throws ServerFault,
                                                             AuthFault
Specified by:
getBackupedDomainsList in interface IBackup
Throws:
ServerFault
AuthFault

getBackupedDomainEntitiesList

public ResultList<DirectoryEntry> getBackupedDomainEntitiesList(AccessToken token,
                                                                BackupedEntityQuery backupedEntityQuery)
                                                         throws ServerFault,
                                                                AuthFault
Specified by:
getBackupedDomainEntitiesList in interface IBackup
Throws:
ServerFault
AuthFault

restoreDomain

public Domain restoreDomain(AccessToken token,
                            int backupServerId,
                            java.lang.String domainName,
                            boolean withEntities)
                     throws ServerFault,
                            AuthFault
Specified by:
restoreDomain in interface IBackup
Throws:
ServerFault
AuthFault

restoreUser

public User restoreUser(AccessToken token,
                        int backupServerId,
                        java.lang.String domainName,
                        int backupedUserId)
                 throws AuthFault,
                        ServerFault
Specified by:
restoreUser in interface IBackup
Throws:
AuthFault
ServerFault

restoreGroup

public Group restoreGroup(AccessToken token,
                          int backupServerId,
                          java.lang.String domainName,
                          int backupedGroupId)
                   throws AuthFault,
                          ServerFault
Specified by:
restoreGroup in interface IBackup
Throws:
AuthFault
ServerFault

restoreMailshare

public Mailshare restoreMailshare(AccessToken token,
                                  int backupServerId,
                                  java.lang.String domainName,
                                  int backupedMailshareId)
                           throws AuthFault,
                                  ServerFault
Specified by:
restoreMailshare in interface IBackup
Throws:
AuthFault
ServerFault

restoreResource

public Resource restoreResource(AccessToken token,
                                int backupServerId,
                                java.lang.String domainName,
                                int backupedResourceId)
                         throws AuthFault,
                                ServerFault
Specified by:
restoreResource in interface IBackup
Throws:
AuthFault
ServerFault

restoreUserFolders

public void restoreUserFolders(AccessToken token,
                               int userId)
                        throws AuthFault,
                               ServerFault
Specified by:
restoreUserFolders in interface IBackup
Throws:
AuthFault
ServerFault

restoreUserFolders

public void restoreUserFolders(AccessToken token,
                               int userId,
                               int backupServerId,
                               int backupedUserId)
                        throws AuthFault,
                               ServerFault
Specified by:
restoreUserFolders in interface IBackup
Throws:
AuthFault
ServerFault

restoreUserFoldersAcls

public void restoreUserFoldersAcls(AccessToken token,
                                   int userId)
                            throws AuthFault,
                                   ServerFault
Specified by:
restoreUserFoldersAcls in interface IBackup
Throws:
AuthFault
ServerFault

backupDomainStatus

public BluejobExitStatus backupDomainStatus(AccessToken token,
                                            int domainId)
                                     throws AuthFault,
                                            ServerFault
Specified by:
backupDomainStatus in interface IBackup
Throws:
AuthFault
ServerFault

Blue Mind
Release 1.0