Package com.ptc.windchill.esi.ov
Class RuleMemberActionLinkRenderer
java.lang.Object
com.ptc.windchill.esi.rnd.BasicESIRenderer
com.ptc.windchill.esi.ov.RuleMemberActionLinkRenderer
- All Implemented Interfaces:
ESIRenderer
This class renders the output of Link between Choice Rule and its action member.
ChoiceMappableChoiceLink in case of Basic Rules.
RuleMemberActionLink in case of Conditional Rules.
Supported API: true
Extendable: true
ChoiceMappableChoiceLink in case of Basic Rules.
RuleMemberActionLink in case of Conditional Rules.
Supported API: true
Extendable: true
-
Field Summary
Fields inherited from class com.ptc.windchill.esi.rnd.BasicESIRenderer
adapterName, authentication, currentTarget, DELIMITER, objectTypeDefs, OPTIONSVARIANTS_HELPER_CLASS_STRING, SEPARATOR, taskHelper, XML_META_NAME -
Method Summary
Modifier and TypeMethodDescriptionprotected com.infoengine.object.factory.ElementadjustRuleMemberActionLinkElement(com.infoengine.object.factory.Element element, String groupName, Persistable memberActionLink, ChoiceRule choiceRule, Choice choice, Option option, Collection<ESITarget> targets) Allow subclasses to fix the contents of an element.protected voidPopulates the associated VdbBuilder instance with the response data for Rule Member Action link.protected StringgetActionName(ChoiceRule choiceRule, ObjectToObjectLink actionMemberLink) Allow subclasses to fix the rule member action string.voidsetData(Map<ChoiceRule, Set<RuleMemberActionBean>> _ruleMemberLinks, Persistable _pbo, Map<ChoiceRule, ChoiceRule> _currentPreviousChoiceRuleMap, Collection<ChoiceRule>[] _choiceRuleDiff, ESITarget _target, OptionSet previousExportedOptionSet) Establish the renderer's state so that it can process requests.protected voidvalidate()Method ensures that the data needed to execute this renderer is passed in correctly.Methods inherited from class com.ptc.windchill.esi.rnd.BasicESIRenderer
addAtt, adjustConfigurableAndCollapsibleAtts, adjustDateEffCxt, adjustDateEffectivities, adjustEffectivities, adjustLotNumberEffCxt, adjustLotNumberEffectivities, adjustObjectID, adjustSerialNumberEffCxt, adjustSerialNumberEffectivities, adjustTargets, buildUfidString, evaluateBussinessRule, fetchLatestEffectivities, formatDateEffectivityElement, getAdapterName, getAssignedVariantSpec, getAssignedVariantSpec, getAUMRenderer, getAuth, getBuilder, getEffectivityElementMap, getEffectivityHandler, getEffectivityTargetAttributes, getElements, getERPMaterialAttributeList, getERPMaterialAttributeList, getERPMaterialTargetAttributes, getFormatedDate, getGroupInfo, getGroupInfo, getGroupInfo, getMap, getMap, getMapInfo, getMapInfo, getMapInfo, getNavigationFilter, getObjectTypeDefs, getPlantSpecificAttributeList, getPlantSpecificAttributeList, getPlantSpecificTargetAttributes, getPreviousObject, getPreviousPublishedEffectivity, getTargetsFromAssns, getTargetUtility, getTransactionUtility, getUnwantedAttributes, getVersionRefObjectRefMap, getWCAttributeList, getWCAttributeList, initEffectivityHandler, initializeElementForGroup, invokeQueryTask, invokeQueryTask, invokeQueryTask, invokeQueryTaskForObjects, isExpressionToBePublished, isGroupAvailable, isPublishAssocOptionSetFlagEnabled, mapDateEffectivities, mapEffectivities, mapEffectivityAttributes, mapEffectivityElement, mapEffectivityParentElement, mapElement, mapElement, mapElement, mapElementWithEffectivityAttrs, mapLotNumberEffectivities, mapObject, mapObject, mapSerialNumberEffectivities, mergeElements, overrideAttrValue, populateDateEffectivityInfo, populateEffectivityInfo, processBussinessRulesWithAnd, processBussinessRuleValidationResultSet, processNoMatchingVersionFound, removeAttributesNotRequired, removeUnwantedEffectivityAttributes, render, renderAssociatedSkinnyVariantSpec, renderAssociatedVariantSpec, renderAssocOptionSetLinks, renderAssocSkinnyVariantSpec, renderAssocVariantSpec, renderATONavigationFilter, renderChoiceRules, renderEffectivities, renderEffectivities, renderExpressions, renderOptionSets, renderRoleBObjectOfModuleVariantLink, setAttrValue, setAttrValue, setAttrValues, setBuilder, setCurrentTarget, setCurrentTarget, setCurrentTargetFromTgtAssocs, setEffectivityHandler, setObjectTypeDefs, setObjectTypeDefs, setObjectTypeDefsFromObj, setStartEndEffAttr, setTransactionUtility, shallPublishAssocOptionSet, shouldRenderEffectivityElementInPartElement, shouldUseOldEffectivityBehaviour, storeCurrentAndItsPreviousObject, storeCurrentAndItsPreviousObject
-
Method Details
-
buildGroups
Populates the associated VdbBuilder instance with the response data for Rule Member Action link. It creates a collection of all the added, deleted, changed and unchanged rule member action links.
Supported API: true- Specified by:
buildGroupsin classBasicESIRenderer- Throws:
ESIRendererException
-
validate
Method ensures that the data needed to execute this renderer is passed in correctly.
Supported API: true- Specified by:
validatein classBasicESIRenderer- Throws:
ESIRendererException
-
setData
public void setData(Map<ChoiceRule, Set<RuleMemberActionBean>> _ruleMemberLinks, Persistable _pbo, Map<ChoiceRule, ChoiceRule> _currentPreviousChoiceRuleMap, Collection<ChoiceRule>[] _choiceRuleDiff, ESITarget _target, OptionSet previousExportedOptionSet) Establish the renderer's state so that it can process requests.
Supported API: true- Parameters:
_ruleMemberLinks- : Map of choice rule and collection of rule member action beans_pbo- : Primary object on which publishing is executed_currentPreviousChoiceRuleMap- : Map of new current choice rule and already published choice rule iteration if any._choiceRuleDiff- : Collection array of size 3 of choice rules. 0- Added, 1- Changed and 2 is index of unchanged rules._target- : Current targetpreviousExportedOptionSet- : Previously published option set
-
getActionName
Allow subclasses to fix the rule member action string.
Supported API: true- Parameters:
choiceRule- : RuleactionMemberLink- : Link between rule and member action choice master. ChoiceMappableChocieLink in case of Include, Exclude and Enable rule. RuleMemberActionLink in case of conditional rule.- Returns:
- String representation of Action
Include Rule : SELECT
Enable Rule : DISABLE_SIB
Exclude Rule : MUTUALLY_EXCLUSIVE
Conditional Rule : Action Mentioned in RuleMemberActionLink
-
adjustRuleMemberActionLinkElement
protected com.infoengine.object.factory.Element adjustRuleMemberActionLinkElement(com.infoengine.object.factory.Element element, String groupName, Persistable memberActionLink, ChoiceRule choiceRule, Choice choice, Option option, Collection<ESITarget> targets) Allow subclasses to fix the contents of an element.
Supported API: true- Parameters:
element- : Current IE*ElementgroupName- : Bucked NamememberActionLink- : Link between rule and member action choice master. ChoiceMappableChocieLink in case of Include, Exclude and Enable rule. RuleMemberActionLink in case of conditional rule.choiceRule- : Rulechoice- : Member choiceoption- : Option of choicetargets- : Current target- Returns:
-