Package wt.epm.structure
Interface EPMStructureService
The service for the struct package containing "navigetters" to navigate
the EPMMemberLink or EPMReferenceLink to both masters and iterations.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptiongetEPMMemberLinks(WTCollection usageLinks) API to get the EPMMemberLinks in document structure for which the given built WTPartUsageLink is addded in products structure.getImages(WTCollection sources, boolean onlyDirect, boolean navigateRules) Returns WTKeyedMap with key as source document passed as argument and value as WTCollection of latest compatible images for the source in the key.navigateBuildRuleSources(WTCollection objects, boolean onlyOtherSide, EPMWorkspace workspace, NavigationCriteria navCriteria) Navigates the build rules from the input build targets and returns either the build sources or the build rules depending upon whetheronlyOtherSideistrueorfalserespectively.navigateBuildRuleSources(WTCollection objects, boolean onlyOtherSide, EPMWorkspace workspace, NavigationCriteria navCriteria, boolean latestPerVersion) Navigates the build rules from the input build targets and returns either the build sources or the build rules depending upon whetheronlyOtherSideistrueorfalserespectively.navigateBuildRuleTargets(WTCollection objects, boolean onlyOtherSide, EPMWorkspace workspace, NavigationCriteria navCriteria) Navigates the build rules from the input build sources and returns either the build targets or the build rules depending upon whetheronlyOtherSideistrueorfalserespectively.navigateBuildRuleTargets(WTCollection objects, boolean onlyOtherSide, EPMWorkspace workspace, NavigationCriteria navCriteria, boolean latestPerVersion) Navigates the build rules from the input build sources and returns either the build targets or the build rules depending upon whetheronlyOtherSideistrueorfalserespectively.navigateContainedIn(EPMDocument contained, QuerySpec querySpec, boolean onlyOtherSide) Navigates the CONTAINED_IN role of an EPMContainedInLink.navigateContainedIn(EPMDocument contained, QuerySpec querySpec, boolean onlyOtherSide, ConfigSpec configSpec) Navigates the CONTAINED_IN role of the EPMContainedInLink and finds the appropriate iterations of the "container" EPM family table by applying the configSpec.navigateContainedIn(WTCollection documents, QuerySpec querySpec, boolean onlyOtherSide) For the given WTCollection of EPMDocuments, navigates the CONTAINED_IN role of the EPMContainedIn link and returns a WTKeyedMap whose values are WTSets of EPMContainedIn links or EPMFamilyTables depending upon the value of the onlyOtherSide flag.navigateContains(EPMFamilyTable container, QuerySpec querySpec, boolean onlyOtherSide) Navigates the CONTAINS role of an EPMContainedInLink.navigateContains(WTCollection familyTables, QuerySpec querySpec, boolean onlyOtherSide) For the given WTCollection of EPMFamilyTables, navigates the CONTAINS role of the EPMContainedIn link and returns a WTKeyedMap whose values are WTSets of EPMContainedIn links or EPMDocuments depending upon the value of the onlyOtherSide flag.navigateDescribedBy(WTCollection objects, boolean onlyOtherSide, EPMWorkspace workspace, NavigationCriteria navCriteria, boolean latestPerVersion) Navigates the describes links from the input described objects and returns either the describing objects or the describes links depending upon whetheronlyOtherSideistrueorfalserespectively.navigateDescribes(WTCollection objects, boolean onlyOtherSide, EPMWorkspace workspace, NavigationCriteria navCriteria, boolean latestPerVersion) Navigates the describes links from the input describing objects and returns either the described objects or the describes links depending upon whetheronlyOtherSideistrueorfalserespectively.navigateGeneric(EPMDocument variant, QuerySpec querySpec, boolean onlyOtherSide) Navigates the GENERIC role of the EPM Variant Link.navigateGeneric(WTCollection variants, QuerySpec querySpec, boolean onlyOtherSide) For the given WTCollection of EPMDocuments, navigates the GENERIC role of the EPMVariantLink and returns a WTKeyedMap whose values are WTSets of EPMVariantLinks or EPMDocumentMasters depending upon the value of the onlyOtherSide flag.navigateGenericToIteration(EPMDocument variant, QuerySpec querySpec, boolean onlyOtherSide, ConfigSpec configSpec) Navigates the GENERIC role of the EPMVariantLink and finds the appropriate iteration of the generic for this variant by applying the configSpec.navigateGenericToIteration(WTCollection variants, QuerySpec querySpec, boolean onlyOtherSide, ConfigSpec configSpec) For the given WTCollection of EPMDocuments, navigates the GENERIC role of the EPMVariantLink and finds the appropriate iteration for each other-side EPMDocumentMaster by applying the config spec.navigateReferencedBy(DocumentMaster master, QuerySpec querySpec, boolean onlyOtherSide) Navigates the REFERENCED_BY role of the EPMReferenceLink and returns a QueryResult of EPMReferenceLinks if the value of onlyOtherSide is "false" or EPMDocuments if the value is "true".navigateReferencedBy(WTCollection masters, QuerySpec querySpec, boolean onlyOtherSide) For the given WTCollection of DocumentMasters, navigates the REFERENCED_BY role of the EPMReferenceLink and returns a WTKeyedMap whose values are WTSets of EPMReferenceLinks or EPMDocuments depending upon the value of the onlyOtherSide flag.navigateReferences(EPMDocument document, QuerySpec querySpec, boolean onlyOtherSide) Navigates the REFERENCES role of the EPMReferenceLink, returning a QueryResult of EPMReferenceLinks if the value of onlyOtherSide is "false" or DocumentMasters if the value is "true".navigateReferences(WTCollection documents, QuerySpec querySpec, boolean onlyOtherSide) For the given WTCollection of EPMDocuments, navigates the REFERENCES role of the EPMReferenceLink and returns a WTKeyedMap whose values are WTSets of EPMReferenceLinks or DocumentMasters depending upon the value of the onlyOtherSide flag.navigateReferencesToIteration(EPMDocument document, QuerySpec querySpec, boolean onlyOtherSide, ConfigSpec configSpec) Navigates the REFERENCES role of the EPMReferenceLink and finds the appropriate iterations for the DocumentMasters by applying the configSpec.navigateReferencesToIteration(WTCollection documents, QuerySpec querySpec, boolean onlyOtherSide, ConfigSpec configSpec) For the given WTCollection of EPMDocuments, navigates the REFERENCES role of the EPMReferenceLink and finds the appropriate iteration for each other-side DocumentMaster by applying the config spec.navigateUsedBy(EPMDocumentMaster master, QuerySpec querySpec, boolean onlyOtherSide) Navigates the USED_BY role of the EPMMemberLink and returns a QueryResult of EPMMemberLinks if the value of onlyOtherSide is "false" or EPMDocuments if the value is "true".navigateUsedBy(WTCollection masters, QuerySpec querySpec, boolean onlyOtherSide) For the given WTCollection of EPMDocumentMasters, navigates the USED_BY role of the EPMMemberLink and returns a WTKeyedMap whose values are WTSets of EPMMemberLinks or EPMDocuments depending upon the value of the onlyOtherSide flag.navigateUses(EPMDocument document, QuerySpec querySpec, boolean onlyOtherSide) Navigates the USES role of the EPMMemberLink, returning a QueryResult of EPMMemberLinks if onlyOtherSide is "false" or EPMDocumentMasters if onlyOtherSide is "true".navigateUses(WTCollection documents, QuerySpec querySpec, boolean onlyOtherSide) For the given WTCollection of EPMDocuments, navigates the USES role of the EPMMemberLink and returns a WTKeyedMap whose values are WTSets of EPMMemberLinks or EPMDocumentMasters depending upon the value of the onlyOtherSide flag.navigateUsesToIteration(EPMDocument document, QuerySpec querySpec, boolean onlyOtherSide, ConfigSpec configSpec) Navigate the USES role of the EPMMemberLink and finds the appropriate iterations for those EPMDocumentMasters by applying the configSpec.navigateUsesToIteration(WTCollection documents, QuerySpec querySpec, boolean onlyOtherSide, ConfigSpec configSpec) For the given WTCollection of EPMDocuments, navigates the USES role of the EPMMemberLink and finds the appropriate iteration for each other-side EPMDocumentMaster by applying the config spec.navigateVariant(EPMDocumentMaster genericMaster, QuerySpec querySpec, boolean onlyOtherSide) Navigates the VARIANT role of the EPMVariantLink.navigateVariant(WTCollection masters, QuerySpec querySpec, boolean onlyOtherSide) For the given WTCollection of EPMDocumentMasters, navigates the VARIANT role of the EPMVariantLink and returns a WTKeyedMap whose values are WTSets of EPMVariantLinks or EPMDocuments depending upon the value of the onlyOtherSide flag.
-
Method Details
-
getImages
WTKeyedMap getImages(WTCollection sources, boolean onlyDirect, boolean navigateRules) throws WTException Returns WTKeyedMap with key as source document passed as argument and value as WTCollection of latest compatible images for the source in the key.
Supported API: true- Parameters:
sources- collection of sourcesonlyDirect- If onlyDirect is true the only direct images will be returned otherwise all images will be returned.navigateRules- If navigateRules is true then derived rep rules will be navigated to retrieve images if source do not have derived histories and source is latest iteration- Returns:
- WTKeyedMap
- Throws:
WTException
-
getEPMMemberLinks
API to get the EPMMemberLinks in document structure for which the given built WTPartUsageLink is addded in products structure. Returns WTKeyedMap where key is usage link and value is WTCollection of member links from which usage link was built. Memberlinks are from the iteration of CAD Document that originally built the WTPart structure.
Supported API: true- Parameters:
usageLinks- Collection of usage links.- Returns:
- WTKeyedMap
- Throws:
WTException