msi.web.client
Class LPClient

java.lang.Object
  extended byorg.apache.struts.action.ActionForm
      extended bymsi.web.client.DataStore
          extended bymsi.web.client.LPClientGen
              extended bymsi.web.client.LPClient
All Implemented Interfaces:
msi.web.client.LPClientGenIface, LPClientInterface, java.rmi.Remote, java.io.Serializable

public class LPClient
extends msi.web.client.LPClientGen
implements LPClientInterface

This is the client object class. This class is used for all client updates. The currently supported client types are (Co-)Lessee, Customer, Broker, Guarantor, and Vendor.

Author:
Joseph Acosta
See Also:
Serialized Form

Field Summary
static int APPLICATION_TYPE
           
static java.lang.String BROKER_MODULE
           
static int BROKER_TYPE
           
static java.lang.String COLESSEE_MODULE
           
static java.lang.String CUSTOMER_MODULE
           
static int CUSTOMER_TYPE
           
static java.lang.String GUARANTOR_MODULE
           
static int GUARANTOR_TYPE
           
static java.lang.String LESSEE_MODULE
           
static int LESSEE_TYPE
           
static java.lang.String UDC_MODULE
           
static int UDC_TYPE
           
static java.lang.String VENDOR_MODULE
           
static int VENDOR_TYPE
           
 
Fields inherited from class msi.web.client.DataStore
DATASTORE_ADD, DATASTORE_ADD_CLONE, DATASTORE_CLONE, DATASTORE_FETCH, DATASTORE_RESET, DATASTORE_SEARCH, DATASTORE_SUBMIT, DATASTORE_UNKNOWN, DATASTORE_UPDATE, ERROR_MESSAGE, INFO_MESSAGE, PROCESSING_COMPLETED
 
Constructor Summary
LPClient()
           
 
Method Summary
 java.lang.String addBroker()
           
 java.lang.String addCoLessee()
           
 java.lang.String addCustomer()
           
 java.lang.String addGuarantor()
           
 java.lang.String addLessee()
          some more setup and utility functions
 java.lang.String addUDC()
           
 java.lang.String addVendor()
           
 java.lang.String editBroker(java.lang.String clientNumber)
           
 java.lang.String editCoLessee(java.lang.String clientNumber)
           
 java.lang.String editCustomer(java.lang.String clientNumber)
           
 java.lang.String editGuarantor(java.lang.String clientNumber)
           
 java.lang.String editLessee(java.lang.String clientNumber)
           
 java.lang.String editUDC(java.lang.String clientNumber, java.lang.String clientRelation)
           
 java.lang.String editVendor(java.lang.String clientNumber)
           
 java.util.Hashtable getAllClientRelationships()
           
 int getFormActionType()
          This returns the form action type from the object.
 java.lang.String getXMLBrokerDoc(java.lang.String clientNo)
           
 java.lang.String getXMLCustomerDoc(java.lang.String clientNo)
           
 java.lang.String getXMLGuarantorDoc(java.lang.String clientNo)
           
 java.lang.String getXMLLesseeDoc(java.lang.String clientNo)
           
 java.lang.String getXMLUDCDoc(java.lang.String clientNo, java.lang.String clientRelation)
           
 java.lang.String getXMLVendorDoc(java.lang.String clientNo)
           
 void init(java.lang.Object request)
          This is used internally for mpower only.
 void initMapData(java.lang.Object request)
           
 int processBroker(boolean onlyDoAdd)
          Add or update a client, this needs to be caleld after the initialization fo the xml document.
 int processClientData(java.lang.String xmldoc, boolean addOnly, int clientType)
           
 int processCustomer(boolean onlyDoAdd)
          Add or update a client, this needs to be caleld after the initialization fo the xml document.
 int processGuarantor(boolean onlyDoAdd)
          Add or update a client, this needs to be caleld after the initialization fo the xml document.
 int processLessee(boolean onlyDoAdd)
          Add or update a client, this needs to be caleld after the initialization fo the xml document.
 int processUDC(boolean onlyDoAdd)
          Add or update a client, this needs to be caleld after the initialization fo the xml document.
 int processVendor(boolean onlyDoAdd)
          Add or update a client, this needs to be caleld after the initialization fo the xml document.
 void resetLPClient()
           
 java.lang.String updateBroker()
           
 java.lang.String updateCoLessee()
           
 java.lang.String updateCustomer()
           
 java.lang.String updateGuarantor()
           
 java.lang.String updateLessee()
           
 java.lang.String updateUDC()
           
 java.lang.String updateVendor()
           
 
