/** {@inheritDoc} */ @MethodLog public StorageData addLabelToStorage( StorageData storageData, AbstractStorageLabel<?> storageLabel, boolean doOverwrite) throws StorageException { try { storageManager.addLabelToStorage(storageData, storageLabel, doOverwrite); storageLabelDataDao.saveLabel(storageLabel); return storageManager.getStorageData(storageData.getId()); } catch (IOException | SerializationException e) { throw new StorageException( "Exception occurred trying to save storage data changes to disk.", e); } }
/** {@inheritDoc} */ @MethodLog public void saveLabelsToCmr(Collection<AbstractStorageLabel<?>> storageLabels) { for (AbstractStorageLabel<?> label : storageLabels) { storageLabelDataDao.saveLabel(label); } }
/** {@inheritDoc} */ @MethodLog public void saveLabelToCmr(AbstractStorageLabel<?> storageLabel) { storageLabelDataDao.saveLabel(storageLabel); }