org.ow2.dragon.ui.uibeans.sla
Class CompensationBean

java.lang.Object
  extended by org.ow2.dragon.ui.uibeans.sla.CompensationBean

public class CompensationBean
extends java.lang.Object

Author:
nsaladge - eBM Websourcing

Constructor Summary
CompensationBean()
          Default constructor
CompensationBean(org.ow2.dragon.api.to.sla.CompensationTO compTO)
          Constructor
 
Method Summary
 void clear()
          Clears the agreement.
 java.lang.String create(BusinessValueBean businessBean)
          Creates an object with current attributes
 java.lang.String delete(BusinessValueBean businessBean)
          Deletes the current endpoint from the database
 java.lang.String getCompensationType()
           
 org.ow2.dragon.api.to.sla.CompensationTO getCTO()
           
 long getId()
           
static java.util.List<java.lang.String> getListValueType()
           
 long getQuantity()
           
 java.lang.String getType()
           
 java.lang.String getUnit()
           
 long getValue()
           
 java.lang.String getXml()
           
 void load(javax.servlet.http.HttpServletRequest iRequest)
          Loads a technical service from the request parameter 'id'.
 void reset()
          Resets changes made to the current endpoint attributes.
 java.lang.String save()
           
 void setCompensationTO()
           
 void setCompensationType(java.lang.String compensationType)
           
 void setCTO(org.ow2.dragon.api.to.sla.CompensationTO cto)
           
 void setId(long id)
           
 void setId(java.lang.Long id)
           
 void setQuantity(long quantity)
           
 void setType(javax.servlet.http.HttpServletRequest iRequest)
          Loads a technical service from the request parameter 'id'.
 void setType(java.lang.String type)
           
 void setUnit(java.lang.String unit)
           
 void setValue(long value)
           
 void setXml(java.lang.String xml)
           
 void validate()
          Validate the endpoint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompensationBean

public CompensationBean()
Default constructor


CompensationBean

public CompensationBean(org.ow2.dragon.api.to.sla.CompensationTO compTO)
Constructor

Method Detail

load

public void load(javax.servlet.http.HttpServletRequest iRequest)
          throws com.ebm_ws.infra.bricks.error.LocalizedError
Loads a technical service from the request parameter 'id'.

Throws:
com.ebm_ws.infra.bricks.error.LocalizedError

setType

public void setType(javax.servlet.http.HttpServletRequest iRequest)
             throws com.ebm_ws.infra.bricks.error.LocalizedError
Loads a technical service from the request parameter 'id'.

Throws:
com.ebm_ws.infra.bricks.error.LocalizedError

save

public java.lang.String save()
                      throws com.ebm_ws.infra.bricks.error.LocalizedError
Throws:
com.ebm_ws.infra.bricks.error.LocalizedError

create

public java.lang.String create(BusinessValueBean businessBean)
                        throws com.ebm_ws.infra.bricks.error.LocalizedError
Creates an object with current attributes

Throws:
com.ebm_ws.infra.bricks.error.LocalizedError

delete

public java.lang.String delete(BusinessValueBean businessBean)
                        throws com.ebm_ws.infra.bricks.error.LocalizedError
Deletes the current endpoint from the database

Throws:
com.ebm_ws.infra.bricks.error.LocalizedError

reset

public void reset()
Resets changes made to the current endpoint attributes.


clear

public void clear()
Clears the agreement.


validate

public void validate()
Validate the endpoint


getId

public long getId()
Returns:
the id

setId

public void setId(long id)
Parameters:
id - the id to set

setId

public void setId(java.lang.Long id)
Parameters:
id - the id to set

getType

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

setType

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

getValue

public long getValue()
Returns:
the value

setValue

public void setValue(long value)
Parameters:
value - the value to set

getCTO

public org.ow2.dragon.api.to.sla.CompensationTO getCTO()
Returns:
the cTO

setCTO

public void setCTO(org.ow2.dragon.api.to.sla.CompensationTO cto)
Parameters:
cto - the cTO to set

getQuantity

public long getQuantity()
Returns:
the quantity

setQuantity

public void setQuantity(long quantity)
Parameters:
quantity - the quantity to set

getUnit

public java.lang.String getUnit()
Returns:
the unit

setUnit

public void setUnit(java.lang.String unit)
Parameters:
unit - the unit to set

setCompensationTO

public void setCompensationTO()

getCompensationType

public java.lang.String getCompensationType()
Returns:
the compensationType

setCompensationType

public void setCompensationType(java.lang.String compensationType)
Parameters:
compensationType - the compensationType to set

getListValueType

public static java.util.List<java.lang.String> getListValueType()
Returns:
the listValueType

getXml

public java.lang.String getXml()
Returns:
the xml

setXml

public void setXml(java.lang.String xml)
Parameters:
xml - the xml to set


Copyright © 2008 eBMWebsourcing. All Rights Reserved.