com.instantbank.component.lettertemplate.ejb
Interface LetterTemplate

All Superinterfaces:
javax.ejb.EJBObject, java.rmi.Remote

public interface LetterTemplate
extends javax.ejb.EJBObject

Business interface of letterTemplate EJB: list of services for letters module (Session Stateful EJB)

Author:
Instant-bank (Consuelo Franky, Roberto Contreras)

Method Summary
 java.util.ArrayList applyImagesRepository(java.util.ArrayList items)
          Applies a set of changes in the images of the current company;
 java.util.ArrayList applyItemsCategory(java.util.ArrayList items)
          Applies a set of changes in the categories of the current company;
 java.util.ArrayList applyItemsComponent(java.util.ArrayList items)
          Applies a set of changes in the components of the current company where the relationship between Template and Component doesn't exist.
 java.util.ArrayList applyItemsTemplate(java.util.ArrayList items)
          Applies a set of changes in the templates of the current company;
 java.util.ArrayList[] executeSQL(java.lang.String sentenceSQL, java.lang.Long[] selectFields, java.util.Hashtable jobORDERhashtable)
          Gets a result set executing a SQL sentence, associated with a letter job.
 java.util.ArrayList generatePreviewTemplate(long templateCode, long agreementCode, java.lang.Long[] templateVarsCodes)
          Gets template variables values for one loan of the current company, which will be used in the preview of the template.
 void insertLetterARHistory(java.sql.Connection dbConnection, long lCompID, long lAgrmID, java.sql.Date procDate, long lLettID, long lLettCode, long lActionCode, long lResultCode)
           
 java.util.Hashtable loadAlias()
          Loads data of system alias
 java.util.ArrayList loadAllTemplatesDescription()
          Loads code, print type and name of templates and their categories names.
 java.util.Hashtable loadCalendars()
          Loads all the calendars of the current company
 CodeDescription[] loadCategories()
          Loads all [code, description] of the categories of the current company; ordered by name
 CodeDescription[] loadCodesStamps(long category, int printType, java.lang.String name, java.lang.String header, java.lang.String body, java.lang.String closing)
          Loads code and stamp of template and components
 CompanyLocation loadCompanyLocation(long ftpId)
          Load the data of company locations.
 java.lang.String loadCompanyWorkDir()
          Loads the temporal directory path of the current company.
 LetterComponent loadComponent(long code)
          Loads a letters component of the current company, corresponding to a code.
 CodeDescription loadComponentCode(int componentType, int printType, java.lang.String name)
          Load [code, stamp] for specified component
 CodeDescription[] loadComponentsDescription(int componentType, int printType)
          Loads code and description of all components, for the current company, for the specified component type and print type; ordered by name
 java.util.ArrayList loadFieldMenus()
          Loads system field Menus with its values ordered by description (name of menu);
 java.util.Hashtable loadFields()
          Loads data of systems Fields of the current company
 java.util.ArrayList loadFieldsDisplay()
          Loads company fields with display information and menu references (for current company), ordered by display name.
 CodeDescription[] loadFTPCodes()
          Loads all [code, name] of the ftp's of the current company, ordered by name
 byte[] loadImageRepository(java.lang.String nameImage)
          Loads an image of the current company;
 CodeDescription[] loadImagesNamesRepository()
          Loads all [code, description] of the images of the current company; ordered by name
 CodeDescription[] loadJobsCodes()
          Loads all [code, name] of the jobs of the current company; ordered by name
 LetterBatchReviewModel loadLetterBatchReview(java.lang.String dayMonthYear)
          Review the batch of letters jobs
 LetterBatchStartModel loadLetterJob()
          Loads all letters Job information.
 java.lang.String loadLoanDummy()
          Load the dummy loan of a company.
 CodeDescription[] loadPrintTypes()
          Loads code and description of printTypes; ordered by description
 java.sql.Date loadSysDate()
          Loads the date (Oracle SYSDATE() function).
 Template loadTemplate(long templateCode)
          Loads a letters template of the current company, corresponding to a code.
 CodeDescription[] loadTemplateCodeDescription(long category, int printType, java.lang.String name)
          Loads code and description of one template and its components for the specified template code
 CodeDescription[] loadTemplateCodes(long templateCode)
          Loads code and description of one template and its components for the specified template code
 CodeDescription[] loadTemplateCodes(long category, int printType, java.lang.String name)
          Loads code and stamp of one template and its components for the specified template code
 java.sql.Date loadTemplateDate(long templateCode)
          Load the date of template.
 CodeDescription[] loadTemplatesDescription(long category, int printType)
          Loads code and description of all templates, for the current company and for the specified category; ordered by name.
 java.util.ArrayList loadUnlikedComponents()
          If the relationship between Template and Component doesn't exist loads code, name and print type of components and name of component type.
 CodeDescription[] loadVariableFormats()
          Loads code and description of format of letter variables; ordered by description
 java.util.ArrayList loadVariables()
          Loads display name of letter variables (fields) of the current company, ordered by display name
 void removeComponent(long code)
          Removes a letters component of the current company, corresponding to a code.
 void removeImageRepository(java.lang.String nameImage)
          Removes an image of the current company
 void removeTemplate(long code)
          Removes a letters template (not its components) of the current company, corresponding to a code.
 CodeDescription storeComponent(LetterComponent component)
          Stores a letters component for the current company, generating code for the component if it is new.
 CodeDescription storeComponentAs(long templateCode, LetterComponent component)
          Store as a letters component for the current company, generating code for the component if it is new.
 long storeImageRepository(java.lang.String nameImage, byte[] image)
          Stores a new image for the current company
 void storeLetterFtpJobLog(long jobLogId, java.lang.String fullFilePath, boolean succes, int attempts, java.lang.String ip, java.lang.String path, java.lang.String failureDescription)
          Store the Log of ftps made for executed letter jobs of the current company.
 LettersJobLogBean storeLetterJobLog(long jobId, java.sql.Date executionDate, java.lang.String success, long resultSetLength, java.lang.String loggeableResultSet, java.lang.String foTemplate)
          Store the log of executed letter jobs of the current company.
 CodeDescription[] storeTemplate(Template template)
          Stores a letters template for the current company, generating code for the template if it is new, and generating code for each component if it is new.
 void updateJobExecDate(long jobId, java.sql.Date date)
          Update the date of execution of the letter job of the current company.
 void updateLetterFtpJobLog(long jobLogId, java.lang.String fullFilePath, boolean succes, int attempts, java.lang.String ip, java.lang.String path, java.lang.String failureDescription)
          Update the Log of ftps made for executed letter jobs of the current company.
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

