public class OslcUtils
extends java.lang.Object
Constructor and Description |
---|
OslcUtils() |
Modifier and Type | Method and Description |
---|---|
static com.ibm.json.java.JSONObject |
bytesToJSONObject(byte[] data) |
static com.hp.hpl.jena.rdf.model.Model |
bytesToModel(byte[] resourceBytes) |
static java.lang.String |
dateTimeToString(java.util.Date d,
java.util.Locale l,
java.util.TimeZone tz) |
static java.lang.String |
encodeResourceId(java.lang.String clearTextId) |
static java.lang.String |
generateIdFromMboId(MboRemote mbo) |
static java.lang.String |
generateUniqueID() |
static java.lang.String |
generateURITokenFromKeyValueMap(java.util.Map<java.lang.String,java.lang.Object> map) |
static java.lang.Object |
getAttributeValue(MboValueInfo mboValueInfo,
MboRemote mbo) |
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 |
getLinkURIFor(java.lang.String oslcBaseURI,
java.lang.String osName,
java.lang.String id) |
static java.lang.String |
getLocaleInsensitiveValue(MboValueInfo mboValueInfo,
MboRemote mbo) |
static MXLogger |
getLogger() |
static MboValueInfo |
getMboMboValueInfoForAttribute(MboSetRemote mboSet,
java.lang.String attributeName) |
static java.lang.String |
getOslcBaseURI() |
static OslcEndPointData |
getOSLCEndPointDataForRegistry(java.lang.String oslcProviderName) |
static java.lang.String |
getOslcWebAppURL() |
static java.util.List<AssociationPropertyInfo> |
getPropertyList(boolean isPrefillMap,
MboRemote mbo) |
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 boolean |
isProviderRR(java.lang.String oslcProviderName) |
static byte[] |
jsonToBytes(com.ibm.json.java.JSONObject ojo) |
static byte[] |
modelToBytes(com.hp.hpl.jena.rdf.model.Model rdfModel) |
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 |
timeToString(java.util.Date d,
java.util.Locale l) |
static java.lang.String |
transformURIWithPublicURI(java.lang.String uri) |
public static java.lang.String generateUniqueID()
public static byte[] jsonToBytes(com.ibm.json.java.JSONObject ojo) throws MXException
MXException
public static com.ibm.json.java.JSONObject bytesToJSONObject(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.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 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.util.List<AssociationPropertyInfo> getPropertyList(boolean isPrefillMap, MboRemote mbo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public static java.lang.String getRegistryEndpoint() throws java.rmi.RemoteException
java.rmi.RemoteException
public static boolean isProviderRR(java.lang.String oslcProviderName)
public static OslcEndPointData getOSLCEndPointDataForRegistry(java.lang.String oslcProviderName) throws MXException, java.rmi.RemoteException
MXException
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 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 MXLogger getLogger()