|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.services.StandardManager
com.ptc.core.ocmp.service.StandardObjComparisonService
public class StandardObjComparisonService
The default implementation of the object comparison service. It's main job is to identify the comparison operation and delegate the actual comparison to any of the comparators configured in the object comparison configuration resource.
Use the newStandardObjComparisonService static factory method(s),
not the StandardObjComparisonService 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: false
ObjComparisonHelper,
ComparisonSpec,
ComparisonResult,
com.ptc.core.ocmp.framework.ComfigResourceReader,
com.ptc.core.ocmp.framework.ComfigResourceHandler,
Serialized Form| 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. |
| Methods inherited from class wt.services.StandardManager |
|---|
getManagerService, getManagerStatus, getName, getStartupType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public 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).
compareDomainObjs in interface ObjComparisonServicespec - 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
public 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).
isDomainTypeSupportedForComparison in interface ObjComparisonServicelogicalTypeId - 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.
public boolean areAttrsConfiguredForDomainType(WTReference domainObjRef)
throws WTException
areAttrsConfiguredForDomainType in interface ObjComparisonServicedomainObjRef -
WTException
public boolean areLinksConfiguredForDomainType(WTReference domainObjRef)
throws WTException
areLinksConfiguredForDomainType in interface ObjComparisonServicedomainObjRef -
WTException
public Set<String> getLinksConfiguredForType(WTReference domainObjRef)
throws WTException
getLinksConfiguredForType in interface ObjComparisonServicedomainObjRef -
WTException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||