public class DigitalTwinService extends AppService
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DIGITALDATA_LOGGER |
static MXLogger |
DIGITALDATALOGGER |
java.lang.String |
sourceSysId
Digital Twin Service
|
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 |
---|
DigitalTwinService() |
DigitalTwinService(MXServer mxServer) |
Modifier and Type | Method and Description |
---|---|
void |
addAsset()
Add Asset and Spareparts data.
|
void |
addData(MboRemote dtData)
This method creates transaction to add digital twin data.
|
void |
addItems()
Add Items data.
|
void |
addJobPlans()
Add Job plans and Job tasks.
|
java.lang.String |
getId() |
com.ibm.json.java.JSONArray |
getJobPlans(java.lang.String id)
This method will return a payload for the jobplans API.
|
java.lang.String |
getKeyId() |
MboSetRemote |
getProducts(MboRemote ddParams,
MboSetRemote dtDataSet)
Returns the Digital Twin products data.
|
com.ibm.json.java.JSONObject |
getProducts(java.lang.String id)
This method returns a payload for the products API.
|
com.ibm.json.java.JSONArray |
getSpareparts(java.lang.String id)
This method returns a payload for the spareparts API.
|
void |
importData(MboRemote ddParams,
MboSetRemote dtDataSet)
This method calls digital twin APIs for products, spareparts, jobplans and attachments to get data for the
user selected products and imports the data into the Maximo.
|
void |
setAttachmentsResp(com.ibm.json.java.JSONArtifact ja) |
void |
setId(java.lang.String id) |
void |
setJobplansResp(com.ibm.json.java.JSONArtifact ja) |
void |
setKeyId(java.lang.String key) |
void |
setProductsResp(com.ibm.json.java.JSONArtifact ja) |
void |
setProp(MboRemote ddParams) |
void |
setSparepartsResp(com.ibm.json.java.JSONArtifact ja) |
void |
validateAuthData(MboRemote ddParams) |
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
public final java.lang.String sourceSysId
public static final java.lang.String DIGITALDATA_LOGGER
public static final MXLogger DIGITALDATALOGGER
public DigitalTwinService(MXServer mxServer) throws java.rmi.RemoteException
java.rmi.RemoteException
public DigitalTwinService() throws java.rmi.RemoteException
java.rmi.RemoteException
public MboSetRemote getProducts(MboRemote ddParams, MboSetRemote dtDataSet) throws java.rmi.RemoteException, MXException
digitalDataParams
- Digital Twin email id and keydtData
- Digital Twin data setjava.rmi.RemoteException
- Remote ExceptionMXException
- Maximo Exceptionpublic void setProp(MboRemote ddParams) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public void importData(MboRemote ddParams, MboSetRemote dtDataSet) throws java.rmi.RemoteException, MXException
ddParams
- Digital Data email id and keydtDataSet
- Digital Twin data setjava.rmi.RemoteException
- Remote ExceptionMXException
public void addData(MboRemote dtData) throws java.rmi.RemoteException, MXException
dtData
- Digital Twin Data Setjava.rmi.RemoteException
- Remote ExceptionMXException
- Maximo Exceptionpublic void addItems() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void addAsset() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void addJobPlans() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void validateAuthData(MboRemote ddParams) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void setSparepartsResp(com.ibm.json.java.JSONArtifact ja)
public void setProductsResp(com.ibm.json.java.JSONArtifact ja)
public void setJobplansResp(com.ibm.json.java.JSONArtifact ja)
public void setAttachmentsResp(com.ibm.json.java.JSONArtifact ja)
public com.ibm.json.java.JSONArray getSpareparts(java.lang.String id)
id
- public com.ibm.json.java.JSONObject getProducts(java.lang.String id)
id
- public com.ibm.json.java.JSONArray getJobPlans(java.lang.String id)
id
- public void setId(java.lang.String id)
public java.lang.String getId()
public void setKeyId(java.lang.String key)
public java.lang.String getKeyId()