edu.uoc.tfc.j2ee.icampanario.grepresenta.telematic.actions
Class WaiveEmpowermentAction

java.lang.Object
  extended by edu.uoc.tfc.j2ee.icampanario.grepresenta.telematic.actions.WaiveEmpowermentAction
All Implemented Interfaces:
java.io.Serializable

@Name(value="waiveEmpAction")
@Scope(value=SESSION)
public class WaiveEmpowermentAction
extends java.lang.Object
implements java.io.Serializable

Action para renunciar a un apoderamiento

Author:
Ismael Campanario Cabrera
See Also:
Serialized Form

Constructor Summary
WaiveEmpowermentAction()
           
 
Method Summary
 void clearData()
          Limpia los datos de sesión.
 void generateWaivedEmpowermentPdf()
          Descarga el documento de renuncia
 void generateWaivedEmpowermentSignedPdf()
          Genera el pdf firmado para mostrarlo
 java.lang.String getClientSignerConfig()
          Devuelve el atributo para la firma
 java.util.List<Empowerment> getRelatedEmpowerments()
          Devuelve la lista de apoderamientos relacionados
 void prepareWaived(EmpowermentState empowermentState, User grantor)
          Prepara el documento de renuncia
 void setClientSignerConfig(java.lang.String clientSignerConfig)
          Modifica el atributo para la firma
 void setRelatedEmpowerments(java.util.List<Empowerment> relatedEmpowerments)
          Modifica la lista de apoderamientos relacionados
 java.lang.String signDocument()
          Firma el documento
 void updateEmpowermentStateAndSaveDocument()
          Actualiza el estado del apoderamiento
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WaiveEmpowermentAction

public WaiveEmpowermentAction()
Method Detail

prepareWaived

@Observer(value="prepareWaiveEmpowerment")
public void prepareWaived(EmpowermentState empowermentState,
                                   User grantor)
Prepara el documento de renuncia

Parameters:
empowermentState - estado del apoderamiento
grantor - poderdante

generateWaivedEmpowermentPdf

public void generateWaivedEmpowermentPdf()
Descarga el documento de renuncia


signDocument

public java.lang.String signDocument()
Firma el documento

Returns:
siguiente pantalla

updateEmpowermentStateAndSaveDocument

public void updateEmpowermentStateAndSaveDocument()
Actualiza el estado del apoderamiento


generateWaivedEmpowermentSignedPdf

public void generateWaivedEmpowermentSignedPdf()
Genera el pdf firmado para mostrarlo


clearData

public void clearData()
Limpia los datos de sesión.


setClientSignerConfig

public void setClientSignerConfig(java.lang.String clientSignerConfig)
Modifica el atributo para la firma

Parameters:
clientSignerConfig - nuevo atributo para la firma

getClientSignerConfig

public java.lang.String getClientSignerConfig()
Devuelve el atributo para la firma

Returns:
atributo para la firma

setRelatedEmpowerments

public void setRelatedEmpowerments(java.util.List<Empowerment> relatedEmpowerments)
Modifica la lista de apoderamientos relacionados

Parameters:
relatedEmpowerments - nueva lista

getRelatedEmpowerments

public java.util.List<Empowerment> getRelatedEmpowerments()
Devuelve la lista de apoderamientos relacionados

Returns:
apoderamientos relacionados