public class OslcUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ADD_ACTION |
static java.lang.String |
ADD_DOMAIN_DESC |
static java.lang.String |
ADD_LOCALIZED_REP |
static java.lang.String |
ADD_REL_TO_SCHEMA |
static java.lang.String |
ADD_SCHEMA |
static java.lang.String |
ALL_HEADER_PROPS |
static java.lang.String |
API_ERRORS |
static java.lang.String |
API_FLAG |
static java.lang.String |
API_INIT_REQUEST |
static java.lang.String |
API_KEY |
static java.lang.String |
APIMBOCORRELATIONID |
static java.lang.String |
APIOBJPATH |
static java.lang.String |
APP_SERVER_SECURITY |
static java.lang.String |
APPS |
static java.lang.String |
AS_USER |
static java.lang.String |
BRANCH_FILTER |
static java.lang.String |
BULKID |
static java.lang.String |
CSRFTOKEN |
static java.lang.String |
ENABLE_SESSION |
static java.lang.String |
GUESTID |
static java.lang.String |
GUESTUSER |
static java.lang.String |
HREF |
static java.lang.String |
ID |
static java.lang.String |
IGNORECOLLECTIONREF |
static java.lang.String |
IGNOREKEYREF |
static java.lang.String |
IGNOREROWSTAMP |
static char |
KEY_SEP_CHAR |
static java.lang.String |
KEY_SEP_ENCODETOKEN |
static java.lang.String |
LOCALIZED_DATE |
static java.lang.String |
LOCALREF |
static java.lang.String |
LOOKUP_SRC_ATTR |
static java.lang.String |
MBO_INDEX |
static java.lang.String |
MBOSETLIMITCOUNT |
static java.lang.String |
MT_TENANTCODE_HEADER |
static java.lang.String |
MT_TENANTCODE_QP |
static java.lang.String |
MXTOKEN |
static java.lang.String |
MXUSER |
static javax.xml.namespace.QName |
OBJID |
static int |
ORG_LEVEL |
static java.lang.String |
OSLC_CONTEXT |
static java.lang.String |
OSLCCTX |
static java.lang.String |
QUERY_LOCALIZED |
static java.lang.String |
SELF_REF |
static java.lang.String |
SELF_REF_DUP |
static java.lang.String |
SELF_REF_REL |
static java.lang.String |
SELFREF |
static java.lang.String |
SET_VALUE_MBO |
static java.lang.String |
SET_VALUE_MODE |
static int |
SEVENDAYCACHE |
static int |
SITE_LEVEL |
static int |
SYSTEM_LEVEL |
static int |
TWODAYCACHE |
static java.lang.String |
WHOAMIAPI |
Constructor and Description |
---|
OslcUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
addQueryParamToURI(java.lang.String uri,
java.lang.String paramName,
java.lang.String paramValue) |
static void |
addRelationJSONSchema(com.ibm.json.java.JSONArray ja,
java.lang.String objectName) |
static void |
addSqlClauseToJSON(OslcRequest request,
OslcResourceInfo resourceInfo,
java.lang.String clause,
java.lang.String clauseName,
com.ibm.json.java.JSONObject jo) |
static void |
allowedOptions(MboRemote mbo,
com.ibm.json.java.JSONObject jo) |
static com.ibm.json.java.JSONArtifact |
bytesToJSON(byte[] data) |
static com.ibm.json.java.JSONArray |
bytesToJSONArray(byte[] data) |
static com.ibm.json.java.JSONObject |
bytesToJSONObject(byte[] data) |
static com.hp.hpl.jena.rdf.model.Model |
bytesToModel(byte[] resourceBytes) |
static com.ibm.json.java.JSONArtifact |
bytesToOrderedJSON(byte[] data) |
static com.ibm.json.java.OrderedJSONObject |
bytesToOrderedJSONObject(byte[] data) |
static void |
checkAuth(java.lang.String app,
java.lang.String optionName,
OslcRequest request,
MboRemote mbo) |
static java.util.List<com.ibm.oslc.query.parser.symbols.IOslcTerm> |
convertQueryWhereToObjWhere(java.lang.String queryWhere,
UserInfo userInfo,
java.lang.String objectName,
MboSetRemote mboSet) |
static java.util.List<com.ibm.oslc.query.parser.symbols.IOslcTerm> |
convertQueryWhereToOslcWhere(java.lang.String queryWhere,
UserInfo userInfo,
java.lang.String osName,
MboSetRemote mboSet) |
static java.lang.String |
createStatusText(MXException[] warnings,
OslcRequest request) |
static java.lang.String |
createURIFromBase(java.util.List<java.lang.String> path) |
static java.lang.String |
dateTimeToString(java.util.Date d,
java.util.Locale l,
java.util.TimeZone tz) |
static java.lang.String |
encode(java.lang.String token,
boolean pathToken) |
static java.lang.String |
encodeResourceId(java.lang.String clearTextId) |
static void |
fileVirusScanner(java.lang.String fileName,
java.io.InputStream in) |
static java.lang.String |
generateApiKeyToken() |
static java.lang.String |
generateCSRFToken() |
static byte[] |
generateCSV(java.lang.String osName,
MboSetRemote msr,
java.lang.String[] cols,
boolean useAttrTitle,
boolean addAttrNameToTitle) |
static java.lang.String |
generateESID(java.lang.String osName) |
static java.lang.String |
generateIdFromMboId(MboRemote mbo) |
static void |
generateIndexedPropertyMap(boolean leanJson,
java.util.Map<java.lang.String,OslcResourceProperty> propertySet,
com.ibm.oslc.query.parser.symbols.IOslcProperty oslcProperty,
java.util.Map<java.lang.String,java.lang.String> reqPrefixNsMap,
java.util.Map<java.lang.String,java.lang.String> configPrefixNsMap) |
static void |
generateISOQueryJSON(java.lang.String osName,
com.ibm.json.java.JSONObject jo,
UserInfo userInfo) |
static com.ibm.json.java.JSONObject |
generateJSONSchema(java.lang.String osName,
java.lang.String selectClause,
boolean addEnums,
java.lang.String queryTemplate,
UserInfo userInfo) |
static void |
generateLocalizedQueryJSON(java.lang.String osName,
com.ibm.json.java.JSONObject jo,
UserInfo userInfo) |
static java.lang.String |
generateObjQueryFromQbeJSON(java.lang.String objectName,
com.ibm.json.java.JSONObject jo,
UserInfo userInfo) |
static void |
generateOrderedPropertyMap(boolean leanJson,
java.util.Map<java.lang.String,OslcResourceProperty> propertySet,
com.ibm.oslc.query.parser.symbols.IOslcProperty oslcProperty,
java.util.Map<java.lang.String,java.lang.String> reqPrefixNsMap,
java.util.Map<java.lang.String,java.lang.String> configPrefixNsMap) |
static java.lang.String |
generateOslcQueryFromQbeJSON(java.lang.String osName,
com.ibm.json.java.JSONObject jo,
UserInfo userInfo) |
static java.lang.String |
generateRandomID() |
static java.lang.String |
generateUniqueID() |
static java.lang.String |
generateURITokenFromKeyValueMap(java.util.Map<java.lang.String,java.lang.Object> map) |
static java.util.Map<java.lang.String,java.lang.String> |
getApiModules() |
static java.lang.String |
getAttachmentStore() |
static java.lang.Object |
getAttributeValue(MboValueInfo mboValueInfo,
MboRemote mbo) |
static java.lang.String |
getContentTypeFrom(java.lang.String fileName) |
static java.lang.String |
getCOSAttachmentBucketName() |
static AttachmentStorage |
getCustomStorage() |
static java.util.Date |
getDate(java.util.Date base,
int val,
java.lang.String unit) |
static java.lang.String |
getDomainId(MboRemote mbo,
java.lang.String attrName) |
static DomainInfo |
getDomainImplicitSchema(MboValueInfo mvi,
java.lang.String mboAttrName,
java.lang.String alias) |
static DomainInfo |
getDomainInfo(java.lang.String objectName,
java.lang.String domainName,
java.lang.String siteid,
java.lang.String orgid) |
static java.util.List<java.util.List<RulePropertyInfo>> |
getIdentificationRules(java.lang.String resourceType,
UserInfo userInfo) |
static javax.xml.namespace.QName |
getIdentifierAsQName(java.lang.String identifier,
java.util.Map<java.lang.String,java.lang.String> reqPrefixNsMap,
java.util.Map<java.lang.String,java.lang.String> prefixNsMap) |
static java.util.Map<java.lang.String,java.lang.Object> |
getKeyValueMap(java.util.Map<java.lang.String,java.lang.String> keyMap,
MboRemote mbo) |
static java.lang.String |
getKPIWhere(java.lang.String kpiName,
UserInfo userInfo) |
static int |
getLifeSpanForTimedCache() |
static java.lang.String |
getLinkURIFor(java.lang.String oslcBaseURI,
java.lang.String osName,
java.lang.String id) |
static java.lang.String |
getLocaleInsensitiveValue(MboValueInfo mboValueInfo,
MboRemote mbo) |
static java.lang.String |
getLocalizedDateTime(int maxType,
java.util.Date rawData,
java.util.Locale l) |
static java.lang.String |
getLocalResourceId(MboRemote mbo,
MosDetailInfo mosDetailInfo) |
static MXLogger |
getLogger() |
static MboRemote |
getMboForAttribute(MboRemote mbo,
java.lang.String attrName) |
static MboRemote |
getMboForPath(MboRemote mbo,
java.lang.String relPath) |
static MboValue |
getMboMboValueForAttribute(MboRemote mbo,
java.lang.String attributeName) |
static MboValueInfo |
getMboMboValueInfoForAttribute(MboSetRemote mboSet,
java.lang.String attributeName) |
static java.lang.String |
getMessage(MXException mxe,
OslcRequest request) |
static java.lang.Boolean |
getModeOrFromQueryWhere(java.lang.String queryWhere) |
static com.ibm.json.java.JSONObject |
getNotificationHistMessage(MboRemote notfMbo) |
static int |
getOrgSiteLevel(java.lang.String objectName) |
static java.lang.String |
getOslcBaseURI() |
static java.lang.String |
getOslcWebAppURL() |
static java.util.Map<java.lang.String,OslcResourceProperty> |
getPropertiesFromRequest(OslcRequest oslcRequest,
java.lang.String osName) |
static java.util.Map<java.lang.String,OslcResourceProperty> |
getPropertiesFromRequest(OslcRequest oslcRequest,
java.lang.String osName,
boolean queryResource,
boolean ordered) |
static java.util.Map<java.lang.String,PropertyInfo> |
getQueryPropertyList(java.lang.String resourceType,
UserInfo userInfo) |
static java.lang.String |
getRegistryEndpoint() |
static java.lang.String |
getRegistryQueryBaseURI(java.lang.String registryURI,
byte[] resourceBytes) |
static javax.xml.namespace.QName |
getResourceTypeAsQName(java.lang.String resourceTypeURI) |
static com.hp.hpl.jena.rdf.model.Resource |
getStoredShape(java.lang.String resourceType,
UserInfo userInfo) |
static java.lang.Integer |
getYNCOptionValue(java.lang.String optionChosen) |
static java.lang.Integer |
handleSubQbeAndSort(MboSetRemote childMboSet,
MboRemote pmbo,
java.lang.String relation,
OslcRequest oslcRequest) |
static void |
handleTimeLineQuery(MboSetRemote msr,
OslcRequest oslcRequest,
java.lang.String osTlAttr) |
static void |
handleTimeLineQuery(MboSetRemote msr,
java.lang.String tlAttr,
java.lang.String tlRange) |
static void |
handleTimeLineQuery(MboSetRemote msr,
java.lang.String tlAttr,
java.lang.String tlRange,
boolean tlmodeDate) |
static byte[] |
jsonarrayToBytes(com.ibm.json.java.JSONArray ja) |
static byte[] |
jsonarrayToBytes(com.ibm.json.java.JSONArray ja,
boolean pretty) |
static byte[] |
jsonToBytes(com.ibm.json.java.JSONObject ojo) |
static byte[] |
jsonToBytes(com.ibm.json.java.JSONObject ojo,
boolean pretty) |
static MboRemote |
keyStringToMbo(java.lang.String keyString,
MboSetRemote mboSet) |
static void |
logTransaction(OslcRequest request,
java.lang.Long mboId,
MXTransaction mxTran) |
static byte[] |
modelToBytes(com.hp.hpl.jena.rdf.model.Model rdfModel) |
static java.util.Map<java.lang.String,OslcResourceProperty> |
parseSelect(java.lang.String selectExp) |
static void |
persistCSRFToken(UserInfo userInfo,
java.lang.String csrfToken) |
static Mbo |
recoverResource(java.util.Map<java.lang.String,java.lang.String> map,
MboSet mboSet) |
static Mbo |
recoverResource(java.lang.String encodedId,
MboSet mboSet) |
static java.lang.String |
recoverResourceId(java.lang.String encodedId) |
static java.lang.String |
resolveURIExpression(java.lang.String uriExp,
MboRemote mbo) |
static java.lang.String |
resolveURIToWhere(java.lang.String uri,
UserInfo userInfo,
OslcRequest oslcRequest) |
static java.lang.String[] |
searchTokens(java.lang.String searchString) |
static byte[] |
serializeResourceAsObject(java.lang.Object obj,
java.lang.String osName,
java.lang.String templateName) |
static byte[] |
serializeResourceAsObject(java.lang.Object obj,
java.lang.String osName,
java.lang.String templateName,
boolean retainMbos) |
static void |
setCORSHeaders(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
static void |
setDomainImplicits(com.ibm.json.java.JSONObject mboOjo,
java.lang.String mboAttrName,
java.lang.String alias,
MboRemote mbo,
OslcRequest request) |
static void |
setDomainInternalWhere(MboSetRemote mboset,
OslcRequest request) |
static void |
setDomainInternalWhere(MboSetRemote mboset,
java.lang.String domIntWhere) |
static void |
setDomainListWhere(MboSetRemote mboset,
OslcRequest request) |
static void |
setDomainListWhere(MboSetRemote mboset,
java.lang.String fd,
java.lang.String orgid,
java.lang.String siteid) |
static void |
setKPIWhere(java.lang.String kpiName,
MboSetRemote msr) |
static void |
setNotIn(MboSetRemote mboSet,
java.lang.String inClause,
java.lang.String attributeName) |
static void |
setNotIn(MboSetRemote mboSet,
java.lang.String inClause,
java.lang.String attributeName,
com.ibm.json.java.JSONArray ja) |
static void |
setRestrictWhere(MboSetRemote mboset,
MosInfo mosInfo) |
static void |
setTimeLineFunctionFilter(MboSetRemote mboset,
OslcRequest oslcRequest) |
static java.util.Date[] |
startAndEnd(java.util.Date base,
java.lang.String tlRange) |
static java.lang.String |
timeToString(java.util.Date d,
java.util.Locale l) |
static java.lang.String |
toISOFormat(java.lang.String localeValue,
MboValueInfo mboValueInfo,
UserInfo userInfo,
boolean inClause) |
static java.util.List<java.lang.String> |
tokenizeResourceId(java.lang.String recoveredId) |
static java.lang.String |
toLocalizedFormat(java.lang.String isoValue,
MboValueInfo mboValueInfo,
UserInfo userInfo,
boolean inClause) |
static java.lang.String |
transformURIWithPublicURI(java.lang.String uri) |
static void |
validateAttachmentExt(java.lang.String fileName) |
static boolean |
validateCSRFToken(UserInfo userInfo,
java.lang.String csrfToken) |
public static java.lang.String OSLC_CONTEXT
public static final int SYSTEM_LEVEL
public static final int ORG_LEVEL
public static final int SITE_LEVEL
public static final java.lang.String MBO_INDEX
public static final java.lang.String HREF
public static final java.lang.String LOCALREF
public static final java.lang.String ID
public static final javax.xml.namespace.QName OBJID
public static final java.lang.String APIMBOCORRELATIONID
public static final java.lang.String APIOBJPATH
public static final java.lang.String BULKID
public static final java.lang.String KEY_SEP_ENCODETOKEN
public static final char KEY_SEP_CHAR
public static final java.lang.String CSRFTOKEN
public static final java.lang.String MXTOKEN
public static final java.lang.String MXUSER
public static final java.lang.String MT_TENANTCODE_HEADER
public static final java.lang.String MT_TENANTCODE_QP
public static final java.lang.String API_INIT_REQUEST
public static final java.lang.String API_FLAG
public static final java.lang.String APP_SERVER_SECURITY
public static final java.lang.String LOOKUP_SRC_ATTR
public static final java.lang.String API_KEY
public static final java.lang.String ADD_LOCALIZED_REP
public static final java.lang.String ADD_SCHEMA
public static final java.lang.String QUERY_LOCALIZED
public static final java.lang.String AS_USER
public static final java.lang.String ADD_DOMAIN_DESC
public static final java.lang.String SELF_REF_DUP
public static final java.lang.String SELF_REF_REL
public static final java.lang.String SELF_REF
public static final java.lang.String LOCALIZED_DATE
public static final java.lang.String SET_VALUE_MODE
public static final java.lang.String ALL_HEADER_PROPS
public static final java.lang.String ENABLE_SESSION
public static final java.lang.String SET_VALUE_MBO
public static final java.lang.String GUESTUSER
public static final java.lang.String GUESTID
public static final java.lang.String IGNORECOLLECTIONREF
public static final java.lang.String IGNOREKEYREF
public static final java.lang.String IGNOREROWSTAMP
public static final int SEVENDAYCACHE
public static final int TWODAYCACHE
public static final java.lang.String WHOAMIAPI
public static final java.lang.String ADD_REL_TO_SCHEMA
public static final java.lang.String SELFREF
public static final java.lang.String APPS
public static final java.lang.String OSLCCTX
public static final java.lang.String MBOSETLIMITCOUNT
public static final java.lang.String BRANCH_FILTER
public static final java.lang.String API_ERRORS
public static final java.lang.String ADD_ACTION
public static java.lang.String generateCSRFToken()
public static java.lang.String generateApiKeyToken()
public static java.lang.String getLocalizedDateTime(int maxType, java.util.Date rawData, java.util.Locale l)
public static java.lang.String getKPIWhere(java.lang.String kpiName, UserInfo userInfo) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static void setKPIWhere(java.lang.String kpiName, MboSetRemote msr) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static MboRemote getMboForPath(MboRemote mbo, java.lang.String relPath) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static MboRemote getMboForAttribute(MboRemote mbo, java.lang.String attrName) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static void setNotIn(MboSetRemote mboSet, java.lang.String inClause, java.lang.String attributeName) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static void setNotIn(MboSetRemote mboSet, java.lang.String inClause, java.lang.String attributeName, com.ibm.json.java.JSONArray ja) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static com.ibm.json.java.JSONObject getNotificationHistMessage(MboRemote notfMbo) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static void setDomainImplicits(com.ibm.json.java.JSONObject mboOjo, java.lang.String mboAttrName, java.lang.String alias, MboRemote mbo, OslcRequest request) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static DomainInfo getDomainImplicitSchema(MboValueInfo mvi, java.lang.String mboAttrName, java.lang.String alias) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static byte[] generateCSV(java.lang.String osName, MboSetRemote msr, java.lang.String[] cols, boolean useAttrTitle, boolean addAttrNameToTitle) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static void allowedOptions(MboRemote mbo, com.ibm.json.java.JSONObject jo) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static void logTransaction(OslcRequest request, java.lang.Long mboId, MXTransaction mxTran) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public static void setDomainInternalWhere(MboSetRemote mboset, OslcRequest request) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static void setDomainInternalWhere(MboSetRemote mboset, java.lang.String domIntWhere) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static void setDomainListWhere(MboSetRemote mboset, OslcRequest request) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static void setDomainListWhere(MboSetRemote mboset, java.lang.String fd, java.lang.String orgid, java.lang.String siteid) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static DomainInfo getDomainInfo(java.lang.String objectName, java.lang.String domainName, java.lang.String siteid, java.lang.String orgid) throws java.rmi.RemoteException
java.rmi.RemoteException
public static void handleTimeLineQuery(MboSetRemote msr, OslcRequest oslcRequest, java.lang.String osTlAttr) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static void handleTimeLineQuery(MboSetRemote msr, java.lang.String tlAttr, java.lang.String tlRange) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static void handleTimeLineQuery(MboSetRemote msr, java.lang.String tlAttr, java.lang.String tlRange, boolean tlmodeDate) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static MboRemote keyStringToMbo(java.lang.String keyString, MboSetRemote mboSet) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static java.util.Date[] startAndEnd(java.util.Date base, java.lang.String tlRange) throws MXException
MXException
public static java.util.Date getDate(java.util.Date base, int val, java.lang.String unit) throws MXException
MXException
public static java.lang.Integer handleSubQbeAndSort(MboSetRemote childMboSet, MboRemote pmbo, java.lang.String relation, OslcRequest oslcRequest) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static java.util.Map<java.lang.String,OslcResourceProperty> getPropertiesFromRequest(OslcRequest oslcRequest, java.lang.String osName) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public static java.util.Map<java.lang.String,OslcResourceProperty> getPropertiesFromRequest(OslcRequest oslcRequest, java.lang.String osName, boolean queryResource, boolean ordered) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public static java.lang.String generateUniqueID()
public static int getOrgSiteLevel(java.lang.String objectName) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public static int getLifeSpanForTimedCache() throws java.rmi.RemoteException
java.rmi.RemoteException
public static void checkAuth(java.lang.String app, java.lang.String optionName, OslcRequest request, MboRemote mbo) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static java.lang.String resolveURIToWhere(java.lang.String uri, UserInfo userInfo, OslcRequest oslcRequest) throws MXException
MXException
public static java.util.Map<java.lang.String,OslcResourceProperty> parseSelect(java.lang.String selectExp) throws MXException
MXException
public static javax.xml.namespace.QName getIdentifierAsQName(java.lang.String identifier, java.util.Map<java.lang.String,java.lang.String> reqPrefixNsMap, java.util.Map<java.lang.String,java.lang.String> prefixNsMap)
public static void generateOrderedPropertyMap(boolean leanJson, java.util.Map<java.lang.String,OslcResourceProperty> propertySet, com.ibm.oslc.query.parser.symbols.IOslcProperty oslcProperty, java.util.Map<java.lang.String,java.lang.String> reqPrefixNsMap, java.util.Map<java.lang.String,java.lang.String> configPrefixNsMap)
public static void generateIndexedPropertyMap(boolean leanJson, java.util.Map<java.lang.String,OslcResourceProperty> propertySet, com.ibm.oslc.query.parser.symbols.IOslcProperty oslcProperty, java.util.Map<java.lang.String,java.lang.String> reqPrefixNsMap, java.util.Map<java.lang.String,java.lang.String> configPrefixNsMap)
public static byte[] jsonToBytes(com.ibm.json.java.JSONObject ojo) throws MXException
MXException
public static byte[] jsonarrayToBytes(com.ibm.json.java.JSONArray ja) throws MXException
MXException
public static byte[] jsonToBytes(com.ibm.json.java.JSONObject ojo, boolean pretty) throws MXException
MXException
public static byte[] jsonarrayToBytes(com.ibm.json.java.JSONArray ja, boolean pretty) throws MXException
MXException
public static com.ibm.json.java.JSONObject bytesToJSONObject(byte[] data) throws MXException
MXException
public static com.ibm.json.java.OrderedJSONObject bytesToOrderedJSONObject(byte[] data) throws MXException
MXException
public static com.ibm.json.java.JSONArray bytesToJSONArray(byte[] data) throws MXException
MXException
public static com.ibm.json.java.JSONArtifact bytesToJSON(byte[] data) throws MXException
MXException
public static com.ibm.json.java.JSONArtifact bytesToOrderedJSON(byte[] data) throws MXException
MXException
public static java.lang.String getOslcWebAppURL() throws MXException
MXException
public static java.lang.String transformURIWithPublicURI(java.lang.String uri) throws MXException
MXException
public static javax.xml.namespace.QName getResourceTypeAsQName(java.lang.String resourceTypeURI)
public static java.util.Map<java.lang.String,java.lang.Object> getKeyValueMap(java.util.Map<java.lang.String,java.lang.String> keyMap, MboRemote mbo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public static java.lang.String getLocaleInsensitiveValue(MboValueInfo mboValueInfo, MboRemote mbo) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static java.lang.Object getAttributeValue(MboValueInfo mboValueInfo, MboRemote mbo) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static java.lang.String getOslcBaseURI() throws java.rmi.RemoteException
java.rmi.RemoteException
public static java.lang.String generateURITokenFromKeyValueMap(java.util.Map<java.lang.String,java.lang.Object> map) throws MXException
MXException
public static byte[] modelToBytes(com.hp.hpl.jena.rdf.model.Model rdfModel)
public static com.hp.hpl.jena.rdf.model.Model bytesToModel(byte[] resourceBytes)
public static java.lang.String generateIdFromMboId(MboRemote mbo) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static java.lang.String recoverResourceId(java.lang.String encodedId) throws MXException
MXException
public static java.util.List<java.lang.String> tokenizeResourceId(java.lang.String recoveredId) throws MXException
MXException
public static java.lang.String encodeResourceId(java.lang.String clearTextId) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static Mbo recoverResource(java.lang.String encodedId, MboSet mboSet) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public static Mbo recoverResource(java.util.Map<java.lang.String,java.lang.String> map, MboSet mboSet) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public static java.lang.String getLinkURIFor(java.lang.String oslcBaseURI, java.lang.String osName, java.lang.String id)
public static java.lang.String resolveURIExpression(java.lang.String uriExp, MboRemote mbo) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static MboValueInfo getMboMboValueInfoForAttribute(MboSetRemote mboSet, java.lang.String attributeName) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public static MboValue getMboMboValueForAttribute(MboRemote mbo, java.lang.String attributeName) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public static java.util.Map<java.lang.String,PropertyInfo> getQueryPropertyList(java.lang.String resourceType, UserInfo userInfo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public static java.util.List<java.util.List<RulePropertyInfo>> getIdentificationRules(java.lang.String resourceType, UserInfo userInfo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public static com.hp.hpl.jena.rdf.model.Resource getStoredShape(java.lang.String resourceType, UserInfo userInfo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public static java.lang.String getRegistryEndpoint() throws java.rmi.RemoteException
java.rmi.RemoteException
public static java.lang.String getRegistryQueryBaseURI(java.lang.String registryURI, byte[] resourceBytes)
public static java.lang.String dateTimeToString(java.util.Date d, java.util.Locale l, java.util.TimeZone tz)
public static java.lang.String timeToString(java.util.Date d, java.util.Locale l)
public static MXLogger getLogger()
public static void fileVirusScanner(java.lang.String fileName, java.io.InputStream in) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static java.lang.String encode(java.lang.String token, boolean pathToken) throws MXException
MXException
public static java.lang.String generateESID(java.lang.String osName)
public static java.lang.String generateRandomID()
public static void validateAttachmentExt(java.lang.String fileName) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public static java.lang.String generateObjQueryFromQbeJSON(java.lang.String objectName, com.ibm.json.java.JSONObject jo, UserInfo userInfo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public static java.lang.String generateOslcQueryFromQbeJSON(java.lang.String osName, com.ibm.json.java.JSONObject jo, UserInfo userInfo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public static java.lang.String toLocalizedFormat(java.lang.String isoValue, MboValueInfo mboValueInfo, UserInfo userInfo, boolean inClause) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public static java.lang.String toISOFormat(java.lang.String localeValue, MboValueInfo mboValueInfo, UserInfo userInfo, boolean inClause) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public static void generateLocalizedQueryJSON(java.lang.String osName, com.ibm.json.java.JSONObject jo, UserInfo userInfo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public static void generateISOQueryJSON(java.lang.String osName, com.ibm.json.java.JSONObject jo, UserInfo userInfo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public static java.lang.String addQueryParamToURI(java.lang.String uri, java.lang.String paramName, java.lang.String paramValue) throws MXException
MXException
public static void setRestrictWhere(MboSetRemote mboset, MosInfo mosInfo) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static java.lang.String createURIFromBase(java.util.List<java.lang.String> path) throws MXException
MXException
public static java.lang.String getLocalResourceId(MboRemote mbo, MosDetailInfo mosDetailInfo) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static void setTimeLineFunctionFilter(MboSetRemote mboset, OslcRequest oslcRequest) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static java.util.List<com.ibm.oslc.query.parser.symbols.IOslcTerm> convertQueryWhereToOslcWhere(java.lang.String queryWhere, UserInfo userInfo, java.lang.String osName, MboSetRemote mboSet) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public static java.util.List<com.ibm.oslc.query.parser.symbols.IOslcTerm> convertQueryWhereToObjWhere(java.lang.String queryWhere, UserInfo userInfo, java.lang.String objectName, MboSetRemote mboSet) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public static java.lang.Boolean getModeOrFromQueryWhere(java.lang.String queryWhere) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public static java.lang.String[] searchTokens(java.lang.String searchString)
public static void persistCSRFToken(UserInfo userInfo, java.lang.String csrfToken)
public static boolean validateCSRFToken(UserInfo userInfo, java.lang.String csrfToken)
public static java.lang.String createStatusText(MXException[] warnings, OslcRequest request)
public static java.lang.String getMessage(MXException mxe, OslcRequest request)
public static com.ibm.json.java.JSONObject generateJSONSchema(java.lang.String osName, java.lang.String selectClause, boolean addEnums, java.lang.String queryTemplate, UserInfo userInfo) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static byte[] serializeResourceAsObject(java.lang.Object obj, java.lang.String osName, java.lang.String templateName, boolean retainMbos) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static byte[] serializeResourceAsObject(java.lang.Object obj, java.lang.String osName, java.lang.String templateName) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static void addSqlClauseToJSON(OslcRequest request, OslcResourceInfo resourceInfo, java.lang.String clause, java.lang.String clauseName, com.ibm.json.java.JSONObject jo) throws MXException
MXException
public static java.lang.Integer getYNCOptionValue(java.lang.String optionChosen)
public static java.lang.String getContentTypeFrom(java.lang.String fileName) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static void setCORSHeaders(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
public static void addRelationJSONSchema(com.ibm.json.java.JSONArray ja, java.lang.String objectName) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static java.lang.String getCOSAttachmentBucketName()
public static java.lang.String getDomainId(MboRemote mbo, java.lang.String attrName) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static java.lang.String getAttachmentStore()
public static AttachmentStorage getCustomStorage()
public static java.util.Map<java.lang.String,java.lang.String> getApiModules()