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(int indice, com.ebmwebsourcing.agreement.definition.api.Compensation compTO, BusinessValueBean bvb, ManagedAgreementBean mab, java.lang.String compensationType)
          Constructor
 
Method Summary
 java.lang.String create(BusinessValueBean businessBean)
          Creates an object with current attributes
 java.lang.String delete()
          Deletes the current endpoint from the database
 java.lang.String getCompensationType()
           
 com.ebmwebsourcing.agreement.definition.api.Compensation getCTO()
           
 int getIndice()
           
static java.util.List<java.lang.String> getListValueType()
           
 long getQuantity()
           
 java.lang.String getType()
           
 java.lang.String getUnit()
           
 long getValue()
           
 void init(GuaranteeBean gb, java.lang.String indice, java.lang.String compensationType)
           
 void reset()
          Resets changes made to the current endpoint attributes.
 java.lang.String save()
           
 void setCompensationType(java.lang.String compensationType)
           
 void setCTO(com.ebmwebsourcing.agreement.definition.api.Compensation cto)
           
 void setIndice(int indice)
           
 void setQuantity(long quantity)
           
 void setType(java.lang.String type)
           
 void setUnit(java.lang.String unit)
           
 void setValue(long value)
           
 
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(int indice,
                        com.ebmwebsourcing.agreement.definition.api.Compensation compTO,
                        BusinessValueBean bvb,
                        ManagedAgreementBean mab,
                        java.lang.String compensationType)
                 throws org.ow2.opensuit.core.error.LocalizedError
Constructor

Throws:
org.ow2.opensuit.core.error.LocalizedError
Method Detail

init

public void init(GuaranteeBean gb,
                 java.lang.String indice,
                 java.lang.String compensationType)
          throws org.ow2.opensuit.core.error.LocalizedError
Throws:
org.ow2.opensuit.core.error.LocalizedError

save

public java.lang.String save()
                      throws org.ow2.opensuit.core.error.LocalizedError
Throws:
org.ow2.opensuit.core.error.LocalizedError

create

public java.lang.String create(BusinessValueBean businessBean)
                        throws org.ow2.opensuit.core.error.LocalizedError
Creates an object with current attributes

Throws:
org.ow2.opensuit.core.error.LocalizedError

delete

public java.lang.String delete()
                        throws org.ow2.opensuit.core.error.LocalizedError
Deletes the current endpoint from the database

Throws:
org.ow2.opensuit.core.error.LocalizedError

reset

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


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 com.ebmwebsourcing.agreement.definition.api.Compensation getCTO()
Returns:
the cTO

setCTO

public void setCTO(com.ebmwebsourcing.agreement.definition.api.Compensation 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

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

getIndice

public int getIndice()

setIndice

public void setIndice(int indice)


Copyright © 2008-2010 eBMWebsourcing. All Rights Reserved.