com.ptc.windchill.enterprise.search.client
Class CoSimpleWindchillSaveAsHyperLinkProducer
java.lang.Object
com.ptc.core.ca.co.client.element.CoElementHandler
com.ptc.core.ca.co.client.windchill.CoWindchillHyperLinkProducer
com.ptc.windchill.enterprise.search.client.CoSimpleWindchillSaveAsHyperLinkProducer
- All Implemented Interfaces:
- CoModelHandler
- public class CoSimpleWindchillSaveAsHyperLinkProducer
- extends CoWindchillHyperLinkProducer
This class implements model handler for the hyperlink element to provide
links to any winchill resources. The class uses "simple" approach to
locate an object and provide its oid
as a paramenter on
the url.
Supported API: true
Extendable: true
Method Summary |
HashMap |
getParams(CoElement element,
CoEnvData envData)
Returns a map of additional parameters containing an entry with the
key oid and a value being an object reference to windchill
object found using "simple" approach. |
void |
updateModel(CoElement element,
CoEnvData envData)
Creates and updates the model of the element. |
RESOURCE
private static final String RESOURCE
- See Also:
- Constant Field Values
CLASSNAME
private static final String CLASSNAME
CoSimpleWindchillSaveAsHyperLinkProducer
public CoSimpleWindchillSaveAsHyperLinkProducer()
updateModel
public void updateModel(CoElement element,
CoEnvData envData)
throws WTException
- Creates and updates the model of the element.
Supported API: true
- Specified by:
updateModel
in interface CoModelHandler
- Overrides:
updateModel
in class CoWindchillHyperLinkProducer
- Parameters:
element
- envData
-
- Throws:
WTException
getParams
public HashMap getParams(CoElement element,
CoEnvData envData)
throws WTException
- Returns a map of additional parameters containing an entry with the
key
oid
and a value being an object reference to windchill
object found using "simple" approach.
Supported API: true
- Overrides:
getParams
in class CoWindchillHyperLinkProducer
- Parameters:
element
- envData
-
- Returns:
- HashMap
- Throws:
WTException