Package com.ptc.windchill.csm.service
Class ClassificationStructureServiceHelper
java.lang.Object
com.ptc.windchill.csm.service.ClassificationStructureServiceHelper
Provides supported APIs for Classification CRUD operations
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanareObjectsClassifiedOnTheNode(String nodeName, String namespace) Returns true if there are any objects classified against the given clf node
Supported API: truestatic ClassificationNodeViewcreateNode(ClassificationNodeView nodeToBeCreated) Create a node with the properties and attributes set in ClassificationNodeView
Supported API: truestatic booleandeleteNode(String nodeName, String namespace) Deletes an existing node
Supported API: trueThis method returns a collection of all classification namespaces in the system
Supported API: truestatic List<ClassificationNodeView> getAllRootNodesInNamespace(String namespace) This method returns all the classification root nodes in a given namespace
Supported API: truestatic ClassificationNodeViewGet a node view of the existing node
Supported API: truestatic booleanisLeafNode(String nodeName, String namespace) Returns true if the classification node is a leaf node
Supported API: truestatic ClassificationNodeViewupdateNode(ClassificationNodeView nodeToBeUpdated) Update a node with the properties and attributes set in ClassificationNodeView
Supported API: true
-
Method Details
-
createNode
public static ClassificationNodeView createNode(ClassificationNodeView nodeToBeCreated) throws WTException Create a node with the properties and attributes set in ClassificationNodeView
Supported API: true- Parameters:
nodeToBeCreated-- Returns:
- ClassificationNodeView of the created node
- Throws:
WTException
-
updateNode
public static ClassificationNodeView updateNode(ClassificationNodeView nodeToBeUpdated) throws WTException Update a node with the properties and attributes set in ClassificationNodeView
Supported API: true- Parameters:
nodeToBeUpdated-- Returns:
- ClassificationNodeView of the updated node
- Throws:
WTException
-
getNode
Get a node view of the existing node
Supported API: true- Parameters:
nodeName- - Internal name of the classification nodenamespaace- - Namespace to which the node belongs- Returns:
- ClassificationNodeView of the node. Returns null if node could not be found
- Throws:
WTException
-
deleteNode
Deletes an existing node
Supported API: true- Parameters:
nodeName- - Internal name of the classification nodenamespace- - Namespace to which the node belongs- Returns:
- Throws:
WTException
-
isLeafNode
Returns true if the classification node is a leaf node
Supported API: true- Parameters:
nodeName- - Internal name of the classification nodenamespace- - Namespace to which the node belongs- Returns:
- Throws:
WTException
-
areObjectsClassifiedOnTheNode
public static boolean areObjectsClassifiedOnTheNode(String nodeName, String namespace) throws WTException Returns true if there are any objects classified against the given clf node
Supported API: true- Parameters:
nodeName- - Internal name of the classification nodenamespace- - Namespace to which the node belongs- Returns:
- Throws:
WTException
-
getAllNamespaces
This method returns a collection of all classification namespaces in the system
Supported API: true- Returns:
- A set of classification namespaces
- Throws:
WTException
-
getAllRootNodesInNamespace
public static List<ClassificationNodeView> getAllRootNodesInNamespace(String namespace) throws WTException This method returns all the classification root nodes in a given namespace
Supported API: true- Parameters:
namespace-- Returns:
- List of ClassificationNodeView of the root nodes
- Throws:
WTException
-