de.jw.cloud42.webapp
Class InstanceConfiguration

java.lang.Object
  extended by de.jw.cloud42.webapp.InstanceConfiguration

@Name(value="instanceConfiguration")
@Scope(value=SESSION)
public class InstanceConfiguration
extends java.lang.Object

Backing bean for instance configuration dialog. Holds values entered in the UI and is injected into the BaseFunctionsManager when a new instance is launched.

Author:
fbitzer

Constructor Summary
InstanceConfiguration()
           
 
Method Summary
 void fileUploadListener(org.richfaces.event.UploadEvent e)
          fileUploadListener function for RichFaces fileupload component.
 byte[] getAttachedFile()
           
 java.lang.String getAvailabilityZone()
           
 java.util.List<java.lang.String> getGroupNames()
           
 java.lang.String getImageId()
           
 java.lang.String getImageLocation()
           
 java.lang.String getKernelId()
           
 java.lang.String getKeypairName()
           
 java.lang.String getName()
           
 java.lang.String getRamdiskId()
           
 java.lang.String getType()
           
 java.lang.String getUserData()
           
 void setAttachedFile(byte[] attachedFile)
           
 void setAvailabilityZone(java.lang.String availabilityZone)
           
 void setGroupNames(java.util.List<java.lang.String> groupNames)
           
 void setImageId(java.lang.String imageId)
           
 void setImageLocation(java.lang.String imageLocation)
           
 void setKernelId(java.lang.String kernelId)
           
 void setKeypairName(java.lang.String keypairName)
           
 void setName(java.lang.String instanceName)
           
 void setRamdiskId(java.lang.String ramdiskId)
           
 void setType(java.lang.String instanceType)
           
 void setUserData(java.lang.String userData)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstanceConfiguration

public InstanceConfiguration()
Method Detail

getImageLocation

public java.lang.String getImageLocation()
Returns:
the imageLocation

setImageLocation

public void setImageLocation(java.lang.String imageLocation)
Parameters:
imageLocation - the imageLocation to set

getUserData

public java.lang.String getUserData()
Returns:
the userData

setUserData

public void setUserData(java.lang.String userData)
Parameters:
userData - the userData to set

getGroupNames

public java.util.List<java.lang.String> getGroupNames()
Returns:
the groupNames

setGroupNames

public void setGroupNames(java.util.List<java.lang.String> groupNames)
Parameters:
groupNames - the groupNames to set

setKeypairName

public void setKeypairName(java.lang.String keypairName)
Parameters:
keypairName - the keypairName to set

getType

public java.lang.String getType()
Returns:
the instanceType

setType

public void setType(java.lang.String instanceType)
Parameters:
instanceType - the instanceType to set

getName

public java.lang.String getName()
Returns:
the instanceName

setName

public void setName(java.lang.String instanceName)
Parameters:
instanceName - the instanceName to set

getImageId

public java.lang.String getImageId()
Returns:
the imageId

setImageId

public void setImageId(java.lang.String imageId)
Parameters:
imageId - the imageId to set

getKeypairName

public java.lang.String getKeypairName()
Returns:
the keypair

getAvailabilityZone

public java.lang.String getAvailabilityZone()
Returns:
the availabilityZone

setAvailabilityZone

public void setAvailabilityZone(java.lang.String availabilityZone)
Parameters:
availabilityZone - the availabilityZone to set

getKernelId

public java.lang.String getKernelId()
Returns:
the kernelId

setKernelId

public void setKernelId(java.lang.String kernelId)
Parameters:
kernelId - the kernelId to set

getRamdiskId

public java.lang.String getRamdiskId()
Returns:
the ramdiskId

setRamdiskId

public void setRamdiskId(java.lang.String ramdiskId)
Parameters:
ramdiskId - the ramdiskId to set

getAttachedFile

public byte[] getAttachedFile()
Returns:
the attachedFile

setAttachedFile

public void setAttachedFile(byte[] attachedFile)
Parameters:
attachedFile - the attachedFile to set

fileUploadListener

public void fileUploadListener(org.richfaces.event.UploadEvent e)
fileUploadListener function for RichFaces fileupload component. Reads the content of the uploaded file into a byte array and stores it in the attachedFile property.

Parameters:
e -


Copyright © 2010 just works! Software. All Rights Reserved.