Methods inherited from class msi.web.client.LPClientGen
getActivityStatus, getAdditionalIncomeSource, getAddress1, getAddress2, getAge, getBillingAddress1, getBillingAddress2, getBillingCity, getBillingName, getBillingState, getBillingZipCode, getBirthDate, getBusEstablishedDate, getBusIncorpState, getBusinessDescription, getBusinessType, getBusPhone, getBusPhoneType, getCity, getClientNumber, getClientRelation, getClientRelChecksum, getCollectionStatus, getCollectionTeam, getCompany, getContactName, getContactName1, getContactName2, getContactTitle, getContactTitle1, getContactTitle2, getContractState, getCurrentOwnerDate, getCustomerNumber, getDatePrenotificationSentOn, getDbaName, getDcxChecksum, getDcxDBANameCheckSum, getEmailAddress, getFinStatementDate, getGuarantorTitle, getHomePhone, getHomePhoneType, getIncorporatedDate, getLastPhoneUsed, getLetterVersionCode, getMaritalStatus, getName, getNoDependents, getOffice, getOtherAddress1, getOtherAddress2, getOtherBusPhone, getOtherCity, getOtherHomePhone, getOtherID, getOtherName, getOtherNote1, getOtherNote2, getOtherState, getOtherZipCode, getPapAccount, getPapAcctType, getPapAchType, getPapInstID, getParentCustomer, getPhoneNumber, getPortfolio, getPrenoteSent, getPrenotificationSentYN, getRateplanGroup, getRecourseType, getRegion, getRemittanceAddress, getRemittanceAddress2, getRemittanceCity, getRemittanceName, getRemittanceState, getRemittanceZipCode, getResidenceType, getSalutation, getShortname, getSicCode, getSignerName, getSignerTitle, getSsnBusinessID, getState, getTaxExemptNumber, getTypeBusPhone, getTypeHomePhone, getUseTaxExemptCode, getVendorParticipationCode, getVendorType, getZipCode, resetStorage, setActivityStatus, setAdditionalIncomeSource, setAddress1, setAddress2, setAge, setBillingAddress1, setBillingAddress2, setBillingCity, setBillingName, setBillingState, setBillingZipCode, setBirthDate, setBusEstablishedDate, setBusIncorpState, setBusinessDescription, setBusinessType, setBusPhone, setBusPhoneType, setCity, setClientNumber, setClientRelation, setClientRelChecksum, setCollectionStatus, setCollectionTeam, setCompany, setContactName, setContactName1, setContactName2, setContactTitle, setContactTitle1, setContactTitle2, setContractState, setCurrentOwnerDate, setCustomerNumber, setDatePrenotificationSentOn, setDbaName, setDcxChecksum, setDcxDBANameCheckSum, setEmailAddress, setFinStatementDate, setGuarantorTitle, setHomePhone, setHomePhoneType, setIncorporatedDate, setLastPhoneUsed, setLetterVersionCode, setMaritalStatus, setName, setNoDependents, setOffice, setOtherAddress1, setOtherAddress2, setOtherBusPhone, setOtherCity, setOtherHomePhone, setOtherID, setOtherName, setOtherNote1, setOtherNote2, setOtherState, setOtherZipCode, setPapAccount, setPapAcctType, setPapAchType, setPapInstID, setParentCustomer, setPhoneNumber, setPortfolio, setPrenoteSent, setPrenotificationSentYN, setRateplanGroup, setRecourseType, setRegion, setRemittanceAddress, setRemittanceAddress2, setRemittanceCity, setRemittanceName, setRemittanceState, setRemittanceZipCode, setResidenceType, setSalutation, setShortname, setSicCode, setSignerName, setSignerTitle, setSsnBusinessID, setState, setTaxExemptNumber, setTypeBusPhone, setTypeHomePhone, setUseTaxExemptCode, setVendorParticipationCode, setVendorType, setZipCode, toHashMap, toXMLDocument, toXMLFragment
 
