|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ObjComparisonService
This service provides support for comparison operations for business
objects given a specific set of attributes and links / associations to
consider.
Supported API: true
Extendable: false
ObjComparisonHelper,
ComparisonSpec,
ComparisonResult| Method Summary | |
|---|---|
boolean |
areAttrsConfiguredForDomainType(WTReference domainObjRef)
Determines whether any attributes are configred in the configuration resource for the type represented by the passed in reference object. |
boolean |
areLinksConfiguredForDomainType(WTReference domainObjRef)
Determines whether any links (associations) are configured in the configuration resource for the object type represented by the passed in reference object. |
ComparisonResult |
compareDomainObjs(ComparisonSpec spec)
Compares business objects specified as part of a ComparisonSpec. |
Set<String> |
getLinksConfiguredForType(WTReference domainObjRef)
Returns any links (associations) configured in the configuration resource for the domain type represented by the passed in reference object. |
boolean |
isDomainTypeSupportedForComparison(String logicalTypeId)
Identifies whether the type specified is supported for comparison by the comparison service, which in turn depends on whether the domain type (or any of its parent type) is configured in the object comparison configuration resource. |
| Method Detail |
|---|
ComparisonResult compareDomainObjs(ComparisonSpec spec)
throws com.ptc.core.ocmp.framework.ConfigResourceException,
WTException
ComparisonSpec.
The results are tailored as per the various options specified as part
of the ComparisonSpec.
SimpleComparisonSpec is to be used as
the comparison specification object for the comparison service, any
attributes and links (associations) to be compared as part of the
comparison operation must be configured in the resource too. An AdvancedComparisonSpec on the other hand
allows such specification to be specified at runtime, and these values
take precedence over the values configured in the resource (if any).
spec - A non-null ComparisonSpec
instance must be specified for a successful comparison operation.
The list of domain objects to be compared must be non null too and
must contain at least 2 objects specified for comparison.
ComparisonResult instance that aggregates and
organizes the various comparison results, in a fashion such that the
results are easily and efficiently retrieved and / or queried.
NullPointerException - when the spec is null
IllegalArgumentException - when the ComparisonSpec
instance has less than 2 objects specified for comparison.
com.ptc.core.ocmp.framework.ConfigResourceException - when an
error is encountered while accesing the configuration resource.
com.ptc.core.ocmp.framework.ConfigResourceException
WTExceptionComparisonSpec,
ComparisonResult
boolean isDomainTypeSupportedForComparison(String logicalTypeId)
throws WTException
SimpleComparisonSpec is to be
used as the comparison specification object for the comparison service,
any attributes and links (associations) to be compared as part of
the comparison operation must be configured in the resource too. AdvancedComparisonSpec on the other hand allows such specification
to be specified at runtime, and these values take precedence over
the values configured in the resource (if any).
logicalTypeId - the logical type identifier (form) of the type
which is to be checked for comparison support. The logical type identifier
universally identifies a type in windchill using a logical identifier/form.
WTExceptionBusiness Admin's Guide for more information on logical
type identifiers.
boolean areAttrsConfiguredForDomainType(WTReference domainObjRef)
throws WTException
domainObjRef -
WTException
boolean areLinksConfiguredForDomainType(WTReference domainObjRef)
throws WTException
domainObjRef -
WTException
Set<String> getLinksConfiguredForType(WTReference domainObjRef)
throws WTException
domainObjRef -
WTException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||