|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.services.StandardManager
wt.part.StandardWTPartService
This implementation of WTPartService
implements the service API
and adds listeners in performStartupProcess()
.
Use the newStandardWTPartService
static factory method(s),
not the StandardWTPartService
constructor, to construct
instances of this class. Instances must be constructed using the static
factory(s), in order to ensure proper initialization of the instance.
Supported API: true
Extendable: true
Field Summary | |
private ApplicationContext |
applicationContext
|
private static String |
CLASSNAME
|
private static String |
DEFAULT_VIEW_PREF_KEY
|
private static String |
DEFAULT_VIEW_PREF_NODE
|
private static String |
ID
|
private static String |
ITERATION_MASTER_OID
|
private static String |
OBJECT_IDENTIFIER
|
private static String |
PART_EXPORT_TARGET_ROLE_OID
|
private static boolean |
proIInst
|
private static String |
RESOURCE
|
private static boolean |
VERBOSE
|
private static String |
WTPART_ROLE_OID
|
Fields inherited from class wt.services.StandardManager |
|
Fields inherited from interface wt.part.WTPartService |
DEFAULT_CONFIG_SPEC_VIEW_PREF |
Fields inherited from interface wt.services.applicationcontext.ApplicationContextChild |
APPLICATION_CONTEXT |
Fields inherited from interface wt.services.Manager |
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE |
Constructor Summary | |
StandardWTPartService()
|
Method Summary | |
private QueryResult |
addOccurrenceData(QueryResult original,
PathOccurrenceContext context,
Class occurrenceDataClass)
|
private void |
assignConfiguration(WTSerialNumberedPartInstance instance)
|
private void |
assignContainerDefaultDomain(Persistable p)
|
private void |
assignDomain(Persistable p)
|
WTPartMaster |
changeWTPartMasterIdentity(WTPartMaster part_master,
String name,
String number,
WTOrganization org)
Change the identity of Part Master with the new name, number and organization. |
protected void |
checkConfigSpecReference(String referenceAttributeName,
WTCollection coll)
|
protected void |
checkReflexive(ObjectToObjectLink link)
|
private QueryResult |
consolidateBOM(QueryResult bom)
Consolidate a BOM by combining usage links with the same target into consolidated links with added quantities. |
private Hashtable |
consolidateUsageLinks(QueryResult usageLinks)
|
private void |
copyIBAValues(IBAHolder original,
IBAHolder copy)
|
protected void |
copyWTPartSubstituteLinks(WTCollection partUsageLinks,
WTKeyedMap evtMap)
|
WTProductConfiguration |
copyWTProductConfiguration(WTProductConfiguration configuration,
String newConfigurationName)
Supported API: false |
WTProductInstance2 |
copyWTProductInstance2(WTProductInstance2 baseInstance)
Supported API: false |
protected Persistable[][] |
createUsages(WTCollection links,
WTValuedMap masterPartMap)
Processes the input collection of usage links and creates a Persistable[2] for each one where [0] is the usage link and [1] is the part or part master as found in the input master->parts map. |
protected void |
deleteRelatedUsesOccurrences(WTCollection coll)
|
protected WTValuedMap |
filteredIterationsKeyedByMaster(WTCollection masters,
ConfigSpec configSpec)
Applys a config spec to the masters and returns a map where the keys are the masters from the input and values are the iterations selected by the config spec. |
protected static QueryResult |
filterOriginalCopiesInBuildRules(WTPart sourcePart,
QueryResult buildRuleLinks)
Outputs the given Describes Documents. |
WTSet |
filterPartsWithChildren(WTCollection parts)
Return a WTSet of the part objects passed in that play the used-by role in a WTPartUsageLink; that is, this method returns those parts that use other parts. |
WTPartConfigSpec |
findWTPartConfigSpec()
Returns the WTPartConfigSpec for the current principal. |
QueryResult |
getAlternateForWTPartMasters(WTPartMaster partMaster)
Navigates WTPartAlternateLinks along the Alternate For role. |
QueryResult |
getAlternatesWTPartMasters(WTPartMaster partMaster)
Navigates WTPartAlternateLinks along the Alternates role. |
ApplicationContext |
getApplicationContext()
Gets the object for the association that plays role: applicationContext. |
QueryResult[] |
getBomDifferences(WTPart currentPart,
WTPart previousPart)
Deprecated. |
String |
getConceptualClassname()
Deprecated. |
private ConfigSpec |
getConfigSpec(WTProductConfiguration productConfiguration)
|
private ConfigSpec |
getConfigSpec(WTProductInstance2 productInstance)
|
QueryResult |
getConsolidatedBOM(WTPart part)
Deprecated. |
View |
getDefaultConfigSpecViewPref()
Gets the value of the attribute: defaultConfigSpecViewPref. |
QueryResult |
getDescribedByDocuments(WTPart part)
Return a QueryResult of Documents (WTDocuments AND EPMDocuments) that the given WTPart is being described by. |
QueryResult |
getDescribedByDocuments(WTPart part,
boolean onlyOtherSides)
Return a QueryResult of Documents (WTDocuments AND EPMDocuments) that the given WTPart is being described by. |
QueryResult |
getDescribedByWTDocuments(WTPart part)
Return a QueryResult of WTDocuments that the given WTPart is being described by. |
QueryResult |
getDescribedByWTDocuments(WTPart part,
boolean onlyOtherSides)
Return a QueryResult of WTDocuments that the given WTPart is being described by. |
QueryResult |
getDescribesWTParts(WTDocument document)
Return a QueryResult of WTParts that the given WTDocument describes. |
QueryResult |
getDescribesWTParts(WTDocument document,
boolean onlyOtherSides)
Return a QueryResult of WTParts that the given WTDocument describes. |
Timestamp |
getExportDate(WTPart part,
PartExportTarget target)
Get the date when this part iteration was exported to another system - for example, an ERP system. |
protected WTSet |
getMasters(WTKeyedMap map)
Returns a set of unique master objects from the input map that maps parts to their associated usage links. |
void |
getMultilevelBomCompare(WTPartMaster part1,
ConfigSpec spec1,
WTPartMaster part2,
ConfigSpec spec2,
int maxDepth,
MultilevelBomCompareVisitor aVisitor)
Recursively compares parts used by part1 and part2 using config specs 1 and 2 to select the part versions. |
void |
getMultilevelBomCompare(WTPartMaster part1,
WTPartConfigSpec spec1,
WTPartMaster part2,
WTPartConfigSpec spec2,
int maxDepth,
MultilevelBomCompareVisitor aVisitor)
Recursively compares parts used by part1 and part2 using config specs 1 and 2 to select the part versions. |
protected void |
getMultilevelBomDifferences(WTPart part1,
BaselineConfigurationConfigSpec spec1,
WTPart part2,
BaselineConfigurationConfigSpec spec2,
PartPathOccurrence path,
int maxDepth,
int currentDepth,
MultilevelBomCompareVisitor aVisitor)
|
protected void |
getMultilevelBomDifferences(WTPart part1,
WTPartConfigSpec spec1,
WTPart part2,
WTPartConfigSpec spec2,
int maxDepth,
int currentDepth,
MultilevelBomCompareVisitor aVisitor)
Recursively compares parts used by part1 and part2 using config specs 1 and 2 to select the part versions. |
protected void |
getMultilevelBomDifferences(WTPart part1,
WTProductConfiguration productConfiguration1,
WTPart part2,
WTProductConfiguration productConfiguration2,
PartPathOccurrence path,
int maxDepth,
int currentDepth,
MultilevelBomCompareVisitor aVisitor)
Recursively compares parts used by part1 and part2 using config specs 1 and 2 to select the part versions. |
protected void |
getMultilevelBomDifferences(WTPart part1,
WTProductInstance2 productInstance1,
SerialNumberedConfiguredInstanceConfigSpec spec1,
WTPart part2,
WTProductInstance2 productInstance2,
SerialNumberedConfiguredInstanceConfigSpec spec2,
PartPathOccurrence path,
int maxDepth,
int currentDepth,
MultilevelBomCompareVisitor aVisitor)
Recursively compares parts used by part1 and part2 using config specs 1 and 2 to select the part versions. |
void |
getMultilevelWhereUsed(WTPart part,
Navigator navigator,
MultilevelWhereUsedVisitor visitor)
Recursively compares parts used by part1 and part2 using config specs 1 and 2 to select the part versions. |
void |
getMultilevelWhereUsed(WTPart part,
WTPartConfigSpec spec,
Navigator navigator,
MultilevelWhereUsedVisitor visitor)
Recursively compares parts used by part1 and part2 using config specs 1 and 2 to select the part versions. |
protected WTSerialNumberedPartInstance |
getOrStoreSNPI(WTSerialNumberedPartInstance snpi)
|
protected static WTObject |
getOtherSideObject(Object link,
Persistable persistableObj)
Gets the Other Side Object if the link Object is a BinaryLink; otherwise it just returns null. |
PartUsesOccurrence |
getPartUsesOccurrence(PartPathOccurrence usedByPathOccurrence,
WTProductConfiguration configuration)
Returns the PartUsesOccurrence associated with the given PartPathOccurence for the as used in the given WTProductConfiguration . |
Vector |
getPartUsesOccurrences(Vector links)
Supported API: false |
QueryResult |
getReferencesWTDocumentMasters(WTPart part)
Returns the WTDocumentMasters that are referenced by this WTPart. |
QueryResult |
getSeparateUsesWTPartsWithOccurrences(QueryResult initialResult)
|
QueryResult |
getSeparateUsesWTPartsWithOccurrences(QueryResult initialResult,
WTProductInstance2 currentInstance,
SerialNumberedConfiguredInstanceConfigSpec configSpec)
|
QueryResult |
getSubstituteForWTPartUsageLinks(WTPartMaster partMaster)
Navigates WTPartSubstituteLinks along the SubstituteFor role. |
QueryResult |
getSubstitutesWTPartMasters(WTPartUsageLink usageLink)
Navigates WTPartSubstituteLinks along the Substitutes role. |
QueryResult |
getUsedByWTParts(WTPartMaster partMaster)
Navigates the WTPartUsageLink along the usedBy role, returning a QueryResult of WTParts. |
QueryResult |
getUsesWTPartMasters(WTPart part)
Navigates the WTPartUsageLink along the uses role, returning a QueryResult of WTPartUsageLinks. |
Persistable[][][] |
getUsesWTParts(WTList parts,
ConfigSpec configSpec)
Navigates from many used-by parts to their uses
part masters and applies a ConfigSpec to select the iterations
of the uses parts. |
QueryResult |
getUsesWTParts(WTPart part,
ConfigSpec configSpec)
Applies the configSpec to the result of navigating the WTPartUsageLink along the uses role; returns a QueryResult of Persistable[], in which the WTPartUsageLinks are at the 0th position and the corresponding iterations (or master if there is no corresponding iteration) in the 1th position. |
private QueryResult |
getUsesWTPartsFromLinks(QueryResult partUsageLinks,
ConfigSpec configSpec)
This method is useful when you have one part and several config specs and you want to use getUsesWTPartMasters to get the uses masters in one call and then use those masters to get the parts for each config spec. |
private QueryResult |
getUsesWTPartsFromLinks(QueryResult partUsageLinks,
WTPartConfigSpec configSpec)
This method is useful when you have one part and several config specs and you want to use getUsesWTPartMasters to get the uses masters in one call and then use those masters to get the parts for each config spec. |
QueryResult |
getUsesWTPartsWithAllOccurrences(WTPart part,
ConfigSpec configSpec)
This method applies the ConfigSpec
to the result of navigating the WTPartUsageLink along the
uses role; returns a QueryResult of Persistable[] ,
in which the WTPartUsageLink s are at position 0 (and
their occurrenceVector is populated with occurrences), the corresponding
WTPart s (or WTPartMaster s if there is no corresponding
part) in position 1. |
QueryResult |
getUsesWTPartsWithAllOccurrences(WTPart part,
ConfigSpec configSpec,
PartPathOccurrence subPathOccurrence)
This method applies the ConfigSpec
to the result of navigating the WTPartUsageLink along the
uses role; returns a QueryResult of Persistable[] ,
in which the WTPartUsageLink s are at position 0 (and
their occurrenceVector is populated with occurrences), the corresponding
WTPart s (or WTPartMaster s if there is no corresponding
part) in position 1. |
QueryResult |
getUsesWTPartsWithAllOccurrences(WTPart part,
WTProductConfiguration productConfiguration,
PartPathOccurrence subPathOccurrence)
This method applies the ConfigSpec
to the result of navigating the WTPartUsageLink along the
uses role; returns a QueryResult of Persistable[] ,
in which the WTPartUsageLink s are at position 0 (and
their occurrenceVector is populated with occurrences), the corresponding
WTPart s (or WTPartMaster s if there is no corresponding
part) in position 1. |
QueryResult |
getUsesWTPartsWithAllOccurrences(WTPart part,
WTProductInstance2 productInstance,
PartPathOccurrence subPathOccurrence)
This method applies the ConfigSpec
to the result of navigating the WTPartUsageLink along the
uses role; returns a QueryResult of Persistable[] ,
in which the WTPartUsageLink s are at position 0 (and
their occurrenceVector is populated with occurrences), the corresponding
WTPart s (or WTPartMaster s if there is no corresponding
part) in position 1. |
Persistable[][][] |
getUsesWTPartsWithOccurrences(WTList parts,
List pathOccurrences,
ConfigSpec configSpec)
Navigates from many used-by parts to their uses
part masters and applies a ConfigSpec to select the iterations
of the uses parts. |
Persistable[][][] |
getUsesWTPartsWithOccurrences(WTList parts,
List pathOccurrences,
WTProductConfiguration productConfiguration)
Navigates from many used-by parts to their uses
part masters and applies a ConfigSpec to select the iterations
of the uses parts. |
Persistable[][][] |
getUsesWTPartsWithOccurrences(WTList parts,
List pathOccurrences,
WTProductInstance2 productInstance)
Navigates from many used-by parts to their uses
part masters and applies a ConfigSpec to select the iterations
of the uses parts. |
QueryResult |
getUsesWTPartsWithOccurrences(WTPart part,
ConfigSpec configSpec)
This method applies the ConfigSpec
to the result of navigating the WTPartUsageLink along the
uses role; returns a QueryResult of Persistable[] ,
in which the WTPartUsageLink s are at position 0 (and
their occurrenceVector is populated with occurrences), the corresponding
WTPart s (or WTPartMaster s if there is no corresponding
part) in position 1. |
QueryResult |
getUsesWTPartsWithOccurrences(WTPart part,
ConfigSpec configSpec,
PartPathOccurrence subPathOccurrence)
This method applies the ConfigSpec
to the result of navigating the WTPartUsageLink along the
uses role; returns a QueryResult of Persistable[] ,
in which the WTPartUsageLink s are at position 0 (and
their occurrenceVector is populated with occurrences), the corresponding
WTPart s (or WTPartMaster s if there is no corresponding
part) in position 1. |
QueryResult |
getUsesWTPartsWithOccurrences(WTPart part,
WTProductConfiguration productConfiguration,
PartPathOccurrence subPathOccurrence)
This method applies the ConfigSpec
to the result of navigating the WTPartUsageLink along the
uses role; returns a QueryResult of Persistable[] ,
in which the WTPartUsageLink s are at position 0 (and
their occurrenceVector is populated with occurrences), the corresponding
WTPart s (or WTPartMaster s if there is no corresponding
part) in position 1. |
QueryResult |
getUsesWTPartsWithOccurrences(WTPart part,
WTProductInstance2 productInstance,
PartPathOccurrence subPathOccurrence)
This method applies the ConfigSpec
to the result of navigating the WTPartUsageLink along the
uses role; returns a QueryResult of Persistable[] ,
in which the WTPartUsageLink s are at position 0 (and
their occurrenceVector is populated with occurrences), the corresponding
WTPart s (or WTPartMaster s if there is no corresponding
part) in position 1. |
protected WTPartConfigSpec |
intFindWTPartConfigSpec()
|
protected SerialNumberMapping |
intLittleSNPIMap(WTProductInstance2 productInstance,
PathOccurrence path,
WTSerialNumberedPartInstance instanceToAllocate)
|
SerialNumberMapping |
intLittleSNPIRemap(SerialNumberMapping mapping,
WTSerialNumberedPartInstance newInstance)
|
boolean |
isAnAlternateOf(WTPartMaster partMasterA,
WTPartMaster partMasterB)
Determines if argument A is an alternate of argument B Supported API: true |
WTPart |
latestExport(WTPartMaster master,
PartExportTarget target)
Returns the most recently iteration of a part master that was exported to another system - for example, an ERP System. |
WTProductInstance2 |
littleChange(WTProductInstance2 productInstance,
WTProductConfiguration productConfiguration)
Supported API: false |
SerialNumberMapping |
littleMap(WTProductInstance2 productInstance,
PathOccurrence path,
WTProductInstanceMaster instanceToAllocate)
Supported API: false |
SerialNumberMapping |
littleMap(WTProductInstance2 productInstance,
PathOccurrence path,
WTSerialNumberedPartInstance instanceToAllocate)
Supported API: false |
BaselineConfigurationOverride |
littleOver(WTProductConfiguration productConfiguration,
PathOccurrence path,
WTPart part)
Supported API: false |
WTProductConfiguration |
littlePop(WTProductConfiguration productConfiguration,
Persistable startingNode,
boolean repop,
ConfigSpec configSpec)
Supported API: false |
WTProductConfiguration |
littlePut(WTProductConfiguration productConfiguration,
WTPart part)
Supported API: false |
SerialNumberMapping |
littleRemap(SerialNumberMapping mapping,
WTProductInstanceMaster newInstance)
Supported API: false |
SerialNumberMapping |
littleRemap(SerialNumberMapping mapping,
WTSerialNumberedPartInstance newInstance)
Supported API: false |
WTProductConfiguration |
littleRemover(WTProductConfiguration productConfiguration,
BaselineConfigurationOverride override)
Supported API: false |
BaselineConfigurationOverride |
littleReover(BaselineConfigurationOverride override,
WTPart newPart)
Supported API: false |
WTProductInstance2 |
littleUnmap(WTProductInstance2 productInstance,
SerialNumberMapping mapping)
Supported API: false |
protected WTKeyedMap |
navigateUses(WTCollection parts)
Navigate the uses role on an entire collection of parts all at once. |
static StandardWTPartService |
newStandardWTPartService()
Default factory for the class. |
private boolean |
occurrencePathsMayExist(PartPathOccurrence path)
|
protected void |
performStartupProcess()
Adds an event listener to copy substitute links when their usage links are copied. |
WTPartMaster |
publish(WTPart part)
Publish the IBA values on the given part to the part master. |
private PathOccurrenceContext |
refreshPathOccurrenceContextVersion(PathOccurrenceContext poc)
|
private PathOccurrenceData |
refreshPathOccurrenceData(PathOccurrenceContext poc,
PathOccurrenceData pod)
|
Enumeration[] |
retrieveBomDifferences(WTPart currentPart,
WTPart previousPart)
Compares the bill of material of the current WTPart with a previous WTPart. |
Enumeration[] |
retrieveBomDifferences(WTPart currentPart,
WTPart previousPart,
boolean ignoreLineNumbers)
Compares the bill of material of the current WTPart with a previous WTPart. |
Enumeration |
retrieveBomInformation(WTPart part)
Returns an Enumeration of PartUsageInfo objects given a WTPart. |
Enumeration |
retrieveBomInformation(WTPart part,
boolean ignoreLineNumbers)
Returns an Enumeration of PartUsageInfo objects given a WTPart. |
WTPartConfigSpec |
saveWTPartConfigSpec(WTPartConfigSpec a_PartConfigSpec)
Saves the WTPartConfigSpec for the current principal. |
WTProductInstance2 |
saveWTProductInstance2Copy(WTProductInstance2 baseInstance,
WTProductInstance2 newInstance)
Supported API: false |
void |
setApplicationContext(ApplicationContext a_ApplicationContext)
Sets the object for the association that plays role: applicationContext. |
void |
setDefaultConfigSpecViewPref(View a_DefaultConfigSpecViewPref)
Sets the value of the attribute: defaultConfigSpecViewPref. |
Timestamp |
setExportDate(WTPart part,
PartExportTarget target,
Timestamp timestamp)
Set the date that this part iteration was exported to another system - for example, an ERP system. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private ApplicationContext applicationContext
private static final String WTPART_ROLE_OID
private static final String PART_EXPORT_TARGET_ROLE_OID
private static final String ID
private static final String OBJECT_IDENTIFIER
private static final String ITERATION_MASTER_OID
private static final String DEFAULT_VIEW_PREF_NODE
private static final String DEFAULT_VIEW_PREF_KEY
private static boolean proIInst
private static final boolean VERBOSE
Constructor Detail |
public StandardWTPartService()
Method Detail |
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class StandardManager
protected void performStartupProcess() throws ManagerException
performStartupProcess
in class StandardManager
ManagerException
public static StandardWTPartService newStandardWTPartService() throws WTException
WTException
public View getDefaultConfigSpecViewPref() throws WTException
getDefaultConfigSpecViewPref
in interface WTPartService
WTException
public void setDefaultConfigSpecViewPref(View a_DefaultConfigSpecViewPref) throws WTException
setDefaultConfigSpecViewPref
in interface WTPartService
a_DefaultConfigSpecViewPref
-
WTException
public WTPartMaster publish(WTPart part) throws WTException
publish
in interface WTPartService
part
-
WTException
public QueryResult getUsesWTParts(WTPart part, ConfigSpec configSpec) throws WTException
getUsesWTParts
in interface WTPartService
part
- The WTPart to navigate.configSpec
- The ConfigSpec to use to filter the iterations for the masters used.
WTException
WTPartUsageLink
,
WTPart
,
WTPartMaster
,
Persistable
public Persistable[][][] getUsesWTParts(WTList parts, ConfigSpec configSpec) throws WTException
used-by
parts to their uses
part masters and applies a ConfigSpec
to select the iterations
of the uses parts. Returns a three dimensional array of Persistable
where the first dimension is corresponds the the used-by parts passed
in. The second dimension corresponds to the part usage links from
the used-by part. The third dimension is two elements long where [0]
is the WTPartUsageLink and [2] is the uses WTPart or WTPartMaster
if the config spec did not select an iteration of the uses part.
getUsesWTParts
in interface WTPartService
parts
- Ordered list of used-by
parts.configSpec
- The config spec to use to select the uses part iterations.
WTException
public Persistable[][][] getUsesWTPartsWithOccurrences(WTList parts, List pathOccurrences, ConfigSpec configSpec) throws WTException
used-by
parts to their uses
part masters and applies a ConfigSpec
to select the iterations
of the uses parts. Also includes uses and path occurrences along with
path occurrence data. The parameters parts
and pathOccurrences
are parallel lists where the part and its corresponding path occurrence
are at the same index in the two lists. If a part does not have a
path occurrence, then its path occurrence should be null in the list
of path occurrences. This method returns a three dimensional array
of Persistable where the first dimension is corresponds the the used-by
parts passed in. The second dimension corresponds to the part usage
links from the used-by part. The third dimension is two elements long
where [0] is the WTPartUsageLink and [2] is the uses WTPart or WTPartMaster
if the config spec did not select an iteration of the uses part.
getUsesWTPartsWithOccurrences
in interface WTPartService
parts
- Ordered list of used-by
parts.pathOccurrences
- Ordered list of path occurrences whose order corresponds to the order of the parts.configSpec
- The config spec to use to select the uses part iterations.
WTException
public Persistable[][][] getUsesWTPartsWithOccurrences(WTList parts, List pathOccurrences, WTProductConfiguration productConfiguration) throws WTException
used-by
parts to their uses
part masters and applies a ConfigSpec
to select the iterations
of the uses parts. Also includes uses and path occurrences along with
path occurrence data. The parameters parts
and pathOccurrences
are parallel lists where the part and its corresponding path occurrence
are at the same index in the two lists. If a part does not have a
path occurrence, then its path occurrence should be null in the list
of path occurrences. This method returns a three dimensional array
of Persistable where the first dimension is corresponds the the used-by
parts passed in. The second dimension corresponds to the part usage
links from the used-by part. The third dimension is two elements long
where [0] is the WTPartUsageLink and [2] is the uses WTPart or WTPartMaster
if the config spec did not select an iteration of the uses part.
getUsesWTPartsWithOccurrences
in interface WTPartService
parts
- Ordered list of used-by
parts.pathOccurrences
- Ordered list of path occurrences whose order corresponds to the order of the parts.productConfiguration
- The product configuration being navigated. This is used as the config spec and to get the path occurrence data.
WTException
public Persistable[][][] getUsesWTPartsWithOccurrences(WTList parts, List pathOccurrences, WTProductInstance2 productInstance) throws WTException
used-by
parts to their uses
part masters and applies a ConfigSpec
to select the iterations
of the uses parts. Also includes uses and path occurrences along with
path occurrence data. The parameters parts
and pathOccurrences
are parallel lists where the part and its corresponding path occurrence
are at the same index in the two lists. If a part does not have a
path occurrence, then its path occurrence should be null in the list
of path occurrences. This method returns a three dimensional array
of Persistable where the first dimension is corresponds the the used-by
parts passed in. The second dimension corresponds to the part usage
links from the used-by part. The third dimension is two elements long
where [0] is the WTPartUsageLink and [2] is the uses WTPart or WTPartMaster
if the config spec did not select an iteration of the uses part.
getUsesWTPartsWithOccurrences
in interface WTPartService
parts
- Ordered list of used-by
parts.pathOccurrences
- Ordered list of path occurrences whose order corresponds to the order of the parts.productInstance
- The product instance being navigated. This is used as the config spec and to get the path occurrence data.
WTException
public QueryResult getUsesWTPartsWithOccurrences(WTPart part, ConfigSpec configSpec) throws WTException
ConfigSpec
to the result of navigating the WTPartUsageLink
along the
uses role; returns a QueryResult
of Persistable[]
,
in which the WTPartUsageLink
s are at position 0 (and
their occurrenceVector is populated with occurrences), the corresponding
WTPart
s (or WTPartMaster
s if there is no corresponding
part) in position 1.
getUsesWTPartsWithOccurrences
in interface WTPartService
part
- The WTPart to navigate.configSpec
- The ConfigSpec to use to filter the iterations for the masters used.
WTException
public QueryResult getUsesWTPartsWithOccurrences(WTPart part, ConfigSpec configSpec, PartPathOccurrence subPathOccurrence) throws WTException
ConfigSpec
to the result of navigating the WTPartUsageLink
along the
uses role; returns a QueryResult
of Persistable[]
,
in which the WTPartUsageLink
s are at position 0 (and
their occurrenceVector is populated with occurrences), the corresponding
WTPart
s (or WTPartMaster
s if there is no corresponding
part) in position 1.
getUsesWTPartsWithOccurrences
in interface WTPartService
part
- The WTPart to navigate.configSpec
- The ConfigSpec to use to filter the iterations for the masters used.subPathOccurrence
- An array of UsesOccurrence
objects that is used to find the relevant PathOccurrence
objects that should be returned.
WTException
public QueryResult getUsesWTPartsWithOccurrences(WTPart part, WTProductConfiguration productConfiguration, PartPathOccurrence subPathOccurrence) throws WTException
ConfigSpec
to the result of navigating the WTPartUsageLink
along the
uses role; returns a QueryResult
of Persistable[]
,
in which the WTPartUsageLink
s are at position 0 (and
their occurrenceVector is populated with occurrences), the corresponding
WTPart
s (or WTPartMaster
s if there is no corresponding
part) in position 1.
getUsesWTPartsWithOccurrences
in interface WTPartService
part
- The WTPart to navigate.productConfiguration
- The ConfigSpec to use to filter the iterations for the masters used.subPathOccurrence
- An array of UsesOccurrence
objects that is used to find the relevant PathOccurrence
objects that should be returned.
WTException
public QueryResult getUsesWTPartsWithOccurrences(WTPart part, WTProductInstance2 productInstance, PartPathOccurrence subPathOccurrence) throws WTException
ConfigSpec
to the result of navigating the WTPartUsageLink
along the
uses role; returns a QueryResult
of Persistable[]
,
in which the WTPartUsageLink
s are at position 0 (and
their occurrenceVector is populated with occurrences), the corresponding
WTPart
s (or WTPartMaster
s if there is no corresponding
part) in position 1.
getUsesWTPartsWithOccurrences
in interface WTPartService
part
- The WTPart to navigate.productInstance
- The ConfigSpec to use to filter the iterations for the masters used.subPathOccurrence
- An array of UsesOccurrence
objects that is used to find the relevant PathOccurrence
objects that should be returned.
WTException
public QueryResult getUsesWTPartsWithAllOccurrences(WTPart part, ConfigSpec configSpec) throws WTException
ConfigSpec
to the result of navigating the WTPartUsageLink
along the
uses role; returns a QueryResult
of Persistable[]
,
in which the WTPartUsageLink
s are at position 0 (and
their occurrenceVector is populated with occurrences), the corresponding
WTPart
s (or WTPartMaster
s if there is no corresponding
part) in position 1.
getUsesWTPartsWithAllOccurrences
in interface WTPartService
part
- The WTPart to navigate.configSpec
- The ConfigSpec to use to filter the iterations for the masters used.
WTException
public QueryResult getUsesWTPartsWithAllOccurrences(WTPart part, ConfigSpec configSpec, PartPathOccurrence subPathOccurrence) throws WTException
ConfigSpec
to the result of navigating the WTPartUsageLink
along the
uses role; returns a QueryResult
of Persistable[]
,
in which the WTPartUsageLink
s are at position 0 (and
their occurrenceVector is populated with occurrences), the corresponding
WTPart
s (or WTPartMaster
s if there is no corresponding
part) in position 1.
getUsesWTPartsWithAllOccurrences
in interface WTPartService
part
- The WTPart to navigate.configSpec
- The ConfigSpec to use to filter the iterations for the masters used.subPathOccurrence
- An array of UsesOccurrence
objects that is used to find the relevant PathOccurrence
objects that should be returned.
WTException
public QueryResult getUsesWTPartsWithAllOccurrences(WTPart part, WTProductConfiguration productConfiguration, PartPathOccurrence subPathOccurrence) throws WTException
ConfigSpec
to the result of navigating the WTPartUsageLink
along the
uses role; returns a QueryResult
of Persistable[]
,
in which the WTPartUsageLink
s are at position 0 (and
their occurrenceVector is populated with occurrences), the corresponding
WTPart
s (or WTPartMaster
s if there is no corresponding
part) in position 1.
getUsesWTPartsWithAllOccurrences
in interface WTPartService
part
- The WTPart to navigate.productConfiguration
- The ConfigSpec to use to filter the iterations for the masters used.subPathOccurrence
- An array of UsesOccurrence
objects that is used to find the relevant PathOccurrence
objects that should be returned.
WTException
public QueryResult getUsesWTPartsWithAllOccurrences(WTPart part, WTProductInstance2 productInstance, PartPathOccurrence subPathOccurrence) throws WTException
ConfigSpec
to the result of navigating the WTPartUsageLink
along the
uses role; returns a QueryResult
of Persistable[]
,
in which the WTPartUsageLink
s are at position 0 (and
their occurrenceVector is populated with occurrences), the corresponding
WTPart
s (or WTPartMaster
s if there is no corresponding
part) in position 1.
getUsesWTPartsWithAllOccurrences
in interface WTPartService
part
- The WTPart to navigate.productInstance
- The ConfigSpec to use to filter the iterations for the masters used.subPathOccurrence
- An array of UsesOccurrence
objects that is used to find the relevant PathOccurrence
objects that should be returned.
WTException
public QueryResult getUsesWTPartMasters(WTPart part) throws WTException
getUsesWTPartMasters
in interface WTPartService
part
- The part to navigate.
WTException
WTPartUsageLink
,
WTPartMaster
public WTSet filterPartsWithChildren(WTCollection parts) throws WTException
filterPartsWithChildren
in interface WTPartService
parts
- The colllection of WTParts to check which ones use other parts.
WTException
public PartUsesOccurrence getPartUsesOccurrence(PartPathOccurrence usedByPathOccurrence, WTProductConfiguration configuration) throws WTException
PartUsesOccurrence
associated with the given PartPathOccurence
for the as used in the given WTProductConfiguration
.
getPartUsesOccurrence
in interface WTPartService
usedByPathOccurrence
- configuration
-
WTException
public QueryResult getUsedByWTParts(WTPartMaster partMaster) throws WTException
getUsedByWTParts
in interface WTPartService
partMaster
- The part master to navigate to find those parts that use it.
WTException
WTPartUsageLink
,
WTPart
public QueryResult getReferencesWTDocumentMasters(WTPart part) throws WTException
getReferencesWTDocumentMasters
in interface WTPartService
part
- The part to get the referenced documents for.
WTException
WTPartReferenceLink
,
WTDocumentMaster
public QueryResult getDescribedByDocuments(WTPart part) throws WTException
getDescribedByDocuments
in interface WTPartService
part
-
WTException
WTPartDescribeLink
,
WTPart
,
WTDocument
,
EPMDescribeLink
,
wt.emp.EPMDocument
public QueryResult getDescribedByDocuments(WTPart part, boolean onlyOtherSides) throws WTException
getDescribedByDocuments
in interface WTPartService
part
- onlyOtherSides
-
WTException
WTPartDescribeLink
,
WTPart
,
WTDocument
,
EPMDescribeLink
,
wt.emp.EPMDocument
public QueryResult getDescribedByWTDocuments(WTPart part) throws WTException
getDescribedByWTDocuments
in interface WTPartService
part
-
WTException
WTPartDescribeLink
,
WTPart
,
WTDocument
public QueryResult getDescribedByWTDocuments(WTPart part, boolean onlyOtherSides) throws WTException
getDescribedByWTDocuments
in interface WTPartService
part
- onlyOtherSides
-
WTException
WTPartDescribeLink
,
WTPart
,
WTDocument
public QueryResult getDescribesWTParts(WTDocument document) throws WTException
getDescribesWTParts
in interface WTPartService
document
-
WTException
WTPartDescribeLink
,
WTPart
,
WTDocument
public QueryResult getDescribesWTParts(WTDocument document, boolean onlyOtherSides) throws WTException
getDescribesWTParts
in interface WTPartService
document
- onlyOtherSides
-
WTException
WTPartDescribeLink
,
WTPart
,
WTDocument
public QueryResult getAlternatesWTPartMasters(WTPartMaster partMaster) throws WTException
getAlternatesWTPartMasters
in interface WTPartService
partMaster
- WTPartMaster whose alternates are desired
WTException
WTPartAlternateLink
,
WTPartMaster
public QueryResult getAlternateForWTPartMasters(WTPartMaster partMaster) throws WTException
getAlternateForWTPartMasters
in interface WTPartService
partMaster
-
WTException
WTPartAlternateLink
,
WTPartMaster
public boolean isAnAlternateOf(WTPartMaster partMasterA, WTPartMaster partMasterB) throws WTException
isAnAlternateOf
in interface WTPartService
partMasterA
- partMasterB
-
WTException
public QueryResult getSubstitutesWTPartMasters(WTPartUsageLink usageLink) throws WTException
getSubstitutesWTPartMasters
in interface WTPartService
usageLink
- WTPartUsageLink for which substitutes are desired
WTException
WTPartSubstituteLink
,
WTPartMaster
public QueryResult getSubstituteForWTPartUsageLinks(WTPartMaster partMaster) throws WTException
getSubstituteForWTPartUsageLinks
in interface WTPartService
partMaster
-
WTException
WTPartSubstituteLink
,
WTPartMaster
public WTPartConfigSpec findWTPartConfigSpec() throws WTException
findWTPartConfigSpec
in interface WTPartService
WTException
public WTPartConfigSpec saveWTPartConfigSpec(WTPartConfigSpec a_PartConfigSpec) throws WTException
saveWTPartConfigSpec
in interface WTPartService
a_PartConfigSpec
- The WTPartConfigSpec to save.
WTException
public QueryResult getConsolidatedBOM(WTPart part) throws WTException
Returns a QueryResult of WTPartUsageLinks for the given WTPart. The
QueryResult will contain only one WTPartUsageLinks per WTPartMaster
even if the WTPart uses a WTPartMaster more than once. The Quantity
field represents the combined quantity for all the usages of a WTPartMaster
in a WTPart.
Supported API: false
getConsolidatedBOM
in interface WTPartService
part
-
WTException
WTPartMaster
,
WTPart
,
WTPartUsageLink
,
QueryResult
public QueryResult[] getBomDifferences(WTPart currentPart, WTPart previousPart) throws WTException
Compares the bill of material of the current WTPart with a previous WTPart.
The element 0 of the returned array is a QueryResult that includes includes the WTPartUsageLinks to identify the WTPartMasters that were used in the current WTPart but not the previous WTPart - i.e., the part masters that have since been added to the current part. The quanitity has been consolidated.
The element 1 of the returned array is a QueryResult that includes includes the WTPartUsageLinks to identify the WTPartMasters that were used in the previous WTPart but not the current WTPart - i.e., the part masters that have since been deleted from the current part. The quanitity has been consolidated.
The element 2 of the returned array is a QueryResult that includes
includes the WTPartUsageLinks to identify the WTPartMasters that were
used in both the current and the previous WTParts but have different
consolidated quantities.
Supported API: false
getBomDifferences
in interface WTPartService
currentPart
- previousPart
-
WTException
public Timestamp setExportDate(WTPart part, PartExportTarget target, Timestamp timestamp) throws WTException
setExportDate
in interface WTPartService
part
- The part iteration being exported to another system.target
- The name of the target where the part was exported.timestamp
- A timestamp specifying when the part was exported to another system. If null, the export date is set to the current time and date.
WTException
public Timestamp getExportDate(WTPart part, PartExportTarget target) throws WTException
getExportDate
in interface WTPartService
part
- The part iteration that was exported to another system.target
- The name of the target where the part had been exported.
WTException
public WTPart latestExport(WTPartMaster master, PartExportTarget target) throws WTException
latestExport
in interface WTPartService
master
- The part master.target
- The name of the target where the part had been exported.
WTException
private QueryResult getUsesWTPartsFromLinks(QueryResult partUsageLinks, WTPartConfigSpec configSpec) throws WTException
partUsageLinks
- configSpec
-
WTException
public void getMultilevelBomCompare(WTPartMaster part1, WTPartConfigSpec spec1, WTPartMaster part2, WTPartConfigSpec spec2, int maxDepth, MultilevelBomCompareVisitor aVisitor) throws WTException, SAXException
getMultilevelBomDifferences
. For customization this method uses
a MultilevelBomCompareVisitor.
getMultilevelBomCompare
in interface WTPartService
part1
- The first part being compared. It will be compared to part2 using spec1 to navigate its part structure.spec1
- The config spec being used to navigate the part structure of part1.part2
- The second part being compared. It will be compared to part1 using spec2 to navigate its part structure.spec2
- The config spec being used to navigate the part structure of part2.maxDepth
- The maximum number of levels down in the part structure to navigate as the comparison is done.aVisitor
- The visitor used to navigate the two product structures that are being compared. Customization of the data available for the report can be done by passing different visitors. MultilevelBomCompareVisitor
is the reference implementation supplied out-of-the-box.
WTException
SAXException
MultilevelBomCompareVisitor
public void getMultilevelBomCompare(WTPartMaster part1, ConfigSpec spec1, WTPartMaster part2, ConfigSpec spec2, int maxDepth, MultilevelBomCompareVisitor aVisitor) throws WTException, SAXException
getMultilevelBomDifferences
. For customization this method uses
a MultilevelBomCompareVisitor
.
getMultilevelBomCompare
in interface WTPartService
part1
- The first part being compared. It will be compared to part2 using spec1 to navigate its part structure.spec1
- The config spec being used to navigate the part structure of part1.part2
- The second part being compared. It will be compared to part1 using spec2 to navigate its part structure.spec2
- The config spec being used to navigate the part structure of part2.maxDepth
- The maximum number of levels down in the part structure to navigate as the comparison is done.aVisitor
- The visitor used to navigate the two product structures that are being compared. Customization of the data available for the report can be done by passing different visitors. MultilevelBomCompareVisitor
is the reference implementation supplied out-of-the-box.
WTException
SAXException
protected void getMultilevelBomDifferences(WTPart part1, WTPartConfigSpec spec1, WTPart part2, WTPartConfigSpec spec2, int maxDepth, int currentDepth, MultilevelBomCompareVisitor aVisitor) throws WTException, SAXException
part1
- The first part being compared. It will be compared to part2 using spec1 to navigate its part structure.spec1
- The config spec being used to navigate the part structure of part1.part2
- The second part being compared. It will be compared to part1 using spec2 to navigate its part structure.spec2
- The config spec being used to navigate the part structure of part2.maxDepth
- The maximum number of levels down in the part structure to navigate as the comparison is done.currentDepth
- The current depth of product structure traversal which will be compared to maxDepth to determine if it is time to stop.aVisitor
- The visitor used to navigate the two product structures that are being compared. Customization of the data available for the report can be done by passing different visitors. MultilevelBomCompareVisitor
is the reference implementation supplied out-of-the-box.
WTException
SAXException
MultilevelBomCompareVisitor
public void getMultilevelWhereUsed(WTPart part, WTPartConfigSpec spec, Navigator navigator, MultilevelWhereUsedVisitor visitor) throws WTException, WTPropertyVetoException
getMultilevelWhereUsed
in interface WTPartService
part
- The part whose usage is being reported.spec
- The spec used to navigate the product structures where this part may be used.navigator
- A navigator used to traverse up the product structure.visitor
- A visitor used for each node of the product structure.
WTException
WTPropertyVetoException
MultilevelBomCompareVisitor
public void getMultilevelWhereUsed(WTPart part, Navigator navigator, MultilevelWhereUsedVisitor visitor) throws WTException, WTPropertyVetoException
getMultilevelWhereUsed
in interface WTPartService
part
- The part whose usage is being reported.navigator
- A navigator used to traverse up the product structure.visitor
- A visitor used for each node of the product structure.
WTException
WTPropertyVetoException
MultilevelBomCompareVisitor
public WTProductConfiguration littlePut(WTProductConfiguration productConfiguration, WTPart part) throws WTException
littlePut
in interface WTPartService
productConfiguration
- part
-
WTException
public WTProductConfiguration littlePop(WTProductConfiguration productConfiguration, Persistable startingNode, boolean repop, ConfigSpec configSpec) throws WTException
littlePop
in interface WTPartService
productConfiguration
- startingNode
- repop
- configSpec
-
WTException
public BaselineConfigurationOverride littleOver(WTProductConfiguration productConfiguration, PathOccurrence path, WTPart part) throws WTException
littleOver
in interface WTPartService
productConfiguration
- path
- part
-
WTException
public BaselineConfigurationOverride littleReover(BaselineConfigurationOverride override, WTPart newPart) throws WTException
littleReover
in interface WTPartService
override
- newPart
-
WTException
public WTProductConfiguration littleRemover(WTProductConfiguration productConfiguration, BaselineConfigurationOverride override) throws WTException
littleRemover
in interface WTPartService
productConfiguration
- override
-
WTException
public SerialNumberMapping littleMap(WTProductInstance2 productInstance, PathOccurrence path, WTProductInstanceMaster instanceToAllocate) throws WTException
littleMap
in interface WTPartService
productInstance
- path
- instanceToAllocate
-
WTException
public SerialNumberMapping littleMap(WTProductInstance2 productInstance, PathOccurrence path, WTSerialNumberedPartInstance instanceToAllocate) throws WTException
littleMap
in interface WTPartService
productInstance
- path
- instanceToAllocate
-
WTException
public SerialNumberMapping littleRemap(SerialNumberMapping mapping, WTProductInstanceMaster newInstance) throws WTException
littleRemap
in interface WTPartService
mapping
- newInstance
-
WTException
public SerialNumberMapping littleRemap(SerialNumberMapping mapping, WTSerialNumberedPartInstance newInstance) throws WTException
littleRemap
in interface WTPartService
mapping
- newInstance
-
WTException
public WTProductInstance2 littleUnmap(WTProductInstance2 productInstance, SerialNumberMapping mapping) throws WTException
littleUnmap
in interface WTPartService
productInstance
- mapping
-
WTException
public WTProductInstance2 littleChange(WTProductInstance2 productInstance, WTProductConfiguration productConfiguration) throws WTException
littleChange
in interface WTPartService
productInstance
- productConfiguration
-
WTException
public Vector getPartUsesOccurrences(Vector links) throws WTException
getPartUsesOccurrences
in interface WTPartService
links
-
WTException
public WTProductConfiguration copyWTProductConfiguration(WTProductConfiguration configuration, String newConfigurationName) throws WTException
copyWTProductConfiguration
in interface WTPartService
configuration
- newConfigurationName
-
WTException
public WTProductInstance2 copyWTProductInstance2(WTProductInstance2 baseInstance) throws WTException
copyWTProductInstance2
in interface WTPartService
baseInstance
-
WTException
public WTProductInstance2 saveWTProductInstance2Copy(WTProductInstance2 baseInstance, WTProductInstance2 newInstance) throws WTException
saveWTProductInstance2Copy
in interface WTPartService
baseInstance
- newInstance
-
WTException
public Enumeration retrieveBomInformation(WTPart part) throws LineNumberUsageException, WTException
retrieveBomInformation
in interface WTPartService
part
-
LineNumberUsageException
WTException
public Enumeration[] retrieveBomDifferences(WTPart currentPart, WTPart previousPart) throws LineNumberUsageException, WTException
Element 0 of the returned array is an Enumeration of PartUsageInfo objects which identify the WTPartMaster usages that apply for the current WTPart but not the previous WTPart - i.e., the part master usages that have since been added to the current part. The quanitity are consolidated if line numbers are not used.
Element 1 of the returned array is an Enumeration of PartUsageInfo objects which identify the WTPartMaster usages that apply for the previous WTPart but not the current WTPart - i.e., the part master usages that have since been removed from the current part. The quanitity are consolidated if line numbers are not used.
Element 2 of the returned array is an Enumeration of PartUsageInfo objects which identify the usages that have had quantity changes or reference designator changes given the current WTPart and the previous WTPart. The quanitity are consolidated if line numbers are not used.
Element 3 of the returned array is an Enumeration of PartUsageInfo
objects which identify the usages that have not changed given the
current WTPart and the previous WTPart. The quanitity are consolidated
if line numbers are not used.
Supported API: false
retrieveBomDifferences
in interface WTPartService
currentPart
- previousPart
-
LineNumberUsageException
WTException
public Enumeration retrieveBomInformation(WTPart part, boolean ignoreLineNumbers) throws LineNumberUsageException, WTException
retrieveBomInformation
in interface WTPartService
part
- ignoreLineNumbers
- If ignoreLineNumber is true, line numbers are ignored and quantities are consolidated.
LineNumberUsageException
WTException
public Enumeration[] retrieveBomDifferences(WTPart currentPart, WTPart previousPart, boolean ignoreLineNumbers) throws LineNumberUsageException, WTException
Element 0 of the returned array is an Enumeration of PartUsageInfo objects which identify the WTPartMaster usages that apply for the current WTPart but not the previous WTPart - i.e., the part master usages that have since been added to the current part. The quanitity are consolidated if line numbers are not used or are to be ignored.
Element 1 of the returned array is an Enumeration of PartUsageInfo objects which identify the WTPartMaster usages that apply for the previous WTPart but not the current WTPart - i.e., the part master usages that have since been removed from the current part. The quanitity are consolidated if line numbers are not used or are to be ignored.
Element 2 of the returned array is an Enumeration of PartUsageInfo objects which identify the usages that have had quantity changes or reference designator changes given the current WTPart and the previous WTPart. The quanitity are consolidated if line numbers are not used or are to be ignored.
Element 3 of the returned array is an Enumeration of PartUsageInfo
objects which identify the usages that have not changed given the
current WTPart and the previous WTPart. The quanitity are consolidated
if line numbers are not used.
Supported API: false
retrieveBomDifferences
in interface WTPartService
currentPart
- previousPart
- ignoreLineNumbers
-
LineNumberUsageException
WTException
public WTPartMaster changeWTPartMasterIdentity(WTPartMaster part_master, String name, String number, WTOrganization org) throws WTException, WTPropertyVetoException, UniquenessException
changeWTPartMasterIdentity
in interface WTPartService
part_master
- name
- number
- org
-
WTException
WTPropertyVetoException
UniquenessException
public ApplicationContext getApplicationContext()
getApplicationContext
in interface ApplicationContextChild
public void setApplicationContext(ApplicationContext a_ApplicationContext) throws WTPropertyVetoException
setApplicationContext
in interface ApplicationContextChild
a_ApplicationContext
-
WTPropertyVetoException
protected WTKeyedMap navigateUses(WTCollection parts) throws WTException
WTException
protected WTSet getMasters(WTKeyedMap map) throws WTException
WTException
protected WTValuedMap filteredIterationsKeyedByMaster(WTCollection masters, ConfigSpec configSpec) throws WTException
WTException
protected Persistable[][] createUsages(WTCollection links, WTValuedMap masterPartMap) throws WTException
WTException
protected void copyWTPartSubstituteLinks(WTCollection partUsageLinks, WTKeyedMap evtMap) throws WTException
WTException
protected void checkConfigSpecReference(String referenceAttributeName, WTCollection coll) throws WTException
WTException
protected void deleteRelatedUsesOccurrences(WTCollection coll) throws WTException
WTException
private Hashtable consolidateUsageLinks(QueryResult usageLinks) throws WTException
WTException
private QueryResult consolidateBOM(QueryResult bom) throws WTException
The input BOM consist of rows of Persistable[2], where the first element contains the WTPartUsageLink and the second element contains the WTPart being used.
This method is used by multi level BOM compare methods.
TODO: refactor this with methods consolidateUsageLinks and getConsolidatedBOM into a single method
bom
- the unconsolidated BOM
WTException
private QueryResult addOccurrenceData(QueryResult original, PathOccurrenceContext context, Class occurrenceDataClass) throws WTException
WTException
private boolean occurrencePathsMayExist(PartPathOccurrence path)
private ConfigSpec getConfigSpec(WTProductConfiguration productConfiguration) throws WTException
WTException
private ConfigSpec getConfigSpec(WTProductInstance2 productInstance) throws WTException
WTException
private void assignDomain(Persistable p) throws WTException
WTException
private void assignConfiguration(WTSerialNumberedPartInstance instance) throws WTException
WTException
private void assignContainerDefaultDomain(Persistable p) throws WTException
WTException
private PathOccurrenceContext refreshPathOccurrenceContextVersion(PathOccurrenceContext poc) throws WTException
WTException
private PathOccurrenceData refreshPathOccurrenceData(PathOccurrenceContext poc, PathOccurrenceData pod) throws WTException
WTException
private void copyIBAValues(IBAHolder original, IBAHolder copy) throws WTException
WTException
protected WTPartConfigSpec intFindWTPartConfigSpec() throws WTException
WTException
protected WTSerialNumberedPartInstance getOrStoreSNPI(WTSerialNumberedPartInstance snpi) throws WTException
WTException
protected SerialNumberMapping intLittleSNPIMap(WTProductInstance2 productInstance, PathOccurrence path, WTSerialNumberedPartInstance instanceToAllocate) throws WTException
WTException
public SerialNumberMapping intLittleSNPIRemap(SerialNumberMapping mapping, WTSerialNumberedPartInstance newInstance) throws WTException
WTException
protected void getMultilevelBomDifferences(WTPart part1, WTProductInstance2 productInstance1, SerialNumberedConfiguredInstanceConfigSpec spec1, WTPart part2, WTProductInstance2 productInstance2, SerialNumberedConfiguredInstanceConfigSpec spec2, PartPathOccurrence path, int maxDepth, int currentDepth, MultilevelBomCompareVisitor aVisitor) throws WTException, SAXException
part1
- The first part being compared. It will be compared to part2 using spec1 to navigate its part structure.productInstance1
- The product instance being used to navigate the part structure of part1.spec1
- part2
- The second part being compared. It will be compared to part1 using spec2 to navigate its part structure.productInstance2
- The product instance being used to navigate the part structure of part2.spec2
- path
- maxDepth
- The maximum number of levels down in the part structure to navigate as the comparison is done.currentDepth
- The current depth of product structure traversal which will be compared to maxDepth to determine if it is time to stop.aVisitor
- The visitor used to navigate the two product structures that are being compared. Customization of the data available for the report can be done by passing different visitors. MultilevelBomCompareVisitor
is the reference implementation supplied out-of-the-box.
WTException
SAXException
MultilevelBomCompareVisitor
protected void getMultilevelBomDifferences(WTPart part1, WTProductConfiguration productConfiguration1, WTPart part2, WTProductConfiguration productConfiguration2, PartPathOccurrence path, int maxDepth, int currentDepth, MultilevelBomCompareVisitor aVisitor) throws WTException, SAXException
part1
- The first part being compared. It will be compared to part2 using spec1 to navigate its part structure.productConfiguration1
- The product instance being used to navigate the part structure of part1.part2
- The second part being compared. It will be compared to part1 using spec2 to navigate its part structure.productConfiguration2
- The product instance being used to navigate the part structure of part2.path
- maxDepth
- The maximum number of levels down in the part structure to navigate as the comparison is done.currentDepth
- The current depth of product structure traversal which will be compared to maxDepth to determine if it is time to stop.aVisitor
- The visitor used to navigate the two product structures that are being compared. Customization of the data available for the report can be done by passing different visitors. MultilevelBomCompareVisitor
is the reference implementation supplied out-of-the-box.
WTException
SAXException
MultilevelBomCompareVisitor
private QueryResult getUsesWTPartsFromLinks(QueryResult partUsageLinks, ConfigSpec configSpec) throws WTException
partUsageLinks
- configSpec
-
WTException
protected void getMultilevelBomDifferences(WTPart part1, BaselineConfigurationConfigSpec spec1, WTPart part2, BaselineConfigurationConfigSpec spec2, PartPathOccurrence path, int maxDepth, int currentDepth, MultilevelBomCompareVisitor aVisitor) throws WTException, SAXException
WTException
SAXException
public QueryResult getSeparateUsesWTPartsWithOccurrences(QueryResult initialResult) throws WTException
WTException
public QueryResult getSeparateUsesWTPartsWithOccurrences(QueryResult initialResult, WTProductInstance2 currentInstance, SerialNumberedConfiguredInstanceConfigSpec configSpec) throws WTException
WTException
protected void checkReflexive(ObjectToObjectLink link) throws WTException
WTException
protected static QueryResult filterOriginalCopiesInBuildRules(WTPart sourcePart, QueryResult buildRuleLinks)
protected static WTObject getOtherSideObject(Object link, Persistable persistableObj)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |