public class FinancialService extends AppService implements FinancialServiceRemote
currentState, dbManager, INIT, liveObjCount, load, LOAD, mxServer, name, RUN, running, stateCmdList, stateList, STOP, urlAPPLOGGER, CRONTASKLOGGER, CRONTASKMGRLOGGER, CRONTASKMGRSQLLOGGER, DBCONNECTIONLOGGER, DDLOGGER, DMLOGGER, EVENTLOGGER, EXCEPTIONLOGGER, MAILLOGGER, MAXIMOLOGGER, MTLOGGER, NULLMBOPOINTER, SECURITY, SENDFAILEDLOGGER, SERVICELOGGER, SQLLOGGERappenderPrefix, LOGGERNAME_APP, LOGGERNAME_CRONTASK, LOGGERNAME_CRONTASKMGR, LOGGERNAME_DBCONNECTION, LOGGERNAME_DD, LOGGERNAME_DM, LOGGERNAME_DMPREVIEW, LOGGERNAME_EVENT, LOGGERNAME_EXCEPTION, LOGGERNAME_MAIL, LOGGERNAME_MAXIMO, LOGGERNAME_MT, LOGGERNAME_NULLMBOPOINTER, LOGGERNAME_SECURITY, LOGGERNAME_SENDFAILED, LOGGERNAME_SERVICE, LOGGERNAME_SQL, LOGGERNAME_SQL_CRONTASKMGR, LOGGERNAME_TXN, loggerPrefix| Constructor and Description |
|---|
FinancialService()
Construct the FinancialService object.
|
FinancialService(MXServer mxServer)
Construct the FinancialService object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCOA(java.lang.String orgid,
java.lang.String compvalue,
java.lang.String comptext,
UserInfo userInfo,
MXTransaction trans) |
void |
advancedAccountSetup(java.util.Map components,
java.lang.String compvalue,
UserInfo userInfo) |
void |
basicAccountSetup(java.lang.String orgid,
java.lang.String compname,
java.lang.String compvalue,
java.lang.String comptext,
UserInfo userInfo) |
void |
componenetsSetup(java.util.Map components,
java.lang.String orgid,
java.lang.String compvalue,
MXTransaction trans,
UserInfo userInfo) |
void |
disableGLValidation(java.lang.String orgid,
UserInfo userInfo) |
java.lang.String |
getAccountDefaults(UserInfo user,
java.lang.String defaultGroup,
java.lang.String orgID)
Gets the GL Account default from ACCOUNTDEFAULTS that are tied to specific columns in
the database.
|
java.lang.String |
getAccountDefaults(UserInfo user,
java.lang.String defaultGroup,
java.lang.String groupValue,
java.lang.String orgID)
Gets the GL Account default from ACCOUNTDEFAULTS that are tied to specific columns in
the database.
|
java.lang.String |
getActiveFinancialPeriod(UserInfo user,
java.util.Date transDate,
java.lang.String orgID)
Gets an active Financial Period, if transaction date is not between periodstart and
periodend, use where transaction date < periodend and (current date < periodclosedate
or periodclosedate is null).
|
java.lang.String |
getActiveFinancialPeriod(UserInfo user,
java.util.Date transDate,
java.lang.String orgID,
java.lang.Boolean useNextPeriodIfInactive)
Gets an active Financial Period, if transaction date is not between periodstart and
periodend, use where transaction date < periodend and (current date < periodclosedate
or periodclosedate is null).
|
java.util.Vector |
getActiveFinancialPeriodInfo(UserInfo user,
java.util.Date transDate,
java.lang.String orgID)
This method returns a vector of the derived financial period and it's related
mbo remote.
|
int |
getAddTaxIndcr(UserInfo user,
java.lang.String typeCode,
java.lang.String orgID,
MboRemote mbo)
Get the add tax indicator using typecode.
|
boolean[] |
getIncludeTax(UserInfo user,
java.lang.String typeCode,
java.lang.String orgID,
MboRemote mbo)
Get the INCLUDETAX1 thru INCLUDETAX5 using typecode.
|
java.lang.String |
getSpecificFinancialPeriod(UserInfo user,
java.util.Date transDate,
java.lang.String orgID)
Gets a specific Financial Period if transaction date is between periodstart and periodend
and (current date <= periodclosedate or periodclosedate is null).
|
double |
getTaxRate(UserInfo user,
java.lang.String typeCode,
java.lang.String taxCode,
java.lang.String orgID)
Gets the tax rate using a combination of taxcode and typecode.
|
MboSetRemote |
getTaxSet(UserInfo user,
java.lang.String typeCode,
java.lang.String taxCode,
java.lang.String orgID,
MboRemote mbo)
Get Tax MboSetRemote using typecode and taxcode.
|
MboSetRemote |
getTaxTypeSet(UserInfo user,
java.lang.String typeCode,
java.lang.String orgID,
MboRemote mbo)
Get TaxType MboSetRemote using typecode.
|
boolean |
glRequiredForTrans(UserInfo user,
java.lang.String orgID)
Validate if the GL Account is required for transactions.
|
boolean |
isFullySpecified(UserInfo user,
java.lang.String account,
java.lang.String orgID)
This method is to check if the GL account has all the components filled in or specified.
|
void |
resetGLOrder(java.lang.String orgid,
UserInfo userInfo) |
void |
setGLDefaultDescription(MboRemote chartOfAccount)
Create a description for a GL Account based on its component descriptions.
|
void |
setupFinancialPeriods(java.lang.String orgid,
java.lang.String period,
java.lang.String startmonth,
int numyears,
boolean disableperiods,
UserInfo userInfo) |
void |
setupFinancialPeriodsFull(java.lang.String orgid,
java.lang.String period,
java.lang.String startmonth,
int numyears,
boolean disableperiods,
UserInfo userInfo,
boolean updateApptracker) |
void |
skipSetup(UserInfo userInfo) |
void |
update(UserInfo user,
java.lang.String updateDBCriteria,
java.lang.String orgID)
This method is called when using the action Update Database in Chart of Accounts application.
|
void |
updateApptracker(com.ibm.json.java.JSONArray ja,
boolean complete,
UserInfo userInfo,
MXTransaction trans) |
java.lang.Boolean |
validateFinancialPeriod(UserInfo user,
java.util.Date transDate,
java.lang.String orgID)
IJ04584: Checks for an active financial period.
|
boolean |
validateFullGLAccount(UserInfo user,
java.lang.String account,
java.lang.String orgID)
Validate if the GL Account is fully specified.
|
boolean |
validatePartialGLAccount(UserInfo user,
java.lang.String account,
java.lang.String orgID)
Validate if the GL Account is partially specified.
|
boolean |
validateTax(UserInfo user,
java.lang.String typeCode,
java.lang.String taxCode,
java.lang.String orgID)
Validate a tax using a combination of typecode and taxcode.
|
checkSecurity, configure, destroy, freeDBConnection, freeMboSet, getCriteria, getCriteriaList, getCurrentState, getDBConnection, getLiveObjCount, getLoad, getMaximoDD, getMaxVar, getMboSet, getMXServer, getName, getProfile, getProxy, getSchemaOwner, getServiceInfo, getServiceLogger, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, init, initCriteriaList, isAppService, isRunning, isSingletonService, restart, setName, setProxy, setRunning, setURL, verifyUser, verifyUserclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckSecurity, getCriteria, getCurrentState, getLiveObjCount, getMboSet, getName, getSchemaOwner, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, verifyUser, verifyUserisAppService, isSingletonService, restartpublic FinancialService()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic FinancialService(MXServer mxServer) throws java.rmi.RemoteException
mxServer - java.rmi.RemoteExceptionpublic boolean validateFullGLAccount(UserInfo user, java.lang.String account, java.lang.String orgID) throws MXException, java.rmi.RemoteException
validateFullGLAccount in interface FinancialServiceRemoteuser - UserInfo object to get the user.account - GL Account to be validated.orgID - The organization identifier.MXExceptionjava.rmi.RemoteExceptionFinancialService.validateFullGLAccount(psdi.security.UserInfo, java.lang.String, java.lang.String)public boolean validatePartialGLAccount(UserInfo user, java.lang.String account, java.lang.String orgID) throws MXException, java.rmi.RemoteException
validatePartialGLAccount in interface FinancialServiceRemoteuser - UserInfo object to get the user.account - GL Account to be validated.orgID - The organization identifier.MXExceptionjava.rmi.RemoteExceptionFinancialService.validatePartialGLAccount(psdi.security.UserInfo, java.lang.String, java.lang.String)public java.lang.String getSpecificFinancialPeriod(UserInfo user, java.util.Date transDate, java.lang.String orgID) throws MXException, java.rmi.RemoteException
getSpecificFinancialPeriod in interface FinancialServiceRemoteuser - UserInfo object to get the user.transDate - Date on which the transaction occurs.orgID - The organization identifier.MXApplicationException - (financial, invalidfinperiod) The financial period for this
transaction is invalid.MXExceptionjava.rmi.RemoteExceptionFinancialService.getSpecificFinancialPeriod(psdi.security.UserInfo, java.util.Date, java.lang.String)public java.lang.String getActiveFinancialPeriod(UserInfo user, java.util.Date transDate, java.lang.String orgID) throws MXException, java.rmi.RemoteException
getActiveFinancialPeriod in interface FinancialServiceRemoteuser - UserInfo object to get the user.transDate - Date on which the transaction occurs.orgID - The organization identifier.MXApplicationException - (financial, invalidfinperiod) The financial period for this
transaction is invalid.MXApplicationException - (financial, closedfinperiod) The financial period for this
date is closed.MXExceptionjava.rmi.RemoteExceptionFinancialService.getActiveFinancialPeriod(psdi.security.UserInfo, java.util.Date, java.lang.String)public java.lang.String getActiveFinancialPeriod(UserInfo user, java.util.Date transDate, java.lang.String orgID, java.lang.Boolean useNextPeriodIfInactive) throws MXException, java.rmi.RemoteException
getActiveFinancialPeriod in interface FinancialServiceRemoteuser - UserInfo object to get the user.transDate - Date on which the transaction occurs.orgID - The organization identifier.useNextPeriodIfInactive - Boolean indicating whether the next financial period should be used
if the period is inactiveMXApplicationException - (financial, invalidfinperiod) The financial period for this
transaction is invalid.MXApplicationException - (financial, closedfinperiod) The financial period for this
date is closed.MXExceptionjava.rmi.RemoteExceptionFinancialService.getActiveFinancialPeriod(psdi.security.UserInfo, java.util.Date, java.lang.String)public java.lang.String getAccountDefaults(UserInfo user, java.lang.String defaultGroup, java.lang.String groupValue, java.lang.String orgID) throws MXException, java.rmi.RemoteException
The type of accounts or resource codes passed for the method parameter defaultGroup are:
see AccountDefaults for details on these default accounts.
getAccountDefaults in interface FinancialServiceRemoteuser - UserInfo object to get the user.groupValue - defaultGroup - orgID - MXExceptionjava.rmi.RemoteExceptionFinancialService.getAccountDefaults(UserInfo, String, String)public java.lang.String getAccountDefaults(UserInfo user, java.lang.String defaultGroup, java.lang.String orgID) throws MXException, java.rmi.RemoteException
getAccountDefaults in interface FinancialServiceRemoteuser - UserInfo object to get the user.groupValue - defaultGroup - orgID - MXExceptionjava.rmi.RemoteExceptionpsdi.app.financial.FinancialService#getAccountDefaults(UserInfo, String)public boolean validateTax(UserInfo user, java.lang.String typeCode, java.lang.String taxCode, java.lang.String orgID) throws MXException, java.rmi.RemoteException
validateTax in interface FinancialServiceRemoteuser - UserInfo object to get the user.typeCode - The tax type.taxCode - The tax code to be validated.orgID - The organization identifier.MXExceptionjava.rmi.RemoteExceptionFinancialService.validateTax(psdi.security.UserInfo, java.lang.String, java.lang.String, java.lang.String)public double getTaxRate(UserInfo user, java.lang.String typeCode, java.lang.String taxCode, java.lang.String orgID) throws MXException, java.rmi.RemoteException
getTaxRate in interface FinancialServiceRemoteuser - UserInfo object to get the user.taxCode - The tax code.typeCode - The tax type.orgID - The organization identifier.MXExceptionjava.rmi.RemoteExceptionFinancialService.getTaxRate(psdi.security.UserInfo, java.lang.String, java.lang.String, java.lang.String)public int getAddTaxIndcr(UserInfo user, java.lang.String typeCode, java.lang.String orgID, MboRemote mbo) throws MXException, java.rmi.RemoteException
getAddTaxIndcr in interface FinancialServiceRemoteuser - UserInfo object to get the user.typeCode - The tax type.orgID - The organization identifier.mbo - The passed in mbo remote.MXExceptionjava.rmi.RemoteExceptionFinancialService.getAddTaxIndcr(psdi.security.UserInfo, java.lang.String, java.lang.String, psdi.mbo.MboRemote)public boolean[] getIncludeTax(UserInfo user, java.lang.String typeCode, java.lang.String orgID, MboRemote mbo) throws MXException, java.rmi.RemoteException
getIncludeTax in interface FinancialServiceRemoteuser - UserInfo object to get the user.typeCode - The tax type.orgID - The organization identifier.mbo - The passed in mbo remote.MXExceptionjava.rmi.RemoteExceptionFinancialService.getIncludeTax(psdi.security.UserInfo, java.lang.String, java.lang.String, psdi.mbo.MboRemote)public MboSetRemote getTaxTypeSet(UserInfo user, java.lang.String typeCode, java.lang.String orgID, MboRemote mbo) throws MXException, java.rmi.RemoteException
getTaxTypeSet in interface FinancialServiceRemoteuser - UserInfo object to get the user.typeCode - The tax type.orgID - The organization identifier.mbo - The passed in mbo remote.MXExceptionjava.rmi.RemoteExceptionFinancialService.getTaxTypeSet(psdi.security.UserInfo, java.lang.String, java.lang.String, psdi.mbo.MboRemote)public MboSetRemote getTaxSet(UserInfo user, java.lang.String typeCode, java.lang.String taxCode, java.lang.String orgID, MboRemote mbo) throws MXException, java.rmi.RemoteException
getTaxSet in interface FinancialServiceRemoteuser - UserInfo object to get the user.typeCode - The tax type.taxCode - The tax code.orgID - The organization identifier.mbo - The passed in mbo remote.MXExceptionjava.rmi.RemoteExceptionFinancialService.getTaxSet(psdi.security.UserInfo, java.lang.String, java.lang.String, java.lang.String, psdi.mbo.MboRemote)public boolean isFullySpecified(UserInfo user, java.lang.String account, java.lang.String orgID) throws MXException, java.rmi.RemoteException
isFullySpecified in interface FinancialServiceRemoteUserInfo - user UserInfo object to get the user.String - account The GL account string.MXExceptionjava.rmi.RemoteExceptionFinancialService.isFullySpecified(psdi.security.UserInfo, java.lang.String, java.lang.String)public void update(UserInfo user, java.lang.String updateDBCriteria, java.lang.String orgID) throws MXException, java.rmi.RemoteException
update in interface FinancialServiceRemoteuser - The user info.updateDatabase - The criteria used for the update.orgID - The organization identifier.MXExceptionjava.rmi.RemoteExceptionFinancialService.update(psdi.security.UserInfo, java.lang.String, java.lang.String)public boolean glRequiredForTrans(UserInfo user, java.lang.String orgID) throws MXException, java.rmi.RemoteException
glRequiredForTrans in interface FinancialServiceRemoteuser - UserInfo object to get the user.orgID - The organization identifier.MXExceptionjava.rmi.RemoteExceptionFinancialService.glRequiredForTrans(psdi.security.UserInfo, java.lang.String)public void setGLDefaultDescription(MboRemote chartOfAccount) throws MXException, java.rmi.RemoteException
setGLDefaultDescription in interface FinancialServiceRemotechartOfAccount - Chart of accounts MboRemote.MXExceptionjava.rmi.RemoteExceptionFinancialService.setGLDefaultDescription(psdi.mbo.MboRemote)public java.util.Vector getActiveFinancialPeriodInfo(UserInfo user, java.util.Date transDate, java.lang.String orgID) throws MXException, java.rmi.RemoteException
getActiveFinancialPeriodInfo in interface FinancialServiceRemoteMXExceptionjava.rmi.RemoteExceptionFinancialService.getActiveFinancialPeriodInfo(psdi.security.UserInfo, java.util.Date, java.lang.String)public java.lang.Boolean validateFinancialPeriod(UserInfo user, java.util.Date transDate, java.lang.String orgID) throws MXException, java.rmi.RemoteException
validateFinancialPeriod in interface FinancialServiceRemoteuser - UserInfo object to get the user.transDate - Date on which the transaction occurs.orgID - The organization identifier.MXApplicationException - (financial, invalidfinperiod) The financial period for this transaction is invalid.MXApplicationException - (financial, closedfinperiod) The financial period for this date is closed.MXExceptionjava.rmi.RemoteExceptionFinancialService.validateFinancialPeriod(psdi.security.UserInfo, java.util.Date, java.lang.String)public void basicAccountSetup(java.lang.String orgid,
java.lang.String compname,
java.lang.String compvalue,
java.lang.String comptext,
UserInfo userInfo)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void disableGLValidation(java.lang.String orgid,
UserInfo userInfo)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void resetGLOrder(java.lang.String orgid,
UserInfo userInfo)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void advancedAccountSetup(java.util.Map components,
java.lang.String compvalue,
UserInfo userInfo)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void componenetsSetup(java.util.Map components,
java.lang.String orgid,
java.lang.String compvalue,
MXTransaction trans,
UserInfo userInfo)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void setupFinancialPeriods(java.lang.String orgid,
java.lang.String period,
java.lang.String startmonth,
int numyears,
boolean disableperiods,
UserInfo userInfo)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void setupFinancialPeriodsFull(java.lang.String orgid,
java.lang.String period,
java.lang.String startmonth,
int numyears,
boolean disableperiods,
UserInfo userInfo,
boolean updateApptracker)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void skipSetup(UserInfo userInfo) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void updateApptracker(com.ibm.json.java.JSONArray ja,
boolean complete,
UserInfo userInfo,
MXTransaction trans)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void addCOA(java.lang.String orgid,
java.lang.String compvalue,
java.lang.String comptext,
UserInfo userInfo,
MXTransaction trans)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteException