|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts.action.ActionForm
msi.web.client.DataStore
This is a generic container that stores our data in an internal hashtable. It is used throughout and should be inherited from and not directly called.
Field Summary | |
static int |
DATASTORE_ADD
formaction to add a record. |
static int |
DATASTORE_ADD_CLONE
formaction for addclone in lessee world |
static int |
DATASTORE_CLONE
formaction to clone a record |
static int |
DATASTORE_FETCH
formaction to fetch a record. |
static int |
DATASTORE_RESET
formaction to update a reset. |
static int |
DATASTORE_SEARCH
formaction to search for records. |
static int |
DATASTORE_SUBMIT
formaction to search for records. |
static int |
DATASTORE_UNKNOWN
|
static int |
DATASTORE_UPDATE
formaction to update a record. |
static int |
ERROR_MESSAGE
ERROR_MESSAGE is a define type var for 0 used by the subclasses of this object for their process* wsdl functions |
static int |
INFO_MESSAGE
INFO_MESSAGE is a define type var for 1 used by the subclasses of this object for their process* wsdl functions |
static int |
PROCESSING_COMPLETED
PROCESSING_COMPLETED is a define type var for 2 used by the subclasses of this object for their process* wsdl functions |
Constructor Summary | |
DataStore()
DataStore bean constructor. |
Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener lstnr)
This is part of the JavaBean API requirements. |
boolean |
apiInitXMLParser(java.lang.String XMLDocument)
This is used by the API. |
java.lang.String |
buildErrorMessage()
This method is used only by the DataStore and mPowerRequestProcessor and is not intended to be called elsewhere. |
java.lang.String |
buildXmlMsg(java.lang.String xmlTopLevelElement,
boolean error,
java.lang.String msg)
|
void |
deleteFieldValue(java.lang.String fieldName)
A function to delete a field from the DataStore Map. |
boolean |
dsConnect()
|
boolean |
dsConnect(java.lang.String username,
java.lang.String password)
Method for connecting to the remote xml driver through the WSDL interface. |
boolean |
dsConnectAsUser(java.lang.String username,
java.lang.String password)
Method for connecting to the remote xml driver through the WSDL interface. |
boolean |
dsConnectUseINI(java.lang.String iniName)
|
boolean |
dsConnectWithINI(java.lang.String username,
java.lang.String password,
java.lang.String iniFile)
Method for connecting to the remote xml driver through the WSDL interface. |
void |
dsDisconnect()
Method to Disconnect and terminate the XMLRequestor. |
java.lang.String |
dsProcessRequest()
Method that processes the Hashtable currently stored in the session. |
java.lang.String |
dsProcessSearchRequest(java.lang.String xslFile)
Method that processes the Hashtable currently stored in the session. |
void |
dsSetDebugMode(boolean onOrOff)
Method to turn on or off debugging. |
java.util.Map |
getAll()
A function to get the data store as a map. |
java.lang.String |
getCompany()
public function to get the company. |
java.util.Hashtable |
getCurrentData()
this gets the contents of the DataStore hashtable. |
java.lang.String |
getErrorMessage()
This method gets the messages from the server. |
java.lang.String |
getFieldValue(java.lang.String fieldName)
A function to get a field from the DataStore Map. |
int |
getFormAction()
A function to get the formaction in the DataStore Map. |
java.lang.String |
getInfoMessage()
This method gets INFO the messages from the server. |
java.util.Hashtable |
getLPCodes(java.lang.String codename)
A function to deal with the codes in mPower. |
java.lang.String |
getModulenumber()
A function to get the modulenumber from the DataStore Map. |
java.lang.String |
getMpd_Build_sequence()
|
java.lang.String |
getOffice()
public function to get the office. |
java.lang.String |
getPortfolio()
public function to get the portfolio. |
java.lang.String |
getRegion()
public function to get the region. |
java.lang.String |
getResultData()
|
java.util.Hashtable |
getStateCodes()
A function to deal with the STATE codes in mPower. |
java.lang.String |
getWarnMessage()
This method gets WARN the messages from the server. |
java.lang.String |
getXML_Build_sequence()
|
java.lang.String |
hashtableToXml(java.util.Hashtable tbl,
java.lang.String xmlTopLevelElement)
|
void |
initLabels(msi.util.mplabels relabel)
This object takes an existing mplabels object and uses it to initialize this object for the life of this object. |
int |
processFormActionType(java.lang.String type)
This returns the form action type from the object. |
void |
putAll(java.util.Map allData)
A function to set the DataStore Map. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener lstnr)
This is part of the JavaBean API requirements. |
void |
resetDataStore()
A function to reinitialize the DataStore so that all data is removed and new data can start being added. |
java.lang.String |
selfToXML(java.lang.String xmlTopLevelElement)
|
void |
setCompany(java.lang.String comp)
public function to set the company. |
void |
setCurrentData(java.util.Hashtable currdata)
in one fell swoop you could set the contents of the hashtable If you know what you are doing INTERNAL to mPower. |
void |
setDefaultPCRO(java.lang.String port,
java.lang.String comp,
java.lang.String region,
java.lang.String office)
This sets up the default portfolio, company, region and office. |
boolean |
setField(java.lang.String fieldName,
java.lang.String fieldValue)
A function to set a field in the DataStore Map. |
void |
setFormAction(java.lang.String fieldValue)
A function to set the formaction in the DataStore Map. |
void |
setFormActionAdd()
A function to set the formaction in the DataStore Map to Add a record. |
void |
setFormActionClone()
A function to set the formaction in the DataStore Map to Clone a record. |
void |
setFormActionFetch()
A function to set the formaction in the DataStore Map to Fetch a record. |
void |
setFormActionReset()
A function to set the formaction in the DataStore Map to Reset. |
void |
setFormActionSearch()
A function to set the formaction in the DataStore Map to Search. |
void |
setFormActionUpdate()
A function to set the formaction in the DataStore Map to Update a record. |
void |
setLocale(msi.util.mplabels local)
using the mplabels object set the local INTERNAL to mPower. |
void |
setModulenumber(java.lang.String fieldValue)
A function to set the modulenumber in the DataStore Map. |
void |
setOffice(java.lang.String office)
public function to set the office. |
void |
setPortfolio(java.lang.String port)
public function to set the portfolio. |
void |
setRegion(java.lang.String region)
public function to set the region. |
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 |
Field Detail |
public static final int ERROR_MESSAGE
public static final int INFO_MESSAGE
public static final int PROCESSING_COMPLETED
public static final int DATASTORE_ADD
public static final int DATASTORE_UPDATE
public static final int DATASTORE_RESET
public static final int DATASTORE_FETCH
public static final int DATASTORE_SEARCH
public static final int DATASTORE_SUBMIT
public static final int DATASTORE_CLONE
public static final int DATASTORE_ADD_CLONE
public static final int DATASTORE_UNKNOWN
Constructor Detail |
public DataStore()
Method Detail |
public void initLabels(msi.util.mplabels relabel)
public void addPropertyChangeListener(java.beans.PropertyChangeListener lstnr)
lstnr
- public void removePropertyChangeListener(java.beans.PropertyChangeListener lstnr)
lstnr
- public int processFormActionType(java.lang.String type)
type
- - the type of form action.
public void setLocale(msi.util.mplabels local)
public java.util.Map getAll()
public java.util.Hashtable getCurrentData()
public void setCurrentData(java.util.Hashtable currdata)
public void resetDataStore()
public boolean setField(java.lang.String fieldName, java.lang.String fieldValue)
fieldName
- - the name of the field to set.fieldValue
- - the value of the field.
public java.lang.String getFieldValue(java.lang.String fieldName)
fieldName
- - the name of the field to set.
public void deleteFieldValue(java.lang.String fieldName)
fieldName
- - the name of the field to delete.public void setModulenumber(java.lang.String fieldValue)
fieldValue
- - the value of the module number.public java.lang.String getModulenumber()
public int getFormAction()
public void setFormAction(java.lang.String fieldValue)
fieldValue
- - the value of the formaction.public void setFormActionAdd()
public void setFormActionFetch()
public void setFormActionUpdate()
public void setFormActionClone()
public void setFormActionSearch()
public void setFormActionReset()
public void putAll(java.util.Map allData)
allData
- - all the data to go into the map.public java.util.Hashtable getLPCodes(java.lang.String codename)
public java.util.Hashtable getStateCodes()
public void setPortfolio(java.lang.String port)
port
- - portfolio.public void setCompany(java.lang.String comp)
comp
- - company.public void setRegion(java.lang.String region)
region
- - region.public void setOffice(java.lang.String office)
office
- - office.
public java.lang.String getPortfolio()
public java.lang.String getCompany()
public java.lang.String getRegion()
public java.lang.String getOffice()
public void setDefaultPCRO(java.lang.String port, java.lang.String comp, java.lang.String region, java.lang.String office)
port
- - the portfolio.comp
- - the company.region
- - the region.office
- - the office.public boolean apiInitXMLParser(java.lang.String XMLDocument)
XMLDocument
- - the full large or small xml document.
public boolean dsConnect() throws java.rmi.RemoteException
java.rmi.RemoteException
public boolean dsConnectUseINI(java.lang.String iniName) throws java.rmi.RemoteException
java.rmi.RemoteException
public boolean dsConnectAsUser(java.lang.String username, java.lang.String password) throws java.rmi.RemoteException
username
- - the leasepak username to use to login to the server.password
- - the leasepak network encrypted password.
throws
- RemoteException
java.rmi.RemoteException
public boolean dsConnect(java.lang.String username, java.lang.String password) throws java.rmi.RemoteException
username
- - the leasepak username to use to login to the server.password
- - the leasepak network encrypted password.
throws
- RemoteException
java.rmi.RemoteException
public boolean dsConnectWithINI(java.lang.String username, java.lang.String password, java.lang.String iniFile) throws java.rmi.RemoteException
username
- - the leasepak username to use to login to the server.password
- - the leasepak network encrypted password.iniFile
- - the leasepak ini filename.
throws
- RemoteException
java.rmi.RemoteException
public void dsDisconnect() throws java.rmi.RemoteException
throws
- RemoteException
java.rmi.RemoteException
public void dsSetDebugMode(boolean onOrOff) throws java.rmi.RemoteException
onOrOff
- - turn the debugging on or off.
RemoteException.
java.rmi.RemoteException
public java.lang.String dsProcessRequest() throws java.rmi.RemoteException
throws
- RemoteException
java.rmi.RemoteException
public java.lang.String dsProcessSearchRequest(java.lang.String xslFile) throws java.rmi.RemoteException
xslFile
- caller should pass either none or an xsl File.
throws
- RemoteException
java.rmi.RemoteException
public java.lang.String getErrorMessage()
public java.lang.String getWarnMessage()
public java.lang.String getInfoMessage()
public java.lang.String getResultData()
public java.lang.String getMpd_Build_sequence()
public java.lang.String getXML_Build_sequence()
public java.lang.String hashtableToXml(java.util.Hashtable tbl, java.lang.String xmlTopLevelElement)
public java.lang.String selfToXML(java.lang.String xmlTopLevelElement)
public java.lang.String buildXmlMsg(java.lang.String xmlTopLevelElement, boolean error, java.lang.String msg)
public java.lang.String buildErrorMessage() throws java.rmi.RemoteException
throws
- RemoteException
java.rmi.RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
© 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.