/** * Updates the storage data for already existing storage. * * @param storageData Storage data containing update values. * @throws BusinessException If storage does not exists. * @throws SerializationException If serialization fails. * @throws IOException If IO operation fails. */ public void updateStorageData(StorageData storageData) throws BusinessException, IOException, SerializationException { StorageData local = getLocalStorageDataObject(storageData); if (null == local) { throw new BusinessException( "Update of the storage data" + storageData + ".", StorageErrorCodeEnum.STORAGE_DOES_NOT_EXIST); } else { synchronized (local) { local.setName(storageData.getName()); local.setDescription(storageData.getDescription()); writeStorageDataToDisk(local); } } }