loadFields

public java.util.Hashtable loadFields()
                               throws java.rmi.RemoteException,
                                      DAOException
Loads data of systems Fields of the current company
Returns:
Hashtable of system Fields for current company key: fieldId (in Long), value: com.instantbank.component.job.util.Field object
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

loadFieldsDisplay

public java.util.ArrayList loadFieldsDisplay()
                                      throws java.rmi.RemoteException,
                                             DAOException
Loads company fields with display information and menu references (for current company), ordered by display name.
Returns:
ArrayList of company fields where each element is an inner ArrayList composed of: fieldId(Long), displayName(String), dataType(String), menuId(Long), menuName (String)
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

loadFieldMenus

public java.util.ArrayList loadFieldMenus()
                                   throws java.rmi.RemoteException,
                                          DAOException
Loads system field Menus with its values ordered by description (name of menu);
Returns:
ArrayList of menus where each element is an inner ArrayList composed of: menuName(String), menuValues(ArrayList); each menuValues element is a String[] with an internalValue(String) and display(String)
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

loadAlias

public java.util.Hashtable loadAlias()
                              throws java.rmi.RemoteException,
                                     DAOException
Loads data of system alias
Returns:
Hashtable of system Alias key: String[2] = [tableAlias, rootType], value: com.instantbank.component.job.util.Alias object
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

loadVariables

public java.util.ArrayList loadVariables()
                                  throws java.rmi.RemoteException,
                                         DAOException
Loads display name of letter variables (fields) of the current company, ordered by display name
Returns:
ArrayList of variables where each element is an inner ArrayList with the following elements of a variable: fieldId(Long): code of field (variable) in the system, name(String): name of variable to display in user interface, type(String): type of variable: numeric: LetterTemplateGlobals.FIELD_NUMERIC, string: LetterTemplateGlobals.FIELD_STRING, date: LetterTemplateGlobals.FIELD_DATE
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

loadVariableFormats

