@Override public String call(VolumeSnapshotBackupStorageRefInventory arg) { return arg.getBackupStorageUuid(); } });
public static List<VolumeSnapshotBackupStorageRefInventory> valueOf(Collection<VolumeSnapshotBackupStorageRefVO> vos) { List<VolumeSnapshotBackupStorageRefInventory> invs = new ArrayList<VolumeSnapshotBackupStorageRefInventory>(); for (VolumeSnapshotBackupStorageRefVO vo : vos) { invs.add(valueOf(vo)); } return invs; }
public static VolumeSnapshotBackupStorageRefInventory valueOf(VolumeSnapshotBackupStorageRefVO vo) { VolumeSnapshotBackupStorageRefInventory inv = new VolumeSnapshotBackupStorageRefInventory(); inv.setBackupStorageUuid(vo.getBackupStorageUuid()); inv.setInstallPath(vo.getInstallPath()); inv.setVolumeSnapshotUuid(vo.getVolumeSnapshotUuid()); return inv; }
public boolean isOnBackupStorage(String backupStorageUuid) { for (VolumeSnapshotBackupStorageRefInventory ref : backupStorageRefs) { if (ref.getBackupStorageUuid().equals(backupStorageUuid)) { return true; } } return false; }
public static VolumeSnapshotInventory valueOf(VolumeSnapshotVO vo) { VolumeSnapshotInventory inv = new VolumeSnapshotInventory(); inv.setName(vo.getName()); inv.setCreateDate(vo.getCreateDate()); inv.setDescription(vo.getDescription()); inv.setLastOpDate(vo.getLastOpDate()); inv.setParentUuid(vo.getParentUuid()); inv.setState(vo.getState().toString()); inv.setType(vo.getType()); inv.setVolumeUuid(vo.getVolumeUuid()); inv.setFormat(vo.getFormat()); inv.setUuid(vo.getUuid()); inv.setStatus(vo.getStatus().toString()); inv.setPrimaryStorageUuid(vo.getPrimaryStorageUuid()); inv.setPrimaryStorageInstallPath(vo.getPrimaryStorageInstallPath()); inv.setLatest(vo.isLatest()); inv.setSize(vo.getSize()); inv.setVolumeType(vo.getVolumeType()); inv.setTreeUuid(vo.getTreeUuid()); inv.setBackupStorageRefs(VolumeSnapshotBackupStorageRefInventory.valueOf(vo.getBackupStorageRefs())); return inv; }