public class MRService extends AppService implements MRServiceRemote
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 |
---|
MRService() |
MRService(MXServer mxServer) |
Modifier and Type | Method and Description |
---|---|
void |
addFromFavorites(MboRemote mr,
MboSetRemote mrLineSetRemote,
MboSetRemote favItemSetRemote)
This is a service method that takes in an favorite items and adds them to the MR lines.
|
void |
addToFavorites(UserInfo userInfo,
MboRemote mrLineRemote)
This is a service method that takes in an MRLineRemote and adds it to the favorite items.
|
void |
changeStatus(MRRemote mr,
java.lang.String status,
java.util.Date date,
java.lang.String memo)
Service Method used to change status.
|
MboSetRemote |
getFavorites(UserInfo userInfo)
This is a service method that user's returns favorite items.
|
MboSetRemote |
getNewMRMboSet(java.lang.String mrnum,
UserInfo userInfo) |
void |
isMRValid(UserInfo userInfo,
java.lang.String mrnum)
Check if this mr is valid or if the mr is in approved status
|
boolean |
itemOrServiceAlreadyOnFavorites(MboSetRemote mrLineSetRemote,
java.lang.String[] attrs,
java.lang.String[] attrNames)
This method checks if the item or service present on the passed in MRLine already exists on the
MR table based on the vendor,itemnum,catalogcode,manufacturer,modelnum,description
combination.If the item or special order part or service already exists it returns true
otherwise it returns false.
|
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 MRService() throws java.rmi.RemoteException
java.rmi.RemoteException
public MRService(MXServer mxServer) throws java.rmi.RemoteException
srvEnv
- -- the "Server Environment" this Service is being
created in.java.rmi.RemoteException
public void isMRValid(UserInfo userInfo, java.lang.String mrnum) throws MXException, java.rmi.RemoteException
isMRValid
in interface MRServiceRemote
mrnum
- The mr numberMXException
java.rmi.RemoteException
isMRValid(psdi.security.UserInfo, java.lang.String)
public MboSetRemote getNewMRMboSet(java.lang.String mrnum, UserInfo userInfo) throws MXException, java.rmi.RemoteException
getNewMRMboSet
in interface MRServiceRemote
MXException
java.rmi.RemoteException
getNewMRMboSet(java.lang.String, psdi.security.UserInfo)
public MboSetRemote getFavorites(UserInfo userInfo) throws MXException, java.rmi.RemoteException
getFavorites
in interface MRServiceRemote
MXException
java.rmi.RemoteException
getFavorites(psdi.security.UserInfo)
public void addToFavorites(UserInfo userInfo, MboRemote mrLineRemote) throws MXException, java.rmi.RemoteException
addToFavorites
in interface MRServiceRemote
MXException
java.rmi.RemoteException
psdi.app.mr.MRService#addToFavorite
public void addFromFavorites(MboRemote mr, MboSetRemote mrLineSetRemote, MboSetRemote favItemSetRemote) throws MXException, java.rmi.RemoteException
addFromFavorites
in interface MRServiceRemote
MXException
java.rmi.RemoteException
addFromFavorites(psdi.mbo.MboRemote, psdi.mbo.MboSetRemote, psdi.mbo.MboSetRemote)
public boolean itemOrServiceAlreadyOnFavorites(MboSetRemote mrLineSetRemote, java.lang.String[] attrs, java.lang.String[] attrNames) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void changeStatus(MRRemote mr, java.lang.String status, java.util.Date date, java.lang.String memo) throws MXException, java.rmi.RemoteException
changeStatus
in interface MRServiceRemote
mr
- MR Mbostatus
- The new statusdate
- The datememo
- The memo.MXApplicationException("MR",
- "invalidstatuschange");
MXApplicationException("mr","mrCannotBeApproved")
MXApplicationException("mr", "reordererror", params)MXException
java.rmi.RemoteException
throws MXException, RemoteException;