Methods inherited from class msi.web.client.DataStore
addPropertyChangeListener, apiInitXMLParser, buildErrorMessage, buildXmlMsg, deleteFieldValue, dsConnect, dsConnect, dsConnectAsUser, dsConnectUseINI, dsConnectWithINI, dsDisconnect, dsProcessRequest, dsProcessSearchRequest, dsSetDebugMode, getAll, getCurrentData, getErrorMessage, getFieldValue, getFormAction, getInfoMessage, getLPCodes, getModulenumber, getMpd_Build_sequence, getResultData, getStateCodes, getWarnMessage, getXML_Build_sequence, hashtableToXml, initLabels, processFormActionType, putAll, removePropertyChangeListener, resetDataStore, selfToXML, setCurrentData, setDefaultPCRO, setField, setFormAction, setFormActionAdd, setFormActionClone, setFormActionFetch, setFormActionReset, setFormActionSearch, setFormActionUpdate, setLocale, setModulenumber
 
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServletWrapper, reset, reset, setMultipartRequestHandler, setServlet, validate, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface msi.web.client.LPClientInterface
setDefaultPCRO
 
Methods inherited from interface msi.web.client.LPClientGenIface
apiInitXMLParser, dsConnect, dsDisconnect, dsSetDebugMode, getActivityStatus, getAdditionalIncomeSource, getAddress1, getAddress2, getAge, getBillingAddress1, getBillingAddress2, getBillingCity, getBillingName, getBillingState, getBillingZipCode, getBirthDate, getBusEstablishedDate, getBusIncorpState, getBusinessDescription, getBusinessType, getBusPhone, getBusPhoneType, getCity, getClientNumber, getClientRelation, getClientRelChecksum, getCollectionStatus, getCollectionTeam, getCompany, getContactName, getContactName1, getContactName2, getContactTitle, getContactTitle1, getContactTitle2, getContractState, getCurrentOwnerDate, getCustomerNumber, getDatePrenotificationSentOn, getDbaName, getDcxChecksum, getDcxDBANameCheckSum, getEmailAddress, getErrorMessage, getFinStatementDate, getGuarantorTitle, getHomePhone, getHomePhoneType, getIncorporatedDate, getInfoMessage, getLastPhoneUsed, getLetterVersionCode, getMaritalStatus, getName, getNoDependents, getOffice, getOtherAddress1, getOtherAddress2, getOtherBusPhone, getOtherCity, getOtherHomePhone, getOtherID, getOtherName, getOtherNote1, getOtherNote2, getOtherState, getOtherZipCode, getPapAccount, getPapAcctType, getPapAchType, getPapInstID, getParentCustomer, getPhoneNumber, getPortfolio, getPrenoteSent, getPrenotificationSentYN, getRateplanGroup, getRecourseType, getRegion, getRemittanceAddress, getRemittanceAddress2, getRemittanceCity, getRemittanceName, getRemittanceState, getRemittanceZipCode, getResidenceType, getSalutation, getShortname, getSicCode, getSignerName, getSignerTitle, getSsnBusinessID, getState, getTaxExemptNumber, getTypeBusPhone, getTypeHomePhone, getUseTaxExemptCode, getVendorParticipationCode, getVendorType, getZipCode, resetDataStore, setActivityStatus, setAdditionalIncomeSource, setAddress1, setAddress2, setAge, setBillingAddress1, setBillingAddress2, setBillingCity, setBillingName, setBillingState, setBillingZipCode, setBirthDate, setBusEstablishedDate, setBusIncorpState, setBusinessDescription, setBusinessType, setBusPhone, setBusPhoneType, setCity, setClientNumber, setClientRelation, setClientRelChecksum, setCollectionStatus, setCollectionTeam, setCompany, setContactName, setContactName1, setContactName2, setContactTitle, setContactTitle1, setContactTitle2, setContractState, setCurrentOwnerDate, setCustomerNumber, setDatePrenotificationSentOn, setDbaName, setDcxChecksum, setDcxDBANameCheckSum, setEmailAddress, setFinStatementDate, setGuarantorTitle, setHomePhone, setHomePhoneType, setIncorporatedDate, setLastPhoneUsed, setLetterVersionCode, setMaritalStatus, setName, setNoDependents, setOffice, setOtherAddress1, setOtherAddress2, setOtherBusPhone, setOtherCity, setOtherHomePhone, setOtherID, setOtherName, setOtherNote1, setOtherNote2, setOtherState, setOtherZipCode, setPapAccount, setPapAcctType, setPapAchType, setPapInstID, setParentCustomer, setPhoneNumber, setPortfolio, setPrenoteSent, setPrenotificationSentYN, setRateplanGroup, setRecourseType, setRegion, setRemittanceAddress, setRemittanceAddress2, setRemittanceCity, setRemittanceName, setRemittanceState, setRemittanceZipCode, setResidenceType, setSalutation, setShortname, setSicCode, setSignerName, setSignerTitle, setSsnBusinessID, setState, setTaxExemptNumber, setTypeBusPhone, setTypeHomePhone, setUseTaxExemptCode, setVendorParticipationCode, setVendorType, setZipCode
 

