|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Business interface of letterTemplate EJB: list of services for letters module (Session Stateful EJB)
| 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 |
public java.util.Hashtable loadFields()
throws java.rmi.RemoteException,
DAOException
DAOException - java.rmi.RemoteException - Description of the Exception
public java.util.ArrayList loadFieldsDisplay()
throws java.rmi.RemoteException,
DAOException
DAOException - java.rmi.RemoteException - Description of the Exception
public java.util.ArrayList loadFieldMenus()
throws java.rmi.RemoteException,
DAOException
DAOException - java.rmi.RemoteException - Description of the Exception
public java.util.Hashtable loadAlias()
throws java.rmi.RemoteException,
DAOException
DAOException - java.rmi.RemoteException - Description of the Exception
public java.util.ArrayList loadVariables()
throws java.rmi.RemoteException,
DAOException
DAOException - java.rmi.RemoteException - Description of the Exception
public CodeDescription[] loadVariableFormats()
throws java.rmi.RemoteException,
DAOException
DAOException - java.rmi.RemoteException - Description of the Exception
public CodeDescription[] loadPrintTypes()
throws java.rmi.RemoteException,
DAOException
DAOException - java.rmi.RemoteException - Description of the Exception
public CodeDescription[] loadCategories()
throws java.rmi.RemoteException,
DAOException
DAOException - java.rmi.RemoteException - Description of the Exception
public java.util.ArrayList applyItemsCategory(java.util.ArrayList items)
throws java.rmi.RemoteException,
DAOException
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 updatingDAOException - java.rmi.RemoteException - Description of the Exception
public long storeImageRepository(java.lang.String nameImage,
byte[] image)
throws java.rmi.RemoteException,
DAOException
nameImage - name of imageimage - bytes of imageDAOException - java.rmi.RemoteException - Description of the Exception
public CodeDescription[] loadImagesNamesRepository()
throws java.rmi.RemoteException,
DAOException
DAOException - java.rmi.RemoteException - Description of the Exception
public byte[] loadImageRepository(java.lang.String nameImage)
throws java.rmi.RemoteException,
DAOException
nameImage - name of imageDAOException - java.rmi.RemoteException - Description of the Exception
public void removeImageRepository(java.lang.String nameImage)
throws java.rmi.RemoteException,
DAOException
nameImage - name of imageDAOException - java.rmi.RemoteException - Description of the Exception
public java.util.ArrayList applyImagesRepository(java.util.ArrayList items)
throws java.rmi.RemoteException,
DAOException
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 updatingDAOException - java.rmi.RemoteException - Description of the Exception
public CodeDescription[] storeTemplate(Template template)
throws java.rmi.RemoteException,
DAOException
template - to storeDAOException - java.rmi.RemoteException - Description of the Exception
public CodeDescription[] loadTemplatesDescription(long category,
int printType)
throws java.rmi.RemoteException,
DAOException
category - specified letter categoryprintType - specified print typeDAOException - java.rmi.RemoteException - Description of the Exception
public CodeDescription[] loadTemplateCodes(long templateCode)
throws java.rmi.RemoteException,
DAOException
templateCode - code of templateDAOException - java.rmi.RemoteException - Description of the Exception
public CodeDescription[] loadTemplateCodes(long category,
int printType,
java.lang.String name)
throws java.rmi.RemoteException,
DAOException
category - category of templateprintType - type of printname - name of templateDAOException - java.rmi.RemoteException - Description of the Exception
public CodeDescription[] loadTemplateCodeDescription(long category,
int printType,
java.lang.String name)
throws java.rmi.RemoteException,
DAOException
category - category of templateprintType - type of printname - name of templateDAOException - java.rmi.RemoteException - Description of the Exception
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
category - category of templateprintType - type of printname - name of templateheader - name of component headerbody - name of component bodyclosing - name of component closingDAOException - java.rmi.RemoteException - Description of the Exception
public Template loadTemplate(long templateCode)
throws java.rmi.RemoteException,
DAOException
templateCode - code of templateDAOException - java.rmi.RemoteException - Description of the Exception
public void removeTemplate(long code)
throws java.rmi.RemoteException,
DAOException
code - template codeDAOException - java.rmi.RemoteException - Description of the Exception
public java.util.ArrayList loadAllTemplatesDescription()
throws java.rmi.RemoteException,
DAOException
DAOException - java.rmi.RemoteException - Description of the Exception
public java.util.ArrayList applyItemsTemplate(java.util.ArrayList items)
throws java.rmi.RemoteException,
DAOException
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 updatingDAOException - java.rmi.RemoteException - Description of the Exception
public java.sql.Date loadTemplateDate(long templateCode)
throws java.rmi.RemoteException,
DAOException
templateCode - Code of template.DAOException - java.rmi.RemoteException - Description of the Exception
public java.lang.String loadLoanDummy()
throws java.rmi.RemoteException,
DAOException
DAOException - java.rmi.RemoteException - Description of the Exception
public CodeDescription storeComponent(LetterComponent component)
throws java.rmi.RemoteException,
DAOException
component - is the letter component to storeDAOException - java.rmi.RemoteException - Description of the Exception
public CodeDescription storeComponentAs(long templateCode,
LetterComponent component)
throws java.rmi.RemoteException,
DAOException
templateCode - Code of templatecomponent - letters componentDAOException - java.rmi.RemoteException - Description of the Exception
public CodeDescription[] loadComponentsDescription(int componentType,
int printType)
throws java.rmi.RemoteException,
DAOException
componentType - type of components to loadprintType - print type of components to loadDAOException - java.rmi.RemoteException - Description of the Exception
public LetterComponent loadComponent(long code)
throws java.rmi.RemoteException,
DAOException
code - code of letters componentDAOException - java.rmi.RemoteException - Description of the Exception
public void removeComponent(long code)
throws java.rmi.RemoteException,
DAOException
code - code of letters componentDAOException - java.rmi.RemoteException - Description of the Exception
public CodeDescription loadComponentCode(int componentType,
int printType,
java.lang.String name)
throws java.rmi.RemoteException,
DAOException
componentType - type of component (HEADER, BODY or CLOSING)printType - type of printname - name of componentDAOException - java.rmi.RemoteException - Description of the Exception
public java.util.ArrayList loadUnlikedComponents()
throws java.rmi.RemoteException,
DAOException
DAOException - java.rmi.RemoteException - Description of the Exception
public java.util.ArrayList applyItemsComponent(java.util.ArrayList items)
throws java.rmi.RemoteException,
DAOException
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 updatingDAOException - java.rmi.RemoteException - Description of the Exception
public java.util.ArrayList generatePreviewTemplate(long templateCode,
long agreementCode,
java.lang.Long[] templateVarsCodes)
throws java.rmi.RemoteException,
DAOException
templateCode - is the code of template to previewtemplateVarsCodes - template variables codesagreementCode - Description of the ParameterDAOException - java.rmi.RemoteException - Description of the Exception
public java.util.ArrayList[] executeSQL(java.lang.String sentenceSQL,
java.lang.Long[] selectFields,
java.util.Hashtable jobORDERhashtable)
throws java.rmi.RemoteException,
DAOException
sentenceSQL - SQL sentence for executingselectFields - output fields idsjobORDERhashtable - Hashtable of job ORDER elements:
key: fieldId (in Long), value: JobORDERelementDAOException - java.rmi.RemoteException - Description of the Exception
public CodeDescription[] loadFTPCodes()
throws java.rmi.RemoteException,
DAOException
DAOException - java.rmi.RemoteException - Description of the Exception
public CodeDescription[] loadJobsCodes()
throws java.rmi.RemoteException,
DAOException
DAOException - java.rmi.RemoteException - Description of the Exception
public java.util.Hashtable loadCalendars()
throws java.rmi.RemoteException,
DAOException
DAOException - java.rmi.RemoteException - Description of the Exception
public LetterBatchStartModel loadLetterJob()
throws java.rmi.RemoteException,
DAOException
DAOException - java.rmi.RemoteException - Description of the Exception
public java.sql.Date loadSysDate()
throws java.rmi.RemoteException,
DAOException
DAOException - java.rmi.RemoteException - Description of the Exception
public java.lang.String loadCompanyWorkDir()
throws java.rmi.RemoteException,
DAOException
DAOException - java.rmi.RemoteException - Description of the Exception
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
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 ParameterexecutionDate - Description of the Parametersuccess - Description of the ParameterDAOException - java.rmi.RemoteException - Description of the Exception
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
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 ParameterfullFilePath - Description of the ParameterDAOException - java.rmi.RemoteException - Description of the Exception
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
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 ParameterfullFilePath - Description of the ParameterDAOException - java.rmi.RemoteException - Description of the Exception
public void updateJobExecDate(long jobId,
java.sql.Date date)
throws java.rmi.RemoteException,
DAOException
date - The date of execution of the letter job.jobId - Description of the ParameterDAOException - java.rmi.RemoteException - Description of the Exception
public CompanyLocation loadCompanyLocation(long ftpId)
throws java.rmi.RemoteException,
DAOException
ftpId - The code of ftp.DAOException - java.rmi.RemoteException - Description of the Exception
public LetterBatchReviewModel loadLetterBatchReview(java.lang.String dayMonthYear)
throws java.rmi.RemoteException,
DAOException
dayMonthYear - The date to ask for letter Job Log informationDAOException - java.rmi.RemoteException - Description of the Exception
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||