public void UpdatePreservationUser(PreservationUser user, string archiveName) { try { var svc = new PreservationService(); svc.UpdatePreservationUser(user, svc.GetIdPreservationArchiveFromName(archiveName)); } catch (Exception ex) { throw CheckExceptionToThrow(ex); } }
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); } }
public void DeletePreservationJournaling(Guid idJournaling, string archiveName) { try { var svc = new PreservationService(); svc.DeletePreservationJournaling(idJournaling, svc.GetIdPreservationArchiveFromName(archiveName)); } catch (Exception ex) { throw CheckExceptionToThrow(ex); } }
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); } }
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); } }
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); } }
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); } }
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); } }
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); } }
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); } }
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); } }
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); } }
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); } }
public PreservationTaskGroup AddPreservationTaskGroup(PreservationTaskGroup toAdd, string archiveName) { return(this.PreservationContext.AddPreservationTaskGroup(toAdd, prContext.GetIdPreservationArchiveFromName(archiveName))); }