Field Detail

LESSEE_MODULE

public static final java.lang.String LESSEE_MODULE

COLESSEE_MODULE

public static final java.lang.String COLESSEE_MODULE

GUARANTOR_MODULE

public static final java.lang.String GUARANTOR_MODULE

CUSTOMER_MODULE

public static final java.lang.String CUSTOMER_MODULE

VENDOR_MODULE

public static final java.lang.String VENDOR_MODULE

BROKER_MODULE

public static final java.lang.String BROKER_MODULE

UDC_MODULE

public static final java.lang.String UDC_MODULE

CUSTOMER_TYPE

public static final int CUSTOMER_TYPE
See Also:
Constant Field Values

LESSEE_TYPE

public static final int LESSEE_TYPE
See Also:
Constant Field Values

VENDOR_TYPE

public static final int VENDOR_TYPE
See Also:
Constant Field Values

GUARANTOR_TYPE

public static final int GUARANTOR_TYPE
See Also:
Constant Field Values

BROKER_TYPE

public static final int BROKER_TYPE
See Also:
Constant Field Values

APPLICATION_TYPE

public static final int APPLICATION_TYPE
See Also:
Constant Field Values

UDC_TYPE

public static final int UDC_TYPE
See Also:
Constant Field Values
Constructor Detail

LPClient

public LPClient()
Method Detail

resetLPClient

public void resetLPClient()

init

public void init(java.lang.Object request)
This is used internally for mpower only. This should not be called through the API.


initMapData

public void initMapData(java.lang.Object request)

addLessee

public java.lang.String addLessee()
                           throws java.rmi.RemoteException
some more setup and utility functions

Specified by:
addLessee in interface LPClientInterface
Throws:
java.rmi.RemoteException

editLessee

public java.lang.String editLessee(java.lang.String clientNumber)
                            throws java.rmi.RemoteException
Specified by:
editLessee in interface LPClientInterface
Throws:
java.rmi.RemoteException

updateLessee

public java.lang.String updateLessee()
                              throws java.rmi.RemoteException
Specified by:
updateLessee in interface LPClientInterface
Throws:
java.rmi.RemoteException

addCoLessee

public java.lang.String addCoLessee()
                             throws java.rmi.RemoteException
Specified by:
addCoLessee in interface LPClientInterface
Throws:
java.rmi.RemoteException

editCoLessee

public java.lang.String editCoLessee(java.lang.String clientNumber)
                              throws java.rmi.RemoteException
Specified by:
editCoLessee in interface LPClientInterface
Throws:
java.rmi.RemoteException

updateCoLessee

public java.lang.String updateCoLessee()
                                throws java.rmi.RemoteException
