public class FinancialService extends AppService implements FinancialServiceRemote
APPLOGGER, CRONTASKLOGGER, CRONTASKMGRLOGGER, CRONTASKMGRSQLLOGGER, DBCONNECTIONLOGGER, DDLOGGER, DMLOGGER, EVENTLOGGER, EXCEPTIONLOGGER, MAILLOGGER, MAXIMOLOGGER, MTLOGGER, NULLMBOPOINTER, SECURITY, SENDFAILEDLOGGER, SERVICELOGGER, SQLLOGGER
appenderPrefix, 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<java.lang.String,java.lang.Object> 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<java.lang.String,java.lang.Object> 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, 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, setProxy, setRunning, setURL, verifyUser, verifyUser
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkSecurity, getCriteria, getCurrentState, getLiveObjCount, getMboSet, getName, getSchemaOwner, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, verifyUser, verifyUser
isAppService, isSingletonService, restart
public FinancialService() throws java.rmi.RemoteException
java.rmi.RemoteException
public FinancialService(MXServer mxServer) throws java.rmi.RemoteException
mxServer
- java.rmi.RemoteException
public boolean validateFullGLAccount(UserInfo user, java.lang.String account, java.lang.String orgID) throws MXException, java.rmi.RemoteException
validateFullGLAccount
in interface FinancialServiceRemote
user
- UserInfo object to get the user.account
- GL Account to be validated.orgID
- The organization identifier.MXException
java.rmi.RemoteException
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 FinancialServiceRemote
user
- UserInfo object to get the user.account
- GL Account to be validated.orgID
- The organization identifier.MXException
java.rmi.RemoteException
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 FinancialServiceRemote
user
- 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.MXException
java.rmi.RemoteException
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 FinancialServiceRemote
user
- 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.MXException
java.rmi.RemoteException
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 FinancialServiceRemote
user
- 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.MXException
java.rmi.RemoteException
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 FinancialServiceRemote
user
- UserInfo object to get the user.groupValue
- defaultGroup
- orgID
- MXException
java.rmi.RemoteException
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 FinancialServiceRemote
user
- UserInfo object to get the user.groupValue
- defaultGroup
- orgID
- MXException
java.rmi.RemoteException
psdi.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 FinancialServiceRemote
user
- UserInfo object to get the user.typeCode
- The tax type.taxCode
- The tax code to be validated.orgID
- The organization identifier.MXException
java.rmi.RemoteException
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 FinancialServiceRemote
user
- UserInfo object to get the user.taxCode
- The tax code.typeCode
- The tax type.orgID
- The organization identifier.MXException
java.rmi.RemoteException
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 FinancialServiceRemote
user
- UserInfo object to get the user.typeCode
- The tax type.orgID
- The organization identifier.mbo
- The passed in mbo remote.MXException
java.rmi.RemoteException
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 FinancialServiceRemote
user
- UserInfo object to get the user.typeCode
- The tax type.orgID
- The organization identifier.mbo
- The passed in mbo remote.MXException
java.rmi.RemoteException
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 FinancialServiceRemote
user
- UserInfo object to get the user.typeCode
- The tax type.orgID
- The organization identifier.mbo
- The passed in mbo remote.MXException
java.rmi.RemoteException
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 FinancialServiceRemote
user
- UserInfo object to get the user.typeCode
- The tax type.taxCode
- The tax code.orgID
- The organization identifier.mbo
- The passed in mbo remote.MXException
java.rmi.RemoteException
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 FinancialServiceRemote
UserInfo
- user UserInfo object to get the user.String
- account The GL account string.MXException
java.rmi.RemoteException
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 FinancialServiceRemote
user
- The user info.updateDatabase
- The criteria used for the update.orgID
- The organization identifier.MXException
java.rmi.RemoteException
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 FinancialServiceRemote
user
- UserInfo object to get the user.orgID
- The organization identifier.MXException
java.rmi.RemoteException
glRequiredForTrans(psdi.security.UserInfo, java.lang.String)
public void setGLDefaultDescription(MboRemote chartOfAccount) throws MXException, java.rmi.RemoteException
setGLDefaultDescription
in interface FinancialServiceRemote
chartOfAccount
- Chart of accounts MboRemote.MXException
java.rmi.RemoteException
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 FinancialServiceRemote
MXException
java.rmi.RemoteException
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 FinancialServiceRemote
user
- 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.MXException
java.rmi.RemoteException
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
MXException
java.rmi.RemoteException
public void disableGLValidation(java.lang.String orgid, UserInfo userInfo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void resetGLOrder(java.lang.String orgid, UserInfo userInfo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void advancedAccountSetup(java.util.Map<java.lang.String,java.lang.Object> components, java.lang.String compvalue, UserInfo userInfo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void componenetsSetup(java.util.Map<java.lang.String,java.lang.Object> components, java.lang.String orgid, java.lang.String compvalue, MXTransaction trans, UserInfo userInfo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public 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
MXException
java.rmi.RemoteException
public 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
MXException
java.rmi.RemoteException
public void skipSetup(UserInfo userInfo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void updateApptracker(com.ibm.json.java.JSONArray ja, boolean complete, UserInfo userInfo, MXTransaction trans) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void addCOA(java.lang.String orgid, java.lang.String compvalue, java.lang.String comptext, UserInfo userInfo, MXTransaction trans) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException