Class AnnotationClientHelper
java.lang.Object
com.ptc.windchill.enterprise.annotation.AnnotationClientHelper
Helper class used by some of the processors and code of the annotation clients.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringappendOidsToHiddenField(String origValue, String oidString) Appends the value to the original string value..static ComponentModegetMode(NmCommandBean cb) Will retrieve the Component Mode from the NmCommandBean.static StringgetNmOidString(Object obj) Given a Persistable object, returns NmOidString , if the convert flag is true, it will replace the ":" with "%3A"
Supported API: truestatic WTHashSetparseToNmOid(String annotations) parseToNmOid utility to parse the string to return a list ofNmOid.
-
Method Details
-
getMode
Will retrieve the Component Mode from the NmCommandBean. Will default to "VIEW" if the mode can not be determined.
Supported API: true
Extendable: false- Parameters:
cb- The current command bean.- Returns:
- ComponentMode the component mode for the current operation.
-
getNmOidString
Given a Persistable object, returns NmOidString , if the convert flag is true, it will replace the ":" with "%3A"
Supported API: true- Parameters:
obj-- Returns:
- object id string
- Throws:
WTException
-
parseToNmOid
parseToNmOid utility to parse the string to return a list ofNmOid.
Supported API: true- Parameters:
annotations-- Returns:
- a list of
NmOid - Throws:
WTException
-
appendOidsToHiddenField
Appends the value to the original string value.. Used for build the value for the hidden field.
Supported API: true- Parameters:
origValue-oidString-- Returns:
- value for the hidden field
- Throws:
WTException
-