public class DefaultResourceProcessor
extends java.lang.Object
Constructor and Description |
---|
DefaultResourceProcessor()
Parse and separate the federated resources into a list, in its intended order.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getPagingParams()
Return parameters for paging.
|
com.ibm.json.java.JSONArtifact |
processResource(JSONResourceInfo resourceInfo,
MboRemote owner,
UserInfo userInfo,
int pageSize,
int currentPage,
JSONAnalyzer jsonAnalyzer)
This is the method that the federated mbos will be fetched from the json resource, and merged into the target mboset.
|
public DefaultResourceProcessor() throws MXException, java.rmi.RemoteException
federatedResourcesStr
- The resource name and relationship pairs as defined in the application's presentation.
The format of the string is ResourceName1~Relatioinship1, ResourceName2~Relationship2, ...
The part "~Relationship" is optional but recommended.
ResourceName is the name of the json resource of where the federated mbos come from
Relationship is the name of the relationship from the main mbo (e.g. Asset) to the federated mboset (e.g. ArcGISMboSet).targetset
- The mbo set into which the federated mbos are mergedfdOwner
- The owner mbo of the targetSet.MXException
java.rmi.RemoteException
public com.ibm.json.java.JSONArtifact processResource(JSONResourceInfo resourceInfo, MboRemote owner, UserInfo userInfo, int pageSize, int currentPage, JSONAnalyzer jsonAnalyzer) throws MXException, java.rmi.RemoteException
resourceInfo
- The json resource's info objectfdOwner
- The owner mbo of the target mbosetrootObject
- The name of the json resource root object.fdRelation
- Relationship from targetSet's owner (e.g. targetSet being ASsetSpec and its owner is Asset) to the federated mbosetMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic java.util.List<java.lang.String> getPagingParams()