public CodeDescription[] loadVariableFormats()
                                      throws java.rmi.RemoteException,
                                             DAOException
Loads code and description of format of letter variables; ordered by description
Returns:
CodeDescription[] object with [code, description] of formats
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

loadPrintTypes

public CodeDescription[] loadPrintTypes()
                                 throws java.rmi.RemoteException,
                                        DAOException
Loads code and description of printTypes; ordered by description
Returns:
CodeDescription[] object with [code, description] of printTypes
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

loadCategories

public CodeDescription[] loadCategories()
                                 throws java.rmi.RemoteException,
                                        DAOException
Loads all [code, description] of the categories of the current company; ordered by name
Returns:
CodeDescription[] object with [code, description] of the categories
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

applyItemsCategory

public java.util.ArrayList applyItemsCategory(java.util.ArrayList items)
                                       throws java.rmi.RemoteException,
                                              DAOException
Applies a set of changes in the categories of the current company;
Parameters:
items - ArrayList with 3 elements of type String[] representing the attributes of items to apply: code, name and status; status indicates if the item is for inserting, deleting or updating
Returns:
ArrayList with 2 elements: (0) possible problem (String), (1) current categories list (CodeDescription[])
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

storeImageRepository

public long storeImageRepository(java.lang.String nameImage,
                                 byte[] image)
                          throws java.rmi.RemoteException,
                                 DAOException
Stores a new image for the current company
Parameters:
nameImage - name of image
image - bytes of image
Returns:
code (long) assigned to the image
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

loadImagesNamesRepository

public CodeDescription[] loadImagesNamesRepository()
                                            throws java.rmi.RemoteException,
                                                   DAOException
Loads all [code, description] of the images of the current company; ordered by name
Returns:
CodeDescription[] object with [code, description] of images
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

loadImageRepository

public byte[] loadImageRepository(java.lang.String nameImage)
                           throws java.rmi.RemoteException,
                                  DAOException
Loads an image of the current company;
Parameters:
nameImage - name of image
Returns:
byte[] with bytes of image
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

removeImageRepository

public void removeImageRepository(java.lang.String nameImage)
                           throws java.rmi.RemoteException,
                                  DAOException
Removes an image of the current company
Parameters:
nameImage - name of image
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

applyImagesRepository

public java.util.ArrayList applyImagesRepository(java.util.ArrayList items)
                                          throws java.rmi.RemoteException,
                                                 DAOException
Applies a set of changes in the images of the current company;
Parameters:
items - ArrayList with 2 elements of type String[] representing the attributes of items to apply: code, name and status; status indicates if the item is for deleting or updating
Returns:
ArrayList with 2 elements (0) possible problem (String), (1) current images list (CodeDescription[])
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

storeTemplate

public CodeDescription[] storeTemplate(Template template)
                                throws java.rmi.RemoteException,
                                       DAOException
Stores a letters template for the current company, generating code for the template if it is new, and generating code for each component if it is new. If the template exists before, its version is validated and the old template is replaced. The associations between the template and its components are established if these associations are new.
Parameters:
template - to store
Returns:
CodeDescription[] with 4 [code, stamp] in the following order: template, HEADER, BODY, CLOSING
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

loadTemplatesDescription

public CodeDescription[] loadTemplatesDescription(long category,
                                                  int printType)
                                           throws java.rmi.RemoteException,
                                                  DAOException
Loads code and description of all templates, for the current company and for the specified category; ordered by name.
Parameters:
category - specified letter category
printType - specified print type
Returns:
CodeDescription[] object with [code, description] of templates
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

loadTemplateCodes

public CodeDescription[] loadTemplateCodes(long templateCode)
                                    throws java.rmi.RemoteException,
                                           DAOException
Loads code and description of one template and its components for the specified template code
Parameters:
templateCode - code of template
Returns:
CodeDescription[] object with [code, description] of template
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

loadTemplateCodes

public CodeDescription[] loadTemplateCodes(long category,
                                           int printType,
                                           java.lang.String name)
                                    throws java.rmi.RemoteException,
                                           DAOException
Loads code and stamp of one template and its components for the specified template code
Parameters:
category - category of template
printType - type of print
name - name of template
Returns:
CodeDescription[] composed by [code, stamp] of template and its components ordered by template, HEADER, BODY, CLOSING
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

loadTemplateCodeDescription

