summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/state/UploadWizardState.java
blob: ad877d9163c3aecb501ec02776d8b68ece7c510a (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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;

}