public class JSONAnalyzer
extends java.lang.Object
Constructor and Description |
---|
JSONAnalyzer() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
findParamters(java.lang.String paramName,
java.lang.String whereClause,
boolean isRequired)
Find parameters from relationship or from context.
|
java.lang.String |
formatParameter(java.lang.String url,
java.lang.String paramter,
java.lang.String whereClause)
Formats where clause.
|
static java.lang.String |
getMappedName(java.lang.String propName,
boolean isObject) |
static java.lang.String |
getResolvedAttrName(java.lang.String origAttrName,
java.lang.String attrName,
java.util.Set<java.lang.String> props,
int start) |
static java.lang.String |
getResolvedName(java.lang.String origPropName,
java.lang.String propName,
int start) |
JSONResourceInfo |
ingest(byte[] jsonData,
byte[] schemaData,
java.lang.String resourceName,
java.lang.String collectionProp,
java.lang.String dateType,
java.lang.String dateFormat,
boolean optimize) |
boolean |
isDateTime(java.lang.String dateType,
java.lang.String dateFormat,
java.lang.String data) |
boolean |
isDateTimeInMiliSec(java.lang.String dateType,
java.lang.String propName,
long data) |
boolean |
licenseCheck(java.lang.String productName)
Check license.
|
void |
logAPICall(java.lang.String productName,
java.lang.String resourceName,
UserInfo userInfo)
Log call to store product name and last time it was called.
|
void |
optimize(JSONResourceInfo resInfo) |
public JSONResourceInfo ingest(byte[] jsonData, byte[] schemaData, java.lang.String resourceName, java.lang.String collectionProp, java.lang.String dateType, java.lang.String dateFormat, boolean optimize) throws java.io.IOException, MXException
java.io.IOException
MXException
public boolean isDateTime(java.lang.String dateType, java.lang.String dateFormat, java.lang.String data)
public boolean isDateTimeInMiliSec(java.lang.String dateType, java.lang.String propName, long data)
public static java.lang.String getMappedName(java.lang.String propName, boolean isObject)
public static java.lang.String getResolvedName(java.lang.String origPropName, java.lang.String propName, int start)
public void optimize(JSONResourceInfo resInfo)
public static java.lang.String getResolvedAttrName(java.lang.String origAttrName, java.lang.String attrName, java.util.Set<java.lang.String> props, int start)
public java.lang.String formatParameter(java.lang.String url, java.lang.String paramter, java.lang.String whereClause) throws java.rmi.RemoteException, MXException
url
- invoke urlmethod
- HTTP invoke methodmethod
- HTTP invoke methodMXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic java.lang.String findParamters(java.lang.String paramName, java.lang.String whereClause, boolean isRequired) throws java.rmi.RemoteException, MXException
paramName
- parameterwhereClause
- where clause. Will be null for API callsisRequired
- is parameter requiredMXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic boolean licenseCheck(java.lang.String productName) throws java.rmi.RemoteException, MXException
MXException
java.rmi.RemoteException
public void logAPICall(java.lang.String productName, java.lang.String resourceName, UserInfo userInfo) throws java.rmi.RemoteException, MXException
productName
- product nameresourceName
- resource nameUserInfo
- user infoMXException
java.rmi.RemoteException