blob: cbbaf47597db345354050485f2679d35124add83 (
plain) (
tree)
|
|
package org.openslx.dozmod.state;
import java.io.File;
import java.util.List;
import java.util.Map;
import org.openslx.bwlp.thrift.iface.ImagePermissions;
import org.openslx.bwlp.thrift.iface.OperatingSystem;
import org.openslx.bwlp.thrift.iface.ShareMode;
import org.openslx.dozmod.gui.wizard.WizardPage;
import org.openslx.dozmod.thrift.Session;
import org.openslx.dozmod.thrift.UploadInitiator;
import org.openslx.virtualization.configuration.VirtualizationConfiguration;
public class UploadWizardState {
// -- Objects of the GUI itself --
// name of the virtual machine as entered by the user
public String name = null;
// description of the virtual machine as entered by the user
public String description = null;
// operating system of the virtual machine to be uploaded
public OperatingSystem selectedOs = null;
// What we got from the virtualization configuration
public OperatingSystem detectedOs = null;
// description file of the virtual machine to be uploaded
public File descriptionFile = null;
// disk file of the virtual machine to be uploaded
public File diskFile = null;
// permissions assigned to that image by the user
public ImagePermissions defaultPermissions = Session.getSatelliteConfig().getDefaultImagePermissions();
// explicit permissions per user as set by the creator
public Map<String, ImagePermissions> permissionMap = null;
// local, publish, download frozen share mode
public ShareMode shareMode = null;
// resctricted flag
public boolean isRestricted = true;
// flags an image as a template
public boolean isTemplate = false;
// flag if we the description file is in the ovf format that needs conversion
public File convertedDescriptionFile;
/**
* list of strings for tags
*/
public List<String> tags = null;
// -- Objects returned by thrift calls --
// UUID given returned by the satellite after creating the image
public String uuid = null;
public UploadInitiator upload = null;
/**
* Meta data (description file content) of this VM
*/
public VirtualizationConfiguration<?,?,?,?> virtualizationConfig = null;
// To be able to call the conversion Page from within the ImageUploadPage
// TODO find cleaner approach, this probably shouldn't be in here..
public WizardPage conversionPage;
public WizardPage imageUploadPage;
}
|