summaryrefslogblamecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/state/UploadWizardState.java
blob: 468100965df38fce433e2cd728df7dbf37d41b08 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                 
                      
                     
 
                                                      
                                                     
                                               
                                         
                                                 
                                      

                                
                                          
                                                             
                                  
                                                                    
                                         
                                                                 


                                                 
                                                                 
                                           
                                                          
                                    
                                                         
                                                                                                               
                                                              
                                                                  

                                                     

                                           

                                          



                                        


                                                                        

                                             
 



                                                          
 
 
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.thrift.Session;
import org.openslx.dozmod.thrift.UploadInitiator;
import org.openslx.util.vm.VmMetaData;

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;
	// 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;
	/**
	 * 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 VmMetaData meta = null;

}