summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/state/UploadWizardState.java
blob: 0bf487327f1bdaae03d229d3051341df8a9fdd08 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package org.openslx.dozmod.state;

import java.io.File;
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.bwlp.thrift.iface.TransferInformation;
import org.openslx.bwlp.thrift.iface.Virtualizer;
import org.openslx.dozmod.filetransfer.UploadTask;

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 vmx
	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;
	// flags an image as a template
	public Boolean isTemplate = null;
	// virtualizer for this image (vmware, vbox..)
	public Virtualizer virtualizer = null;
	// permissions assigned to that image by the user
	// TODO: defaults per sat
	public ImagePermissions permissions = null;
	public Map<String, ImagePermissions> permissionList = null;
	// local, publish, download frozen share mode
	public ShareMode shareMode = null;
	
	// -- Objects returned by thrift calls --
	// UUID given returned by the satellite after creating the image
	public String uuid = null;
	// transfer information for upload received if the upload request was granted 
	public TransferInformation transferInformation = null;
	/**
	 * The upload task representing this new VM
	 */
	public UploadTask uploadTask = null;
}