public CodeDescription[] loadTemplateCodeDescription(long category,
                                                     int printType,
                                                     java.lang.String name)
                                              throws java.rmi.RemoteException,
                                                     DAOException
Loads code and description of one template and its components for the specified template code
Parameters:
category - category of template
printType - type of print
name - name of template
Returns:
CodeDescription[] composed by [code, description] of template and its components ordered by template, HEADER, BODY, CLOSING
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

loadCodesStamps

public CodeDescription[] loadCodesStamps(long category,
                                         int printType,
                                         java.lang.String name,
                                         java.lang.String header,
                                         java.lang.String body,
                                         java.lang.String closing)
                                  throws java.rmi.RemoteException,
                                         DAOException
Loads code and stamp of template and components
Parameters:
category - category of template
printType - type of print
name - name of template
header - name of component header
body - name of component body
closing - name of component closing
Returns:
CodeDescription[i] for i = 1(HEADER),2(BODY),3(CLOSING) is: [code, stamp] of component, if it exists, [LetterTemplateGlobals.UNDEF,LetterTemplateGlobals.STR_UNDEF] if component doesn't exist
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

loadTemplate

public Template loadTemplate(long templateCode)
                      throws java.rmi.RemoteException,
                             DAOException
Loads a letters template of the current company, corresponding to a code.
Parameters:
templateCode - code of template
Returns:
Template selected
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

removeTemplate

public void removeTemplate(long code)
                    throws java.rmi.RemoteException,
                           DAOException
Removes a letters template (not its components) of the current company, corresponding to a code.
Parameters:
code - template code
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

loadAllTemplatesDescription

public java.util.ArrayList loadAllTemplatesDescription()
                                                throws java.rmi.RemoteException,
                                                       DAOException
Loads code, print type and name of templates and their categories names.
Returns:
ArrayList of variables where each element is an inner ArrayList with the following elements of a variable: code(Long): code of template, nameCategory(String): name of category, type(String): print type, nameTemplate (String): name of template.
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

applyItemsTemplate

public java.util.ArrayList applyItemsTemplate(java.util.ArrayList items)
                                       throws java.rmi.RemoteException,
                                              DAOException
Applies a set of changes in the templates of the current company;
Parameters:
items - ArrayList with 4 elements of type String[] representing the attributes of items to apply: code of template, code of category, name of template and status; status indicates if the item is for deleting or updating
Returns:
ArrayList with 2 elements: (0) possible problem (String), (1) current Template description list (ArrayList)
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

loadTemplateDate

public java.sql.Date loadTemplateDate(long templateCode)
                               throws java.rmi.RemoteException,
                                      DAOException
Load the date of template.
Parameters:
templateCode - Code of template.
Returns:
date date of template.
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

loadLoanDummy

public java.lang.String loadLoanDummy()
                               throws java.rmi.RemoteException,
                                      DAOException
Load the dummy loan of a company.
Returns:
code dummy agreement code.
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

storeComponent

public CodeDescription storeComponent(LetterComponent component)
                               throws java.rmi.RemoteException,
                                      DAOException
Stores a letters component for the current company, generating code for the component if it is new. If the component exists before, its version is validated and the old component is replaced.
Parameters:
component - is the letter component to store
Returns:
CodeDescription: [code, stamp] of component
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

storeComponentAs

public CodeDescription storeComponentAs(long templateCode,
                                        LetterComponent component)
                                 throws java.rmi.RemoteException,
                                        DAOException
Store as a letters component for the current company, generating code for the component if it is new. If the component exists before, its version is validated and the old component is replaced. The association between the template and the component is established.
Parameters:
templateCode - Code of template
component - letters component
Returns:
CodeDescription [code, stamp] of component
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

loadComponentsDescription

public CodeDescription[] loadComponentsDescription(int componentType,
                                                   int printType)
                                            throws java.rmi.RemoteException,
                                                   DAOException
Loads code and description of all components, for the current company, for the specified component type and print type; ordered by name
Parameters:
componentType - type of components to load
printType - print type of components to load
Returns:
CodeDescription[] object with [code, description] of components
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

loadComponent

public LetterComponent loadComponent(long code)
                              throws java.rmi.RemoteException,
                                     DAOException
Loads a letters component of the current company, corresponding to a code.
Parameters:
code - code of letters component
Returns:
LetterComponent is the loaded component
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

