Exemplo n.º 1
0
 /** {@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);
   }
 }
Exemplo n.º 2
0
 /** {@inheritDoc} */
 @MethodLog
 public void saveLabelsToCmr(Collection<AbstractStorageLabel<?>> storageLabels) {
   for (AbstractStorageLabel<?> label : storageLabels) {
     storageLabelDataDao.saveLabel(label);
   }
 }
Exemplo n.º 3
0
 /** {@inheritDoc} */
 @MethodLog
 public void saveLabelToCmr(AbstractStorageLabel<?> storageLabel) {
   storageLabelDataDao.saveLabel(storageLabel);
 }