Class WorkSetManagementHelper
java.lang.Object
com.ptc.windchill.enterprise.workSet.util.WorkSetManagementHelper
- All Implemented Interfaces:
Serializable,RemoteAccess
Class for helper methods related to Work Sets
Supported API: true
Extendable: false
Supported API: true
Extendable: false
- See Also:
-
Field Summary
Fields inherited from interface wt.method.RemoteAccess
versionID -
Method Summary
Modifier and TypeMethodDescriptionaddReferenceDocuments(NmCommandBean clientData) Given a WTWorkSet object and a collection of object, create theWTWorkSetReferenceLinksbetween the working copy of theWTWorkSetobject and each of the object in the collection The WTWorkSet object will be checked out if it is not a working copy.addReferenceDocuments(NmCommandBean clientData, WTCollection referenceDocs) Given a WTWorkSet object and a collection of object, create theWTWorkSetReferenceLinksbetween the working copy of theWTWorkSetobject and each of the object in the collection The WTWorkSet object will be checked out if it is not a working copy.static StringgetValidReferenceDocumentList(NmCommandBean clientData) Returns the comma delimited String of the external form of the type names for eachin the List of valid Workset reference document. getWorkingCopy(WTWorkSet workset) Given a WTWorkSet object, return its working copy if it is checked out by the the current user Otherwise, check it out if the user has the permission and return its working copy.getWorkSet(NmCommandBean clientData) Get the WorkSet from the NmCommandBean using by using the PrimaryOid
Supported API: trueremoveReferenceDocuments(NmCommandBean clientData) Given a WTWorkSet object and a collection of object, remove theWTWorkSetReferenceLinksbetween the working copy of theWTWorkSetobject and each of the object in the collection The WTWorkSet object will be checked out if it is not a working copy.updateComponentLinks(WTCollection components, WTWorkSet workset, String action) Given a WTWorkSet object and a collection of object, create/remove the WTWorkSetComponentLinks between the working copy of the WTWorkSet object and each of the object in the collection The WTWorkSet object will be checked out if it is not a working copy.updateComponents(NmCommandBean clientData, String action) Given a WTWorkSet object and a collection of object, create/remove the WTWorkSetComponentLinks between the working copy of the WTWorkSet object and each of the object in the collection The WTWorkSet object will be checked out if it is not a working copy.
-
Method Details
-
updateComponents
public RelatedObjectsBean updateComponents(NmCommandBean clientData, String action) throws WTException Given a WTWorkSet object and a collection of object, create/remove the WTWorkSetComponentLinks between the working copy of the WTWorkSet object and each of the object in the collection The WTWorkSet object will be checked out if it is not a working copy.
Supported API: true- Parameters:
clientData- - The NmCommandBean containing the WTWorkSet object as the primary object and the collection of component objects as selected objectsaction-- Returns:
- - A bean of the working copy of the WTWorkSet object and a list of the component objects whose links are not processed successfully.
- Throws:
WTException
-
getWorkSet
Get the WorkSet from the NmCommandBean using by using the PrimaryOid
Supported API: true- Parameters:
clientData-- Returns:
- WTWorkSet
- Throws:
WTException
-
updateComponentLinks
public RelatedObjectsBean updateComponentLinks(WTCollection components, WTWorkSet workset, String action) throws WTException Given a WTWorkSet object and a collection of object, create/remove the WTWorkSetComponentLinks between the working copy of the WTWorkSet object and each of the object in the collection The WTWorkSet object will be checked out if it is not a working copy.
Supported API: true- Parameters:
components- - A collection of component objectsworkset- - A WTWorkSet objectaction-- Returns:
- - A bean of the working copy of the WTWorkSet object and a list of the component objects whose links are not processed successfully.
- Throws:
WTException
-
getWorkingCopy
Given a WTWorkSet object, return its working copy if it is checked out by the the current user Otherwise, check it out if the user has the permission and return its working copy. Null is returned if neither above is applicable.
Supported API: true- Parameters:
workset- WTWorkset object- Returns:
- the working copy of the WTWorkSet object
- Throws:
WTException
-
addReferenceDocuments
Given a WTWorkSet object and a collection of object, create theWTWorkSetReferenceLinksbetween the working copy of theWTWorkSetobject and each of the object in the collection The WTWorkSet object will be checked out if it is not a working copy.
Supported API: true- Parameters:
clientData-- Returns:
- - A bean of the working copy of the WTWorkSet object and a list of objects not processed.
- Throws:
WTException
-
addReferenceDocuments
public RelatedObjectsBean addReferenceDocuments(NmCommandBean clientData, WTCollection referenceDocs) throws WTException Given a WTWorkSet object and a collection of object, create theWTWorkSetReferenceLinksbetween the working copy of theWTWorkSetobject and each of the object in the collection The WTWorkSet object will be checked out if it is not a working copy.
Supported API: true- Parameters:
clientData-referenceDocs-- Returns:
- - A bean of the working copy of the WTWorkSet object and a list of objects not processed.
- Throws:
WTException
-
removeReferenceDocuments
Given a WTWorkSet object and a collection of object, remove theWTWorkSetReferenceLinksbetween the working copy of theWTWorkSetobject and each of the object in the collection The WTWorkSet object will be checked out if it is not a working copy.
Supported API: true- Parameters:
clientData-- Returns:
- - A bean of the working copy of the WTWorkSet object and a list of objects not processed.
- Throws:
WTException
-
getValidReferenceDocumentList
Returns the comma delimited String of the external form of the type names for eachin the List of valid Workset reference document.
Supported API: true- Parameters:
clientData-- Returns:
- A comma delimited String of the type names of Work Set reference document types.
- Throws:
WTException
-