removeComponent

public void removeComponent(long code)
                     throws java.rmi.RemoteException,
                            DAOException
Removes a letters component of the current company, corresponding to a code.
Parameters:
code - code of letters component
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

loadComponentCode

public CodeDescription loadComponentCode(int componentType,
                                         int printType,
                                         java.lang.String name)
                                  throws java.rmi.RemoteException,
                                         DAOException
Load [code, stamp] for specified component
Parameters:
componentType - type of component (HEADER, BODY or CLOSING)
printType - type of print
name - name of component
Returns:
CodeDescription [code, stamp] if the component exists, [LetterTemplateGlobals.UNDEF,LetterTemplateGlobals.STR_UNDEF] if the component doesn't exist
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

loadUnlikedComponents

public java.util.ArrayList loadUnlikedComponents()
                                          throws java.rmi.RemoteException,
                                                 DAOException
If the relationship between Template and Component doesn't exist loads code, name and print type of components and name of component type.
Returns:
ArrayList of variables where each element is an inner ArrayList with the following elements of a variable: code(Long): code of component, nameComponentType(String):name of component type, type(String): print type, nameComponent (String): name of component.
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

applyItemsComponent

public java.util.ArrayList applyItemsComponent(java.util.ArrayList items)
                                        throws java.rmi.RemoteException,
                                               DAOException
Applies a set of changes in the components of the current company where the relationship between Template and Component doesn't exist.
Parameters:
items - ArrayList with 3 elements of type String[] representing the attributes of items to apply: code and name of component and status; status indicates if the item is for deleting or updating
Returns:
ArrayList with 2 elements: (0) possible problem (String), (1) current Template description list (ArrayList)
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

generatePreviewTemplate

public java.util.ArrayList generatePreviewTemplate(long templateCode,
                                                   long agreementCode,
                                                   java.lang.Long[] templateVarsCodes)
                                            throws java.rmi.RemoteException,
                                                   DAOException
Gets template variables values for one loan of the current company, which will be used in the preview of the template.
Parameters:
templateCode - is the code of template to preview
templateVarsCodes - template variables codes
agreementCode - Description of the Parameter
Returns:
ArrayList of one tuple that is an Object[] of Strings; each String is the value of a template variable for the chosen loan
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

executeSQL

public java.util.ArrayList[] executeSQL(java.lang.String sentenceSQL,
                                        java.lang.Long[] selectFields,
                                        java.util.Hashtable jobORDERhashtable)
                                 throws java.rmi.RemoteException,
                                        DAOException
Gets a result set executing a SQL sentence, associated with a letter job.
Parameters:
sentenceSQL - SQL sentence for executing
selectFields - output fields ids
jobORDERhashtable - Hashtable of job ORDER elements: key: fieldId (in Long), value: JobORDERelement
Returns:
ArrayList[] as following: ArrayList[0]: first column of the result set (i.e. agreement code) it is an ArrayList of String elements. ArrayList[1]: the others columns of the result set it is an ArrayList of String[] elements.
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

loadFTPCodes

public CodeDescription[] loadFTPCodes()
                               throws java.rmi.RemoteException,
                                      DAOException
Loads all [code, name] of the ftp's of the current company, ordered by name
Returns:
CodeDescription[] object with [code, name] of the ftp's
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

loadJobsCodes

public CodeDescription[] loadJobsCodes()
                                throws java.rmi.RemoteException,
                                       DAOException
Loads all [code, name] of the jobs of the current company; ordered by name
Returns:
CodeDescription[] object with [code, name] of the jobs
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

loadCalendars

public java.util.Hashtable loadCalendars()
                                  throws java.rmi.RemoteException,
                                         DAOException
Loads all the calendars of the current company
Returns:
Hashtable of company calendars: key: year (Integer), value: String of 365/366 characters representing the year calendar (each day of year is a character : 'P' is it is workable(processing) day, 'N' otherwise)
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

loadLetterJob

public LetterBatchStartModel loadLetterJob()
                                    throws java.rmi.RemoteException,
                                           DAOException
Loads all letters Job information.
Returns:
answer The LetterBatchStartModel object with all letters Job when each atribute represents: Jobs to run, Jobs out of frequency and other Jobs(inactive,no yet active and on request)
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

loadSysDate

