コード例 #1
0
 public void UpdatePreservationUser(PreservationUser user, string archiveName)
 {
     try
     {
         var svc = new PreservationService();
         svc.UpdatePreservationUser(user, svc.GetIdPreservationArchiveFromName(archiveName));
     }
     catch (Exception ex)
     {
         throw CheckExceptionToThrow(ex);
     }
 }
コード例 #2
0
 public PreservationUser AddPreservationUser(PreservationUser user, string archiveName)
 {
     try
     {
         var svc = new PreservationService();
         return(svc.AddPreservationUser(user, svc.GetIdPreservationArchiveFromName(archiveName)));
     }
     catch (Exception ex)
     {
         throw CheckExceptionToThrow(ex);
     }
 }
コード例 #3
0
 public void DeletePreservationJournaling(Guid idJournaling, string archiveName)
 {
     try
     {
         var svc = new PreservationService();
         svc.DeletePreservationJournaling(idJournaling, svc.GetIdPreservationArchiveFromName(archiveName));
     }
     catch (Exception ex)
     {
         throw CheckExceptionToThrow(ex);
     }
 }
コード例 #4
0
 public void UpdatePreservationPath(Guid idPreservation, string path, string archiveName)
 {
     try
     {
         var svc = new PreservationService();
         svc.UpdatePreservationPath(idPreservation, path, svc.GetIdPreservationArchiveFromName(archiveName));
     }
     catch (Exception ex)
     {
         throw CheckExceptionToThrow(ex);
     }
 }
コード例 #5
0
 public PreservationTaskGroupType AddPreservationTaskGroupType(PreservationTaskGroupType groupType, string archiveName)
 {
     try
     {
         var svc = new PreservationService();
         return(svc.AddPreservationTaskGroupType(groupType, svc.GetIdPreservationArchiveFromName(archiveName)));
     }
     catch (Exception ex)
     {
         throw CheckExceptionToThrow(ex);
     }
 }
コード例 #6
0
 public BindingList <PreservationAlertType> GetPreservationAlertTypes(Nullable <Guid> idPreservationAlertType, string archiveName)
 {
     try
     {
         var svc = new PreservationService();
         return(svc.GetPreservationAlertTypes(idPreservationAlertType, svc.GetIdPreservationArchiveFromName(archiveName)));
     }
     catch (Exception ex)
     {
         throw CheckExceptionToThrow(ex);
     }
 }
コード例 #7
0
 public PreservationExpireResponse GetPreservationExpire(Guid idSchedule, Guid idTaskGroupType, string archiveName)
 {
     try
     {
         var svc = new PreservationService();
         return(svc.GetPreservationExpire(idSchedule, idTaskGroupType, svc.GetIdPreservationArchiveFromName(archiveName)));
     }
     catch (Exception ex)
     {
         throw CheckExceptionToThrow(ex);
     }
 }
コード例 #8
0
 public BindingList <PreservationTaskGroup> GetDetailedPreservationTaskGroup(Nullable <Guid> idTaskGroup, string archiveName, int maxReturnedValues)
 {
     try
     {
         var svc = new PreservationService();
         return(svc.GetDetailedPreservationTaskGroup(idTaskGroup, svc.GetIdPreservationArchiveFromName(archiveName), maxReturnedValues));
     }
     catch (Exception ex)
     {
         throw CheckExceptionToThrow(ex);
     }
 }
コード例 #9
0
        public PreservationUserRole AddPreservationUserRole(PreservationUserRole userRole, string archiveName)
        {
            try
            {
                var svc = new PreservationService();
                if (!string.IsNullOrEmpty(archiveName))
                {
                    if (userRole.Archive == null)
                    {
                        userRole.Archive = new DocumentArchive();
                    }

                    userRole.Archive.IdArchive = svc.GetIdPreservationArchiveFromName(archiveName);
                }

                return(svc.AddPreservationUserRole(userRole, svc.GetIdPreservationArchiveFromName(archiveName)));
            }
            catch (Exception ex)
            {
                throw CheckExceptionToThrow(ex);
            }
        }
コード例 #10
0
 public BindingList <PreservationStorageDevice> GetPreservationStorageDeviceFromLabel(string label, string archiveName)
 {
     try
     {
         var svc = new PreservationService();
         if (string.IsNullOrEmpty(archiveName))
         {
             return(svc.GetPreservationStorageDeviceFromLabel(label, null));
         }
         else
         {
             return(svc.GetPreservationStorageDeviceFromLabel(label, svc.GetIdPreservationArchiveFromName(archiveName)));
         }
     }
     catch (Exception ex)
     {
         throw CheckExceptionToThrow(ex);
     }
 }
コード例 #11
0
 public void DeletePreservationParameter(string label, string archiveName)
 {
     try
     {
         var svc = new PreservationService();
         if (!string.IsNullOrEmpty(archiveName))
         {
             svc.DeletePreservationParameter(label, svc.GetIdPreservationArchiveFromName(archiveName));
         }
         else
         {
             svc.DeletePreservationParameter(label, null);
         }
     }
     catch (Exception ex)
     {
         throw CheckExceptionToThrow(ex);
     }
 }
コード例 #12
0
 public void AddPreservationParameter(string label, string value, string archiveName)
 {
     try
     {
         var svc = new PreservationService();
         if (!string.IsNullOrEmpty(archiveName))
         {
             svc.AddPreservationParameter(label, value, svc.GetIdPreservationArchiveFromName(archiveName));
         }
         else
         {
             throw new FaultException("Non e' possibile aggiungere un parametro di conservazione senza specificare l'archivio associato.");
         }
     }
     catch (Exception ex)
     {
         throw CheckExceptionToThrow(ex);
     }
 }
コード例 #13
0
 public void UpdatePreservationTaskGroupExpiryByTask(Guid idPreservationTask, DateTime newEstimatedExpiry, string archiveName)
 {
     try
     {
         var svc = new PreservationService();
         svc.UpdatePreservationTaskGroupExpiryByTask(idPreservationTask, newEstimatedExpiry, svc.GetIdPreservationArchiveFromName(archiveName));
     }
     catch (Exception ex)
     {
         throw CheckExceptionToThrow(ex);
     }
 }
コード例 #14
0
 public PreservationTaskGroup AddPreservationTaskGroup(PreservationTaskGroup toAdd, string archiveName)
 {
     return(this.PreservationContext.AddPreservationTaskGroup(toAdd, prContext.GetIdPreservationArchiveFromName(archiveName)));
 }