es.caib.ibkey.bpm.pdf.handler
Class PDFStamperHandler

java.lang.Object
  extended by es.caib.ibkey.bpm.common.handler.IbkeyBPMLoggerTemplate
      extended by es.caib.ibkey.bpm.common.handler.LoggerActionHandler
          extended by es.caib.ibkey.bpm.common.handler.AbstractIndexedHandler
              extended by es.caib.ibkey.bpm.pdf.handler.PDFStamperHandler
All Implemented Interfaces:
java.io.Serializable, org.jbpm.graph.def.ActionHandler

public class PDFStamperHandler
extends AbstractIndexedHandler

Handler que permet funcionalitats d'estampat d'un PDF. Configuració del Handler: stampPhrase: indica la frase a estampar, que puede ser una cadena, o si coincide con la descripción de una de las URLs asociadas al workflow, devolverá esta URL.

Author:
u91940
See Also:
Serialized Form

Field Summary
protected  byte[] input
           
 int SIGNATURE_HORIZONTAL_SPLIT_LEN
           
 int SIGNATURE_SPLIT_MARGIN
           
 int SIGNATURE_SPLIT_RANGE
           
 int SIGNATURE_VERTICAL_SPLIT_LEN
           
protected  java.lang.String stampPhrase
           
protected  int stampPosition
           
 
Fields inherited from class es.caib.ibkey.bpm.common.handler.AbstractIndexedHandler
alreadyDone, hasStageInput, inputContentType
 
Fields inherited from class es.caib.ibkey.bpm.common.handler.IbkeyBPMLoggerTemplate
__processInstanceId
 
Constructor Summary
PDFStamperHandler()
           
 
Method Summary
protected  void freeResources(org.jbpm.graph.exe.ExecutionContext ctx)
           
 int getSIGNATURE_HORIZONTAL_SPLIT_LEN()
           
 int getSIGNATURE_SPLIT_MARGIN()
           
 int getSIGNATURE_SPLIT_RANGE()
           
 int getSIGNATURE_VERTICAL_SPLIT_LEN()
           
protected  void handleExecute(org.jbpm.graph.exe.ExecutionContext ctx)
          Las subclases deben implementar este método
protected  void handleRollBack(org.jbpm.graph.exe.ExecutionContext ctx)
          Las subclases deben implementar este método para gestionar los errores
protected  void processParameters(org.jbpm.graph.exe.ExecutionContext ctx)
           
 void setSIGNATURE_HORIZONTAL_SPLIT_LEN(int sIGNATUREHORIZONTALSPLITLEN)
           
 void setSIGNATURE_SPLIT_MARGIN(int sIGNATURESPLITMARGIN)
           
 void setSIGNATURE_SPLIT_RANGE(int sIGNATURESPLITRANGE)
           
 void setSIGNATURE_VERTICAL_SPLIT_LEN(int sIGNATUREVERTICALSPLITLEN)
           
 
Methods inherited from class es.caib.ibkey.bpm.common.handler.AbstractIndexedHandler
canSignal, execute, getAttMgr, getHandleRetry, getInputContentType, getInputObject, getMimeReg, getOutputContentType, getOutputObject, getOutputOriginalName, getOutputTag, getSignalTo, getStageActual, getStageActualName, getStageAnterior, getStgMgr, isCanSignal, setCanSignal, setHandleRetry, setInputContentType, setInputObject, setOutputContentType, setOutputObject, setOutputOriginalName, setOutputTag, setSignalTo, setStageActualName
 
Methods inherited from class es.caib.ibkey.bpm.common.handler.IbkeyBPMLoggerTemplate
configure, debug, error, exceptionToString, getAdminMailAdresses, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIGNATURE_HORIZONTAL_SPLIT_LEN

public int SIGNATURE_HORIZONTAL_SPLIT_LEN

SIGNATURE_VERTICAL_SPLIT_LEN

public int SIGNATURE_VERTICAL_SPLIT_LEN

SIGNATURE_SPLIT_RANGE

public int SIGNATURE_SPLIT_RANGE

SIGNATURE_SPLIT_MARGIN

public int SIGNATURE_SPLIT_MARGIN

input

protected byte[] input

stampPosition

protected int stampPosition

stampPhrase

protected java.lang.String stampPhrase
Constructor Detail

PDFStamperHandler

public PDFStamperHandler()
Method Detail

processParameters

protected void processParameters(org.jbpm.graph.exe.ExecutionContext ctx)

handleExecute

protected final void handleExecute(org.jbpm.graph.exe.ExecutionContext ctx)
                            throws java.lang.Exception
Description copied from class: AbstractIndexedHandler
Las subclases deben implementar este método

Specified by:
handleExecute in class AbstractIndexedHandler
Throws:
java.lang.Exception

handleRollBack

protected void handleRollBack(org.jbpm.graph.exe.ExecutionContext ctx)
Description copied from class: AbstractIndexedHandler
Las subclases deben implementar este método para gestionar los errores

Specified by:
handleRollBack in class AbstractIndexedHandler

getSIGNATURE_HORIZONTAL_SPLIT_LEN

public int getSIGNATURE_HORIZONTAL_SPLIT_LEN()
Returns:
the sIGNATURE_HORIZONTAL_SPLIT_LEN

setSIGNATURE_HORIZONTAL_SPLIT_LEN

public void setSIGNATURE_HORIZONTAL_SPLIT_LEN(int sIGNATUREHORIZONTALSPLITLEN)
Parameters:
sIGNATUREHORIZONTALSPLITLEN - the sIGNATURE_HORIZONTAL_SPLIT_LEN to set

getSIGNATURE_VERTICAL_SPLIT_LEN

public int getSIGNATURE_VERTICAL_SPLIT_LEN()
Returns:
the sIGNATURE_VERTICAL_SPLIT_LEN

setSIGNATURE_VERTICAL_SPLIT_LEN

public void setSIGNATURE_VERTICAL_SPLIT_LEN(int sIGNATUREVERTICALSPLITLEN)
Parameters:
sIGNATUREVERTICALSPLITLEN - the sIGNATURE_VERTICAL_SPLIT_LEN to set

getSIGNATURE_SPLIT_RANGE

public int getSIGNATURE_SPLIT_RANGE()
Returns:
the sIGNATURE_SPLIT_RANGE

setSIGNATURE_SPLIT_RANGE

public void setSIGNATURE_SPLIT_RANGE(int sIGNATURESPLITRANGE)
Parameters:
sIGNATURESPLITRANGE - the sIGNATURE_SPLIT_RANGE to set

getSIGNATURE_SPLIT_MARGIN

public int getSIGNATURE_SPLIT_MARGIN()
Returns:
the sIGNATURE_SPLIT_MARGIN

setSIGNATURE_SPLIT_MARGIN

public void setSIGNATURE_SPLIT_MARGIN(int sIGNATURESPLITMARGIN)
Parameters:
sIGNATURESPLITMARGIN - the sIGNATURE_SPLIT_MARGIN to set

freeResources

protected void freeResources(org.jbpm.graph.exe.ExecutionContext ctx)
Specified by:
freeResources in class AbstractIndexedHandler


Copyright © 2012 Direcció General de Tecnologia i Comunicacions. Govern de les Illes Balears. All Rights Reserved.