public class LocalURIResolver
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
LocalURIResolver.ResolvedResource |
Constructor and Description |
---|
LocalURIResolver()
Construct the LocalURIResolver for uri
|
LocalURIResolver(boolean resolveRootCollection) |
LocalURIResolver(java.lang.String uri)
Construct the LocalURIResolver for uri
|
LocalURIResolver(java.lang.String uri,
boolean create)
Construct the LocalURIResolver for uri for Create or Update
|
LocalURIResolver(java.lang.String uri,
boolean create,
boolean fillKeyMap)
Construct the LocalURIResolver for uri
|
LocalURIResolver(java.lang.String uri,
java.util.Map<java.lang.String,java.lang.String> keyMap,
java.lang.String key,
UserInfo userInfo)
Construct the LocalURIResolver for uri key, and Key Map
|
LocalURIResolver(java.lang.String uri,
java.util.Map<java.lang.String,java.lang.String> keyMap,
UserInfo userInfo)
Construct the LocalURIResolver for uri and Key Map
|
LocalURIResolver(java.lang.String resourceId,
java.lang.String osName)
Construct the LocalURIResolver for resourceId and Object Structure Name
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getKeyValue()
Return Key Value Object
|
java.util.Map<java.lang.String,java.lang.Object> |
getKeyValueMap()
Return Key Value map
|
MboRemote |
getMboForUniformId(MboSetRemote mboSet)
Get Mbo for resource Id (it can be unique id or encoded full key)
If key start with "_" then it is encoded full key otherwise unique id of the object
|
MboRemote |
getMboForUniformId(java.lang.String primaryMboName,
UserInfo userInfo)
Get Mbo for resource Id (it can be unique id or encoded full key)
If key start with "_" then it is encoded full key otherwise unique id of the object
|
MboRemote |
getMboForURI(UserInfo userInfo)
Get Mbo for resource Id
|
java.lang.String |
getOSName()
Return Object Structure Name
|
java.lang.String |
getResourceId()
Get resource id
|
boolean |
isAttachment(MboRemote mbo,
java.lang.String relation) |
boolean |
isIdURI()
Is URI Id of has query parameters
|
boolean |
isScript() |
LocalURIResolver.ResolvedResource |
resolvePath(OslcResourceDetailInfo resDetInfo,
java.util.List<java.lang.String> resPath,
MboRemote mbo) |
LocalURIResolver.ResolvedResource |
resolvePath(java.lang.String osName,
java.util.List<java.lang.String> resPath,
MboRemote mbo) |
LocalURIResolver.ResolvedResource |
resolvePath(java.lang.String osName,
java.util.List<java.lang.String> resPath,
UserInfo userInfo) |
public LocalURIResolver(java.lang.String resourceId, java.lang.String osName)
resourceId
- Resource IdosName
- Object Structure Namepublic LocalURIResolver(java.lang.String uri, boolean create) throws MXException
uri
- Resource URIcreate
- Is operation CreateMXException
- Maximo Exceptionpublic LocalURIResolver(java.lang.String uri) throws MXException
uri
- Resource URIMXException
- Maximo Exceptionpublic LocalURIResolver()
uri
- Resource URIjava.rmi.RemoteException
MXException
- Maximo Exceptionpublic LocalURIResolver(boolean resolveRootCollection)
public LocalURIResolver(java.lang.String uri, java.util.Map<java.lang.String,java.lang.String> keyMap, UserInfo userInfo) throws MXException
uri
- Resource URIkeyMap
- Oslc Key Map from OsOslcMap registrationuserInfo
- User Info objectMXException
- Maximo Exceptionpublic LocalURIResolver(java.lang.String uri, boolean create, boolean fillKeyMap) throws MXException
uri
- Resource URIcreate
- Is operation CreateparseQuery
- Need to parse queryMXException
- Maximo Exceptionpublic LocalURIResolver(java.lang.String uri, java.util.Map<java.lang.String,java.lang.String> keyMap, java.lang.String key, UserInfo userInfo) throws MXException
uri
- Resource URIkeyMap
- Oslc Key Map from OsOslcMap registrationkey
- attribute to find the data foruserInfo
- User Info objectMXException
- Maximo Exceptionpublic boolean isAttachment(MboRemote mbo, java.lang.String relation) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public LocalURIResolver.ResolvedResource resolvePath(java.lang.String osName, java.util.List<java.lang.String> resPath, MboRemote mbo) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public LocalURIResolver.ResolvedResource resolvePath(java.lang.String osName, java.util.List<java.lang.String> resPath, UserInfo userInfo) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public LocalURIResolver.ResolvedResource resolvePath(OslcResourceDetailInfo resDetInfo, java.util.List<java.lang.String> resPath, MboRemote mbo) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public boolean isScript()
public MboRemote getMboForURI(UserInfo userInfo) throws MXException, java.rmi.RemoteException
userInfo
- User Info objectMXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic MboRemote getMboForUniformId(java.lang.String primaryMboName, UserInfo userInfo) throws MXException, java.rmi.RemoteException
primaryMboName
- name of primary object in Object StructureuserInfo
- User Info objectMXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic MboRemote getMboForUniformId(MboSetRemote mboSet) throws MXException, java.rmi.RemoteException
mboSet
- MboSet objectMXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic java.lang.String getResourceId()
public java.lang.String getOSName()
public java.lang.Object getKeyValue()
public java.util.Map<java.lang.String,java.lang.Object> getKeyValueMap()
public boolean isIdURI()