Package com.ptc.core.ocmp.service
Interface ObjComparisonService
- All Known Implementing Classes:
StandardObjComparisonService
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
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionbooleanareAttrsConfiguredForDomainType(WTReference domainObjRef) Determines whether any attributes are configred in the configuration resource for the type represented by the passed in reference object.booleanareLinksConfiguredForDomainType(WTReference domainObjRef) Determines whether any links (associations) are configured in the configuration resource for the object type represented by the passed in reference object.getLinksConfiguredForType(WTReference domainObjRef) Returns any links (associations) configured in the configuration resource for the domain type represented by the passed in reference object.booleanisDomainTypeSupportedForComparison(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 Details
-
isDomainTypeSupportedForComparison
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.
The domain type (or one of its parent types) in context must be configured in this resource for its objects to be supported for comparison by the comparison service. If aSimpleComparisonSpecis 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.AdvancedComparisonSpecon 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).
Supported API: true- Parameters:
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.- Returns:
- trueif the type is supported for comparison; false otherwise.
- Throws:
WTException- See Also:
-
Business Admin's Guide for more information on logical type identifiers.
-
areAttrsConfiguredForDomainType
Determines whether any attributes are configred in the configuration resource for the type represented by the passed in reference object.
Supported API: true- Parameters:
domainObjRef-- Returns:
- true if any attributes are configured; false otherwise.
- Throws:
WTException
-
areLinksConfiguredForDomainType
Determines whether any links (associations) are configured in the configuration resource for the object type represented by the passed in reference object.
Supported API: true- Parameters:
domainObjRef-- Returns:
- true if any links are configured; false otherwise.
- Throws:
WTException
-
getLinksConfiguredForType
Returns any links (associations) configured in the configuration resource for the domain type represented by the passed in reference object.
Supported API: true- Parameters:
domainObjRef-- Returns:
- the set of configured links for the domain type represented by the reference object; empty set if no configured links identified.
- Throws:
WTException
-