Package com.ptc.windchill.esi.rnd
Interface ESIEffectivityHandler
- All Known Implementing Classes:
ESIEffectivityHandlerImpl
public interface ESIEffectivityHandler
Interface for obtaining information about the relationships between effectivities and EffManagedVersion objects.
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptiongetClassForEffectivityType(int type) Returns the Class instance corresponding to the type of effectivity that is passed to it.Eff[]Fetches the latest date, serial number and lot number effectivities associated with a given object (of type EffManagedVersion), stores them in an array of Effs and returns the array to the caller.getLatestEffectivities(EffManagedVersion emv, String type) Fetches the latest date, serial number and lot number effectivities associated with a given object (of type EffManagedVersion), stores them in an array of Eff instances and returns the array to the caller.Returns the latest non-product-specific Date Effectivity that is associated with an object.getLatestEffectivity(EffManagedVersion emv, int type) Returns the latest effectivity of a given type that is associated with a given object (of type EffManagedVersion).getLatestEffectivity(EffManagedVersion emv, int type, String effType) Returns the latest Effectivity of a given type that is associated with a given object.voidMethod to initialize some variables.booleanisCompEffReleased(WTPart part, Collection<WTPart> componentParts, ESITargetAssociation assn, WTPart root, NavigationCriteria navCriteria) Lets the caller know if the latest serial or lot effectivity associated with any of the components in the passed BOM is already published.booleanGiven an ESITargetAssociation containing an Eff and an ESITarget, returns true if the Eff has been released to the ESITarget.booleanisReleased(EffManagedVersion emv, ESITarget target, int type) Returns true if the latest effectivity of a given type associated with a given object (of type EffManagedVersion), is also the effectivity (of the same type) that was last exported to a given distribution target.voidsetBuilder(VdbBuilder builder) Sets the attribute that holds a reference to the VdbBuilder instance.intvalidateUnitEffOnChangeable(WTPart part, Map<Releasable, String> changeables, Map<WTPart, String> contextIterations, NavigationCriteria navCriteria) Lets the caller know if the latest unit effectivity associated with the passed part is valid.
-
Method Details
-
getLatestEffectivity
Returns the latest non-product-specific Date Effectivity that is associated with an object.
Supported API: true- Parameters:
part- The part whose effectivity is to be obtained- Returns:
- Eff
- Throws:
WTException
-
getLatestEffectivity
Returns the latest effectivity of a given type that is associated with a given object (of type EffManagedVersion).
Supported API: true- Parameters:
emv- EffManagedVersion instance whose latest effectivity of the given type is to be fetched.type- This is either DATE_EFFECTIVITY_TYPE, SERIAL_NUMBER_EFFECTIVITY_TYPE or LOT_NUMBER_EFFECTIVITY_TYPE, according as the latest Date, Serial Number or Lot Number effectivity associated with the given object is to be fetched respectively.- Returns:
- Eff
- Throws:
WTException
-
getLatestEffectivities
Fetches the latest date, serial number and lot number effectivities associated with a given object (of type EffManagedVersion), stores them in an array of Effs and returns the array to the caller.
Supported API: true- Parameters:
emv- EffManagedVersion instance for which to fetch the latest date, serial number and lot number effectivities.- Returns:
- Eff[]
- Throws:
ESIRendererException
-
isReleased
Given an ESITargetAssociation containing an Eff and an ESITarget, returns true if the Eff has been released to the ESITarget.
Supported API: true- Parameters:
assn-- Returns:
- boolean
-
isReleased
Returns true if the latest effectivity of a given type associated with a given object (of type EffManagedVersion), is also the effectivity (of the same type) that was last exported to a given distribution target.
Supported API: true- Parameters:
emv- EffManagedVersion instance for which to determine whether the effectivity has been released or not.target- ESITarget instance representing the given distribution target.type- Specifies the type of effectivity in question - it takes any of the named constants defined in this interface for its value.- Returns:
- boolean
-
getClassForEffectivityType
Returns the Class instance corresponding to the type of effectivity that is passed to it.
Supported API: true- Parameters:
type- Specifies the type of effectivity - this could take any of the named constants (such as DATE_EFFECTIVITY_TYPE, SERIAL_NUMBER_EFFECTIVITY_TYPE or LOT_NUMBER_EFFECTIVITY_TYPE) defined in this interface for its value- Returns:
- Class
-
initialize
void initialize()Method to initialize some variables.
Supported API: true -
setBuilder
Sets the attribute that holds a reference to the VdbBuilder instance.
Supported API: true- Parameters:
builder- Reference to the VdbBuilder instance that the attribute is to be set to.
-
getLatestEffectivities
Fetches the latest date, serial number and lot number effectivities associated with a given object (of type EffManagedVersion), stores them in an array of Eff instances and returns the array to the caller. Some of the elements in the output array could be null, depending on whether or not the given object has the given type of effectivity associated with it.
Supported API: true- Parameters:
emv- EffManagedVersion instance Object iteration (of type EffManagedVersion) whose effectivity needs to be returned.type-- Returns:
- Throws:
ESIRendererException
-
getLatestEffectivity
Returns the latest Effectivity of a given type that is associated with a given object.
Supported API: true- Parameters:
emv- Object iteration (of type EffManagedVersion) whose effectivity needs to be returned.type- This is either ESIEffectivityHandler.DATE_EFFECTIVITY_TYPE, ESIEffectivityHandler.SERIAL_NUMBER_EFFECTIVITY_TYPE or ESIEffectivityHandler.LOT_NUMBER_EFFECTIVITY_TYPE, according as the latest Date, Serial Number or Lot Number effectivity associated with the given object is to be fetched respectively.effType- This is currently not used. The parameter merely serves to distinguish this method from the other overloaded versions.- Returns:
- List of Eff objects of the input type associated with the input object
- Throws:
WTException
-