public class MapObject
extends java.lang.Object
Contains a representation of a mapped RTTP object holding the original object name and its mapped name.
The Liberator provides this powerful mechanism for mapping a user-requested object to another object name at the server back-end. This allows, for example, preferential prices or spreads to be provided to particular users or groups of users whilst maintaining a single object name on the client-side.
An instance of a MapObject is passed to the Authenticator.mapObject
method.
To perform object mapping simply set the mapped object name and ensure that AuthenticationResult.OK
is returned.
Authenticator.mapObject
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getMappedName()
The newly mapped object name.
|
java.lang.String |
getOriginalName()
The original object name provided by the Liberator.
|
java.lang.String |
getRequestedName() |
int |
hashCode() |
void |
setMappedName(java.lang.String mappedName)
Set the mapped object name. |
java.lang.String |
toString() |
public java.lang.String getMappedName()
public java.lang.String getOriginalName()
public java.lang.String getRequestedName()
public void setMappedName(java.lang.String mappedName)
mappedName
- the new mapped name for the objectpublic java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Please send bug reports and comments to Caplin support