Specified by:
updateCoLessee in interface LPClientInterface
Throws:
java.rmi.RemoteException

addCustomer

public java.lang.String addCustomer()
                             throws java.rmi.RemoteException
Specified by:
addCustomer in interface LPClientInterface
Throws:
java.rmi.RemoteException

editCustomer

public java.lang.String editCustomer(java.lang.String clientNumber)
                              throws java.rmi.RemoteException
Specified by:
editCustomer in interface LPClientInterface
Throws:
java.rmi.RemoteException

updateCustomer

public java.lang.String updateCustomer()
                                throws java.rmi.RemoteException
Specified by:
updateCustomer in interface LPClientInterface
Throws:
java.rmi.RemoteException

addGuarantor

public java.lang.String addGuarantor()
                              throws java.rmi.RemoteException
Specified by:
addGuarantor in interface LPClientInterface
Throws:
java.rmi.RemoteException

editGuarantor

public java.lang.String editGuarantor(java.lang.String clientNumber)
                               throws java.rmi.RemoteException
Specified by:
editGuarantor in interface LPClientInterface
Throws:
java.rmi.RemoteException

updateGuarantor

public java.lang.String updateGuarantor()
                                 throws java.rmi.RemoteException
Specified by:
updateGuarantor in interface LPClientInterface
Throws:
java.rmi.RemoteException

addBroker

public java.lang.String addBroker()
                           throws java.rmi.RemoteException
Specified by:
addBroker in interface LPClientInterface
Throws:
java.rmi.RemoteException

editBroker

public java.lang.String editBroker(java.lang.String clientNumber)
                            throws java.rmi.RemoteException
Specified by:
editBroker in interface LPClientInterface
Throws:
java.rmi.RemoteException

updateBroker

public java.lang.String updateBroker()
                              throws java.rmi.RemoteException
Specified by:
updateBroker in interface LPClientInterface
Throws:
java.rmi.RemoteException

addVendor

public java.lang.String addVendor()
                           throws java.rmi.RemoteException
Specified by:
addVendor in interface LPClientInterface
Throws:
java.rmi.RemoteException

editVendor

public java.lang.String editVendor(java.lang.String clientNumber)
                            throws java.rmi.RemoteException
Specified by:
editVendor in interface LPClientInterface
Throws:
java.rmi.RemoteException

updateVendor

public java.lang.String updateVendor()
                              throws java.rmi.RemoteException
Specified by:
updateVendor in interface LPClientInterface
Throws:
java.rmi.RemoteException

addUDC

public java.lang.String addUDC()
                        throws java.rmi.RemoteException
Specified by:
addUDC in interface LPClientInterface
Throws:
java.rmi.RemoteException

editUDC

public java.lang.String editUDC(java.lang.String clientNumber,
                                java.lang.String clientRelation)
                         throws java.rmi.RemoteException
Specified by:
editUDC in interface LPClientInterface
Throws:
java.rmi.RemoteException

updateUDC

public java.lang.String updateUDC()
                           throws java.rmi.RemoteException
Specified by:
updateUDC in interface LPClientInterface
Throws:
java.rmi.RemoteException

getXMLCustomerDoc

public java.lang.String getXMLCustomerDoc(java.lang.String clientNo)
                                   throws java.rmi.RemoteException
Specified by:
getXMLCustomerDoc in interface LPClientInterface
Throws:
java.rmi.RemoteException

getXMLLesseeDoc

public java.lang.String getXMLLesseeDoc(java.lang.String clientNo)
                                 throws java.rmi.RemoteException
Specified by:
getXMLLesseeDoc in interface LPClientInterface
Throws:
java.rmi.RemoteException

getXMLGuarantorDoc

public java.lang.String getXMLGuarantorDoc(java.lang.String clientNo)
                                    throws java.rmi.RemoteException
Specified by:
getXMLGuarantorDoc in interface LPClientInterface
Throws:
java.rmi.RemoteException

getXMLBrokerDoc

public java.lang.String getXMLBrokerDoc(java.lang.String clientNo)
                                 throws java.rmi.RemoteException
