public class Translate extends java.lang.Object implements MaximoCache
Constructor and Description |
---|
Translate()
Standard Constructor, does nothing.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getExternalValues(java.lang.String listName,
java.lang.String internalValue,
MboRemote mbo)
Convert the specified value in the list to an array of external
possible values.
|
java.lang.String[] |
getExternalValues(java.lang.String listName,
java.lang.String internalValue,
java.lang.String siteId,
java.lang.String orgId)
Convert the specified value in the list to an array of external
possible values.
|
java.lang.String |
getName()
Returns the name of the cache object.
|
java.lang.String[] |
getSiteOrg(MboRemote mbo) |
java.util.Vector |
getValuesVector(java.lang.String listName,
java.lang.String siteId,
java.lang.String orgId) |
void |
init()
Initialize the object.
|
void |
reload()
Reload everything by clearing the lists...
|
void |
reload(java.lang.String key)
Reload the domain cache for domain name identified by key.
|
void |
remove(java.lang.String listName)
Remove a valuelist from the hashtable.
|
java.lang.String |
toExternalDefaultValue(java.lang.String listName,
java.lang.String value)
Deprecated.
please use the ones which take the mbo or site org id as parameters.
|
java.lang.String |
toExternalDefaultValue(java.lang.String listName,
java.lang.String value,
MboRemote mbo)
Return the value that has been marked as the default external value for the
specified list name and internal value.
|
java.lang.String |
toExternalDefaultValue(java.lang.String listName,
java.lang.String value,
java.lang.String siteId,
java.lang.String orgId)
Return the value that has been marked as the default external value for the
specified list name and internal value.
|
java.lang.String |
toExternalList(java.lang.String listName,
java.lang.String value)
Convert the specified value in the list to an external list of
possible values.
|
java.lang.String |
toExternalList(java.lang.String listName,
java.lang.String[] value)
Convert the specified set of values in the list to an external list of
possible values.
|
java.lang.String |
toExternalList(java.lang.String listName,
java.lang.String[] value,
MboRemote mbo)
Convert the specified set of values in the list to an external list of
possible values.
|
java.lang.String |
toExternalList(java.lang.String listName,
java.lang.String[] value,
java.lang.String siteId,
java.lang.String orgId)
Convert the specified set of values in the list to an external list of
possible values.
|
java.lang.String |
toExternalList(java.lang.String listName,
java.lang.String value,
MboRemote mbo)
Convert the specified value in the list to an external list of
possible values.
|
java.lang.String |
toExternalList(java.lang.String listName,
java.lang.String value,
java.lang.String siteId,
java.lang.String orgId)
Convert the specified value in the list to an external list of
possible values.
|
java.lang.String |
toInternalString(java.lang.String listName,
java.lang.String value)
Convert a specified value in the list to an internal MAXIMO value.
|
java.lang.String |
toInternalString(java.lang.String listName,
java.lang.String value,
MboRemote mbo)
Convert a specified value in the list to an internal MAXIMO value.
|
java.lang.String |
toInternalString(java.lang.String listName,
java.lang.String value,
java.lang.String siteId,
java.lang.String orgId)
Convert a specified value in the list to an internal MAXIMO value.
|
java.lang.String |
toInternalStringNoException(java.lang.String listName,
java.lang.String value,
MboRemote mbo)
Convert a specified value in the list to an internal MAXIMO value.
|
public void init()
init
in interface MaximoCache
public java.lang.String toInternalString(java.lang.String listName, java.lang.String value) throws MXException
For example:
listName
- The valuelist name (valuelist.listname). This is not case sensitive.value
- The external value (valuelist.value). This is case sensitive.MXException
public java.lang.String toInternalString(java.lang.String listName, java.lang.String value, MboRemote mbo) throws MXException
For example:
listName
- The valuelist name (valuelist.listname). This is not case sensitive.value
- The external value (valuelist.value). This is case sensitive.the
- MBO that the translation values are used for or the MBO which the site
and org is same with the MBO that the translation is used for.MXException
public java.lang.String toInternalStringNoException(java.lang.String listName, java.lang.String value, MboRemote mbo)
For example:
listName
- The valuelist name (valuelist.listname). This is not case sensitive.value
- The external value (valuelist.value). This is case sensitive.siteId
- The site that the translation should consider if there are specific
values for this site.Mbo
- object whose provide the relavent site id and orgidpublic java.lang.String toInternalString(java.lang.String listName, java.lang.String value, java.lang.String siteId, java.lang.String orgId) throws MXException
For example:
listName
- The valuelist name (valuelist.listname). This is not case sensitive.value
- The external value (valuelist.value). This is case sensitive.siteId
- The site that the translation should consider if there are specific
values for this site.orgId
- The orgnization that the translation should consider if there are specific
values for this organization.MXException
public java.util.Vector getValuesVector(java.lang.String listName, java.lang.String siteId, java.lang.String orgId) throws MXException
MXException
public java.lang.String toExternalList(java.lang.String listName, java.lang.String value) throws MXException
For example:
listName
- The valuelist name (valuelist.listname). This is not case sensitive.value
- The internal value (valuelist.maxvalue). This is case sensitive.-
'SYN1','SYN2'
MXException
toExternalList(String, String[])
public java.lang.String toExternalList(java.lang.String listName, java.lang.String value, MboRemote mbo) throws MXException
For example:
listName
- The valuelist name (valuelist.listname). This is not case sensitive.value
- The internal value (valuelist.maxvalue). This is case sensitive.the
- MBO that the translation values are used for or the MBO which the site
and org is same with the MBO that the translation is used for.-
'SYN1','SYN2'
MXException
toExternalList(String, String[])
public java.lang.String toExternalList(java.lang.String listName, java.lang.String value, java.lang.String siteId, java.lang.String orgId) throws MXException
For example:
listName
- The valuelist name (valuelist.listname). This is not case sensitive.value
- The internal value (valuelist.maxvalue). This is case sensitive.siteId
- The site that the translation should consider if there are specific
values for this site.orgId
- The orgnization that the translation should consider if there are specific
values for this organization.-
'SYN1','SYN2'
MXException
toExternalList(String, String[])
public java.lang.String[] getExternalValues(java.lang.String listName, java.lang.String internalValue, java.lang.String siteId, java.lang.String orgId) throws MXException
For example:
listName
- The valuelist name (valuelist.listname). This is not case sensitive.internalValue
- The internal value (valuelist.maxvalue). This is case sensitive.mbo
- The Mbo remote object whose siteid and orgid is used to consider what values
to be returned as if the valuelist's value is going to be applied to one of the attribute
of this mbo.MXException
toExternalList(String, String[])
public java.lang.String[] getExternalValues(java.lang.String listName, java.lang.String internalValue, MboRemote mbo) throws MXException
For example:
listName
- The valuelist name (valuelist.listname). This is not case sensitive.internalValue
- The internal value (valuelist.maxvalue). This is case sensitive.siteId
- The site that the translation should consider if there are specific
values for this site.orgId
- The orgnization that the translation should consider if there are specific
values for this organization.MXException
toExternalList(String, String[])
public java.lang.String toExternalList(java.lang.String listName, java.lang.String[] value) throws MXException
For example:
listName
- The valuelist name (valuelist.listname). This is not case sensitive.value
- An array of internal values (valuelist.maxvalue). This is case sensitive.-
'RPPA','TNIRP'
MXException
toExternalList(String, String)
public java.lang.String toExternalList(java.lang.String listName, java.lang.String[] value, MboRemote mbo) throws MXException
For example:
listName
- The valuelist name (valuelist.listname). This is not case sensitive.value
- An array of internal values (valuelist.maxvalue). This is case sensitive.the
- MBO that the translation values are used for or the MBO which the site
and org is same with the MBO that the translation is used for.-
'RPPA','TNIRP'
MXException
toExternalList(String, String)
public java.lang.String toExternalList(java.lang.String listName, java.lang.String[] value, java.lang.String siteId, java.lang.String orgId) throws MXException
For example:
listName
- The valuelist name (valuelist.listname). This is not case sensitive.value
- An array of internal values (valuelist.maxvalue). This is case sensitive.siteId
- The site that the translation should consider if there are specific
values for this site.orgId
- The orgnization that the translation should consider if there are specific
values for this organization.-
'RPPA','TNIRP'
MXException
toExternalList(String, String)
public java.lang.String toExternalDefaultValue(java.lang.String listName, java.lang.String value) throws MXException
For example:
listName
- The valuelist name (valuelist.listname). This is not case sensitive.value
- The internal value (valuelist.maxvalue). This is case sensitive.-
RPPA
MXException
public java.lang.String toExternalDefaultValue(java.lang.String listName, java.lang.String value, MboRemote mbo) throws MXException
For example:
listName
- The valuelist name (valuelist.listname). This is not case sensitive.value
- The internal value (valuelist.maxvalue). This is case sensitive.the
- MBO that the translation values are used for or the MBO which the site
and org is same with the MBO that the translation is used for.-
RPPA
MXException
public java.lang.String toExternalDefaultValue(java.lang.String listName, java.lang.String value, java.lang.String siteId, java.lang.String orgId) throws MXException
For example:
listName
- The valuelist name (valuelist.listname). This is not case sensitive.value
- The internal value (valuelist.maxvalue). This is case sensitive.-
RPPA
MXException
public void remove(java.lang.String listName)
MXValue save
for any kind of update to the valuelist table. If a listname is removed
from our hashtable and it's later needed, the appropriate method
in Translate will reload the listname into the hashtable.listName
- The name of the valuelist.public java.lang.String[] getSiteOrg(MboRemote mbo) throws MXException
MXException
public java.lang.String getName()
MaximoCache
getName
in interface MaximoCache
public void reload() throws MXException
reload
in interface MaximoCache
MXException
public void reload(java.lang.String key) throws MXException
reload
in interface MaximoCache
MXException