com.ptc.windchill.cadx.autopart
Class AutoPartCreatorHelper

java.lang.Object
  extended bycom.ptc.windchill.cadx.autopart.AutoPartCreatorHelper

public class AutoPartCreatorHelper
extends Object

Use cases: a> List of document contains - Drawing_1, Document_1 1. Drawing_1 referes to Document_1 if ( Document_1 has associated to WTPart ) { Do nothing } else { Create Auto part (Part_1) for Document_1 Create Active link between Part_1 and Document_1 Create Passive link between Part_1 and Drawing_1 } 2. Drawing_1 does NOT refer to Document_1 if ( Drawing_1 has associated WTPart ) { Do nothing } else { Create Auto Part ( Drawing_1_Part ) Create Passive link between Drawing_1_Part and Drawing_1 } if ( Document_1 has associated WTPart ) { Do nothing } else { Create Auto Part ( Document_1_Part ) Create Active link between Document_1_Part and Document_1 } b> List of document contains - Document_1 only 1. Document_1 is refered by Drawing_1 if ( Document_1 has associated to WTPart ) { Do nothing } else { Create Auto part (Part_1) for Document_1 Create Active link between Part_1 and Document_1 } c> List of document contains - Drawing_1 only 1. Drawing_1 referes to Document_1 Do nothing

Supported API: false

Extendable: false


Field Summary
private static String CLASSNAME
           
private static EPMDocSubType[] forbiddenDocSubTypes
           
private static EPMDocumentType[] forbiddenDocTypes
           
private static String RESOURCE
           
 
Constructor Summary
AutoPartCreatorHelper()
           
 
Method Summary
private static int containedInSelectedDocs(EPMDocument a_DocToSearch, long[] a_SelectedDocIds)
           
static Vector createAutoParts(EPMWorkspace a_Workspace, Vector a_Documents)
          

Supported API: false
private static long[] getWindchillIds(Vector a_Documents)
           
private static boolean isDocumentSubTypeForbidden(EPMDocument a_Document)
           
private static boolean isDocumentTypeForbidden(EPMDocument a_Document)
           
static boolean isDrawing(EPMDocument a_Doc)
          

Supported API: false
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

forbiddenDocTypes

private static EPMDocumentType[] forbiddenDocTypes

forbiddenDocSubTypes

private static EPMDocSubType[] forbiddenDocSubTypes
Constructor Detail

AutoPartCreatorHelper

public AutoPartCreatorHelper()
Method Detail

createAutoParts

public static Vector createAutoParts(EPMWorkspace a_Workspace,
                                     Vector a_Documents)
                              throws WTException


Supported API: false

Parameters:
a_Workspace -
a_Documents -
Returns:
Vector
Throws:
WTException

isDrawing

public static boolean isDrawing(EPMDocument a_Doc)


Supported API: false

Parameters:
a_Doc -
Returns:
boolean

containedInSelectedDocs

private static int containedInSelectedDocs(EPMDocument a_DocToSearch,
                                           long[] a_SelectedDocIds)

getWindchillIds

private static long[] getWindchillIds(Vector a_Documents)

isDocumentTypeForbidden

private static boolean isDocumentTypeForbidden(EPMDocument a_Document)

isDocumentSubTypeForbidden

private static boolean isDocumentSubTypeForbidden(EPMDocument a_Document)