public java.sql.Date loadSysDate()
                          throws java.rmi.RemoteException,
                                 DAOException
Loads the date (Oracle SYSDATE() function).
Returns:
date The date of Oracle SYSDATE() function.
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

loadCompanyWorkDir

public java.lang.String loadCompanyWorkDir()
                                    throws java.rmi.RemoteException,
                                           DAOException
Loads the temporal directory path of the current company.
Returns:
path Path for the Downloads generated by the system.
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

storeLetterJobLog

public LettersJobLogBean storeLetterJobLog(long jobId,
                                           java.sql.Date executionDate,
                                           java.lang.String success,
                                           long resultSetLength,
                                           java.lang.String loggeableResultSet,
                                           java.lang.String foTemplate)
                                    throws java.rmi.RemoteException,
                                           DAOException
Store the log of executed letter jobs of the current company.
Parameters:
resultSetLength - Number of records retrieved by the job execution.
loggeableResultSet - Result set with the records retrieved by the job execution.
foTemplate - Transformed text of template used by the job execution.
jobId - Description of the Parameter
executionDate - Description of the Parameter
success - Description of the Parameter
Returns:
answer The LettersJobLogBean object with the log code, job id and execution date of executed letter jobs.
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

storeLetterFtpJobLog

public void storeLetterFtpJobLog(long jobLogId,
                                 java.lang.String fullFilePath,
                                 boolean succes,
                                 int attempts,
                                 java.lang.String ip,
                                 java.lang.String path,
                                 java.lang.String failureDescription)
                          throws java.rmi.RemoteException,
                                 DAOException
Store the Log of ftps made for executed letter jobs of the current company.
Parameters:
succes - Indicates if the JOB_FILE was sucessfully sent by ftp (yes) or not (no).
attempts - Number of failed attempts in sending by ftp the JOB_FILE.
ip - IP address used in last attempt in sending by ftp the JOB_FILE.
path - complementary PATH of LAST_FTP_IP_ADDRESS.
failureDescription - explanation in failure case.
jobLogId - Description of the Parameter
fullFilePath - Description of the Parameter
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

updateLetterFtpJobLog

public void updateLetterFtpJobLog(long jobLogId,
                                  java.lang.String fullFilePath,
                                  boolean succes,
                                  int attempts,
                                  java.lang.String ip,
                                  java.lang.String path,
                                  java.lang.String failureDescription)
                           throws java.rmi.RemoteException,
                                  DAOException
Update the Log of ftps made for executed letter jobs of the current company.
Parameters:
succes - Indicates if the JOB_FILE was sucessfully sent by ftp (yes) or not (no).
attempts - Number of failed attempts in sending by ftp the JOB_FILE.
ip - IP address used in last attempt in sending by ftp the JOB_FILE.
path - complementary PATH of LAST_FTP_IP_ADDRESS.
failureDescription - explanation in failure case.
jobLogId - Description of the Parameter
fullFilePath - Description of the Parameter
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

updateJobExecDate

public void updateJobExecDate(long jobId,
                              java.sql.Date date)
                       throws java.rmi.RemoteException,
                              DAOException
Update the date of execution of the letter job of the current company.
Parameters:
date - The date of execution of the letter job.
jobId - Description of the Parameter
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

loadCompanyLocation

public CompanyLocation loadCompanyLocation(long ftpId)
                                    throws java.rmi.RemoteException,
                                           DAOException
Load the data of company locations.
Parameters:
ftpId - The code of ftp.
Returns:
answer The CompanyLocation object with location id, path ip address, ftp login name and ftp password.
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

loadLetterBatchReview

public LetterBatchReviewModel loadLetterBatchReview(java.lang.String dayMonthYear)
                                             throws java.rmi.RemoteException,
                                                    DAOException
Review the batch of letters jobs
Parameters:
dayMonthYear - The date to ask for letter Job Log information
Returns:
answer The LetterBatchReviewModel object with Job Log information.
Throws:
DAOException -  
java.rmi.RemoteException - Description of the Exception

insertLetterARHistory

public void insertLetterARHistory(java.sql.Connection dbConnection,
                                  long lCompID,
                                  long lAgrmID,
                                  java.sql.Date procDate,
                                  long lLettID,
                                  long lLettCode,
                                  long lActionCode,
                                  long lResultCode)
                           throws java.rmi.RemoteException,
                                  DAOException