Specified by:
getXMLBrokerDoc in interface LPClientInterface
Throws:
java.rmi.RemoteException

getXMLVendorDoc

public java.lang.String getXMLVendorDoc(java.lang.String clientNo)
                                 throws java.rmi.RemoteException
Specified by:
getXMLVendorDoc in interface LPClientInterface
Throws:
java.rmi.RemoteException

getXMLUDCDoc

public java.lang.String getXMLUDCDoc(java.lang.String clientNo,
                                     java.lang.String clientRelation)
                              throws java.rmi.RemoteException
Specified by:
getXMLUDCDoc in interface LPClientInterface
Throws:
java.rmi.RemoteException

processCustomer

public int processCustomer(boolean onlyDoAdd)
                    throws java.rmi.RemoteException
Add or update a client, this needs to be caleld after the initialization fo the xml document.

Specified by:
processCustomer in interface LPClientInterface
Parameters:
onlyDoAdd - - only add the customer do not do updates
Returns:
int 0, means error, 1 means info, 2 is done, see DataStore documentation.
Throws:
java.rmi.RemoteException

processLessee

public int processLessee(boolean onlyDoAdd)
                  throws java.rmi.RemoteException
Add or update a client, this needs to be caleld after the initialization fo the xml document.

Specified by:
processLessee in interface LPClientInterface
Parameters:
onlyDoAdd - - only add the customer do not do updates
Returns:
int 0, means error, 1 means info, 2 is done, see DataStore documentation.
Throws:
java.rmi.RemoteException

processGuarantor

public int processGuarantor(boolean onlyDoAdd)
                     throws java.rmi.RemoteException
Add or update a client, this needs to be caleld after the initialization fo the xml document.

Specified by:
processGuarantor in interface LPClientInterface
Parameters:
onlyDoAdd - - only add the customer do not do updates
Returns:
int 0, means error, 1 means info, 2 is done, see DataStore documentation.
Throws:
java.rmi.RemoteException

processVendor

public int processVendor(boolean onlyDoAdd)
                  throws java.rmi.RemoteException
Add or update a client, this needs to be caleld after the initialization fo the xml document.

Specified by:
processVendor in interface LPClientInterface
Parameters:
onlyDoAdd - - only add the customer do not do updates
Returns:
int 0, means error, 1 means info, 2 is done, see DataStore documentation.
Throws:
java.rmi.RemoteException

processUDC

public int processUDC(boolean onlyDoAdd)
               throws java.rmi.RemoteException
Add or update a client, this needs to be caleld after the initialization fo the xml document.

Specified by:
processUDC in interface LPClientInterface
Parameters:
onlyDoAdd - - only add the customer do not do updates
Returns:
int 0, means error, 1 means info, 2 is done, see DataStore documentation.
Throws:
java.rmi.RemoteException

processBroker

public int processBroker(boolean onlyDoAdd)
                  throws java.rmi.RemoteException
Add or update a client, this needs to be caleld after the initialization fo the xml document.

Specified by:
processBroker in interface LPClientInterface
Parameters:
onlyDoAdd - - only add the customer do not do updates
Returns:
int 0, means error, 1 means info, 2 is done, see DataStore documentation.
Throws:
java.rmi.RemoteException

getAllClientRelationships

public java.util.Hashtable getAllClientRelationships()

getFormActionType

public int getFormActionType()
This returns the form action type from the object.

Returns:
int - the formaction type.

processClientData

public int processClientData(java.lang.String xmldoc,
                             boolean addOnly,
                             int clientType)
                      throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException


© 2008 by NetSol Technologies, Inc.

All rights reserved.The information contained in this document is the property of NetSol Technologies, Inc. Use of the information contained herein is restricted. Conditions of use are subject to change without notice. NetSol Technologies, Inc. assumes no liability for any inaccuracy that may appear in this document; the contents of this document do not constitute a promise or warranty. The software described in this document is furnished under license and may be used or copied only in accordance with the terms of said license. Unauthorized use, alteration, or reproduction of this document without the written consent of NetSol Technologies, Inc. is prohibited.