summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/state/UploadWizardState.java
blob: d22e26c8b607f3137dea732917cefc2b240a7e54 (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
package org.openslx.dozmod.state;

import java.io.File;

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.TransferStatus;
import org.openslx.bwlp.thrift.iface.Virtualizer;

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 operatingSystem = 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;
	// 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;
	// transfer status for the current upload
	public TransferStatus transferStatus = null;
}