|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.cadx.common.ObjectDependencyProcessor
Field Summary | |
static Comparator |
DOCUMENT_NUMBER_COMPARATOR
|
static Comparator |
PERSISTABLE_COMPARATOR
|
private static String |
SERVER_CLASS
|
private static boolean |
VERBOSE
|
Fields inherited from interface wt.method.RemoteAccess |
versionID |
Constructor Summary | |
ObjectDependencyProcessor()
|
Method Summary | |
private static void |
addAssociatedDocs(EPMDocument[] assocDocs,
Set[] objectSets,
Set targetSet)
|
private static void |
addAssociatedParts(WTPart[] assocParts,
Set[] objectSets,
Set targetSet)
|
private static WTPart[] |
getAssociated(EPMDocument source)
This method gives all WTPart objects associated with an EPMDocument object |
private static EPMDocument[] |
getAssociated(WTPart target)
This method gives all EPMDocument objects associated with a WTPart object |
static Object[] |
getAssociatedDocsAndParts(Object[] selected)
This method returns the WTParts which are associated to the selected EPM documents, EPM documents which are associated to any of the selected WTParts and other WTParts which are associated with these EPM documents. |
static Object[] |
getAssociatedRemote(List selected)
This method returns the WTParts which are associated to the selected EPM documents, EPM documents which are associated any of the selected WTParts and other WTParts which are associated with these EPM documents. |
static Object[] |
getOptionalDependents(Object[] selected,
EPMWorkspace workspace,
EPMDocConfigSpec docConfigSpec,
EPMPopulateRule rule,
boolean includeAssociated,
List associatedObjects,
List requiredDependentObjects)
Finds out the optional dependents of the selected CAD documents and their associated parts if required. |
static Object[] |
getOptionalDependentsRemote(List selected,
EPMWorkspace workspace,
EPMDocConfigSpec docConfigSpec,
EPMPopulateRule rule,
Boolean includeAssociated,
List associatedObjects,
List requiredDependentObjects)
Finds out the optional dependents of the selected CAD documents and their associated parts if required. |
static Map |
getRefreshedObjects(Object[] objectsToBeRefreshed,
ConfigSpec partConfigSpec,
ConfigSpec docConfigSpec,
EPMWorkspace workspace)
This method refreshes the objects passed in the input array based upon the input config spec for parts and documents and the current open workspace and returns a map which has the numbers of the objects as the keys and the objects as the corresponding values. |
static Map |
getRefreshedObjectsRemote(List objectList,
ConfigSpec partConfigSpec,
ConfigSpec docConfigSpec,
EPMWorkspace workspace)
This method refreshes the objects passed in the input array based upon the input config spec for parts and documents and the current open workspace and returns a map which has the numbers of the objects as the keys and the objects as the corresponding values. |
static Object[] |
getRelatedDrawings(Object[] selected,
boolean includeAssociated,
List associatedObjects,
List allDependents,
ConfigSpec configSpec)
This method finds out the drawings if any referencing the selected EPM documents and their dependents (if the flag includeDrawingsOfDependents is set) and the parts associated with these drawings (if the flag includeAssociated is set). |
static Object[] |
getRelatedDrawingsRemote(List selected,
Boolean includeAssociated,
List associatedObjects,
List allDependents,
ConfigSpec configSpec)
This method is meant for invocation by the remote method server. |
private static QueryResult |
getRelatedItems(EPMWorkspace workspace,
EPMPopulateRule rule,
List selected,
EPMDocConfigSpec docConfigSpec)
|
static Object[] |
getRequiredDependents(Object[] selected,
EPMWorkspace workspace,
EPMDocConfigSpec docConfigSpec,
boolean includeAssociated,
List associatedObjects)
Finds out the required dependents of the selected CAD documents and their associated parts if required. |
static Object[] |
getRequiredDependentsRemote(List selected,
EPMWorkspace workspace,
EPMDocConfigSpec docConfigSpec,
Boolean includeAssociated,
List associatedObjects)
Finds out the required dependents of the selected CAD documents and their associated parts if required. |
static Object[] |
getSecondaryDependents(Object[] selected,
EPMWorkspace workspace,
EPMDocConfigSpec docConfigSpec,
EPMPopulateRule rule,
boolean includeAssociated,
List associatedObjects,
List requiredDependentObjects,
List optionalDependentObjects,
List drawingObjects)
Finds out the secondary dependents of the selected CAD documents and their associated parts if required. |
static Object[] |
getSecondaryDependentsRemote(List selected,
EPMWorkspace workspace,
EPMDocConfigSpec docConfigSpec,
EPMPopulateRule rule,
Boolean includeAssociated,
List associatedObjects,
List requiredDependentObjects,
List optionalDependentObjects,
List drawingObjects)
Finds out the secondary dependents of the selected CAD documents and their associated parts if required. |
static ArrayList |
getUsesComponentsForEPMDoc(EPMDocument doc,
ConfigSpec docConfigSpec,
ArrayList docList)
This method finds the components used in an assembly structure. |
private static Workable |
getWorkspaceCopy(Workable inWorkable,
EPMWorkspace workspace)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String SERVER_CLASS
private static boolean VERBOSE
public static final Comparator PERSISTABLE_COMPARATOR
public static final Comparator DOCUMENT_NUMBER_COMPARATOR
Constructor Detail |
public ObjectDependencyProcessor()
Method Detail |
public static Object[] getAssociatedDocsAndParts(Object[] selected) throws WTException
selected
- The array of objects selected from workspace browser(WB)
or selection dialog(SD)
WTException
public static Object[] getRelatedDrawings(Object[] selected, boolean includeAssociated, List associatedObjects, List allDependents, ConfigSpec configSpec) throws WTException
selected
- The array of objects selected from workspace browser(WB)
or selection dialog(SD)includeAssociated
- A boolean flag indicating whether the parts
associated with the drawings should be included in the
list of dependentsassociatedObjects
- List of objects associated to those selected (could
be passed as argument for avoiding recomputation of associated
objects)allDependents
- List of dependents of the selected objectsconfigSpec
- Config Spec to be used for filtering out the drawings
WTException
public static ArrayList getUsesComponentsForEPMDoc(EPMDocument doc, ConfigSpec docConfigSpec, ArrayList docList) throws WTException
doc
- The top level EPMDocument.
WTException
public static Object[] getRequiredDependents(Object[] selected, EPMWorkspace workspace, EPMDocConfigSpec docConfigSpec, boolean includeAssociated, List associatedObjects) throws WTException, WTPropertyVetoException
selected
- The array of objects selected from workspace browser(WB)
or selection dialog(SD)workspace
- The current open workspace where the selected and dependent
objects are to be downloaded/checked outdocConfigSpec
- Document config spec to be used for finding out dependents
(could be latest or a baseline or the same as current open
workspace which is default)includeAssociated
- Boolean flag to indicate whether the parts associated
with the required dependents should be includedassociatedObjects
- List of objects associated to those selected (could
be passed as argument for avoiding recomputation of associated
objects)
WTException,
- WTPropertyVetoException
WTException
WTPropertyVetoException
public static Object[] getOptionalDependents(Object[] selected, EPMWorkspace workspace, EPMDocConfigSpec docConfigSpec, EPMPopulateRule rule, boolean includeAssociated, List associatedObjects, List requiredDependentObjects) throws WTException
selected
- The array of objects selected from workspace browser(WB)
or selection dialog(SD)workspace
- The current open workspace where the selected and dependent
objects are to be downloaded/checked outdocConfigSpec
- Document config spec to be used for finding out dependents
(could be latest or a baseline or the same as current open
workspace which is default)rule
- The EPMPopulateRule to be used for finding out the dependentsincludeAssociated
- Boolean flag to indicate whether the parts associated
with the optional dependents should be includedassociatedObjects
- List of objects associated to those selected (could
be passed as argument for avoiding recomputation of associated
objects)requiredDependentObjects
- List of required dependents of selected objects.
Could be passed as argument if already determined to save time.
WTException
public static Object[] getSecondaryDependents(Object[] selected, EPMWorkspace workspace, EPMDocConfigSpec docConfigSpec, EPMPopulateRule rule, boolean includeAssociated, List associatedObjects, List requiredDependentObjects, List optionalDependentObjects, List drawingObjects) throws WTException
selected
- The array of objects selected from workspace browser(WB)
or selection dialog(SD)workspace
- The current open workspace where the selected and dependent
objects are to be downloaded/checked outdocConfigSpec
- Document config spec to be used for finding out dependents
(could be latest or a baseline or the same as current open
workspace which is default)rule
- The EPMPopulateRule to be used for finding out the dependentsincludeAssociated
- Boolean flag to indicate whether the parts associated
with the optional dependents should be includedassociatedObjects
- List of objects associated to those selectedrequiredDependentObjects
- List of required dependents of selected objects.optionalDependentObjects
- List of optional dependents of selected objects.drawingObjects
- List of drawings referring the selected objects or their dependents
WTException
public static Map getRefreshedObjects(Object[] objectsToBeRefreshed, ConfigSpec partConfigSpec, ConfigSpec docConfigSpec, EPMWorkspace workspace) throws WTException
objectsToBeRefreshed
- The array of objects to be refreshedpartConfigSpec
- The config spec to be used for refreshing partsdocConfigSpec
- The config spec to be used for refreshing documentsworkspace
- The current open workspace to be used to determine
whether the object to be refreshed is checked out to this
workspace
WTException
public static Object[] getAssociatedRemote(List selected) throws WTException
selected
- The list of objects selected from workspace browser(WB)
or selection dialog(SD)
WTException
public static Object[] getRelatedDrawingsRemote(List selected, Boolean includeAssociated, List associatedObjects, List allDependents, ConfigSpec configSpec) throws WTException
selected
- The list of objects selected from workspace browser(WB)
or selection dialog(SD)includeAssociated
- A Boolean flag indicating whether the parts
associated with the drawings should be included in the
list of dependentsassociatedObjects
- List of objects associated to those selected. If
passed as a non-null value, the objects associated to
the selected ones are not recomputed.allDependents
- List of dependents of the selected objectsconfigSpec
- Config Spec to be used for filtering out drawings
WTException
public static Object[] getRequiredDependentsRemote(List selected, EPMWorkspace workspace, EPMDocConfigSpec docConfigSpec, Boolean includeAssociated, List associatedObjects) throws WTException, WTPropertyVetoException
selected
- The list of objects selected from workspace browser(WB)
or selection dialog(SD)workspace
- The current open workspace where the selected and dependent
objects are to be downloaded/checked outdocConfigSpec
- Document config spec to be used for finding out dependents
(could be latest or a baseline or the same as current open
workspace which is default)includeAssociated
- Boolean flag to indicate whether the parts associated
with the required dependents should be includedassociatedObjects
- List of objects associated to those selected. If
passed as a non-null value, the objects associated to
the selected ones are not recomputed.
WTException,
- WTPropertyVetoException
WTException
WTPropertyVetoException
public static Object[] getOptionalDependentsRemote(List selected, EPMWorkspace workspace, EPMDocConfigSpec docConfigSpec, EPMPopulateRule rule, Boolean includeAssociated, List associatedObjects, List requiredDependentObjects) throws WTException, WTPropertyVetoException
selected
- The list of objects selected from workspace browser(WB)
or selection dialog(SD)workspace
- The current open workspace where the selected and dependent
objects are to be downloaded/checked outdocConfigSpec
- Document config spec to be used for finding out dependents
(could be latest or a baseline or the same as current open
workspace which is default)rule
- The EPMPopulateRule to be used for finding out the dependentsincludeAssociated
- Boolean flag to indicate whether the parts associated
with the optional dependents should be includedassociatedObjects
- List of objects associated to those selected. If
passed as a non-null value, the objects associated to
the selected ones are not recomputed.requiredDependentObjects
- List of the required dependents of the selected
CAD documents and their associated parts if any. The required
dependents are recomputed only if this parameter is null.
WTException,
- WTPropertyVetoException
WTException
WTPropertyVetoException
public static Object[] getSecondaryDependentsRemote(List selected, EPMWorkspace workspace, EPMDocConfigSpec docConfigSpec, EPMPopulateRule rule, Boolean includeAssociated, List associatedObjects, List requiredDependentObjects, List optionalDependentObjects, List drawingObjects) throws WTException, WTPropertyVetoException
selected
- The array of objects selected from workspace browser(WB)
or selection dialog(SD)workspace
- The current open workspace where the selected and dependent
objects are to be downloaded/checked outdocConfigSpec
- Document config spec to be used for finding out dependents
(could be latest or a baseline or the same as current open
workspace which is default)rule
- The EPMPopulateRule to be used for finding out the dependentsincludeAssociated
- Boolean flag to indicate whether the parts associated
with the optional dependents should be includedassociatedObjects
- List of objects associated to those selectedrequiredDependentObjects
- List of required dependents of selected objects.optionalDependentObjects
- List of optional dependents of selected objects.drawingObjects
- List of drawings referring the selected objects or their dependents
WTException,
- WTPropertyVetoException
WTException
WTPropertyVetoException
public static Map getRefreshedObjectsRemote(List objectList, ConfigSpec partConfigSpec, ConfigSpec docConfigSpec, EPMWorkspace workspace) throws WTException
objectList
- The list of objects to be refreshedpartConfigSpec
- The config spec to be used for refreshing partsdocConfigSpec
- The config spec to be used for refreshing documentsworkspace
- The current open workspace to be used to determine
whether the object to be refreshed is checked out to this
workspace
WTException
private static void addAssociatedDocs(EPMDocument[] assocDocs, Set[] objectSets, Set targetSet) throws WTException
WTException
private static void addAssociatedParts(WTPart[] assocParts, Set[] objectSets, Set targetSet)
private static QueryResult getRelatedItems(EPMWorkspace workspace, EPMPopulateRule rule, List selected, EPMDocConfigSpec docConfigSpec) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
private static WTPart[] getAssociated(EPMDocument source) throws WTException
source
- The EPMDocument whose associated parts are to be obtained
WTException
private static EPMDocument[] getAssociated(WTPart target) throws WTException
target
- The part whose associated documents are to be obtained
WTException
private static Workable getWorkspaceCopy(Workable inWorkable, EPMWorkspace workspace) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |