@Override protected List<Trigger> getChildren() { return moduleType.getChildren(); }
public static CompositeTriggerTypeDTO map(final CompositeTriggerType triggerType) { final CompositeTriggerTypeDTO triggerTypeDto = map(triggerType, new CompositeTriggerTypeDTO()); triggerTypeDto.children = TriggerDTOMapper.map(triggerType.getChildren()); return triggerTypeDto; }
.addAll(collectRecords(columnWidths, CHILDREN, ((CompositeTriggerType) moduleType).getChildren()));
ModuleType mt = mtRegistry.get(moduleType); if (mt instanceof CompositeTriggerType) { List<Trigger> childModules = ((CompositeTriggerType) mt).getChildren(); LinkedHashMap<Trigger, TriggerHandler> mapModuleToHandler = getChildHandlers(module.getId(), module.getConfiguration(), childModules, ruleUID);
/** * Utility method for localization of TriggerTypes. * * @param ct is a TriggerType for localization. * @param bundle the bundle providing localization resources. * @param moduleTypeUID is a TriggerType uid. * @param locale represents a specific geographical, political, or cultural region. * @param lconfigDescriptions are TriggerType localized config descriptions. * @param llabel is a TriggerType localized label. * @param ldescription is a TriggerType localized description. * @return localized TriggerType. */ private TriggerType createLocalizedTriggerType(TriggerType tt, Bundle bundle, String moduleTypeUID, Locale locale, List<ConfigDescriptionParameter> lconfigDescriptions, String llabel, String ldescription) { List<Output> outputs = ModuleTypeI18nUtil.getLocalizedOutputs(i18nProvider, tt.getOutputs(), bundle, moduleTypeUID, locale); TriggerType ltt = null; if (tt instanceof CompositeTriggerType) { List<Trigger> modules = ModuleI18nUtil.getLocalizedModules(i18nProvider, ((CompositeTriggerType) tt).getChildren(), bundle, moduleTypeUID, ModuleTypeI18nUtil.MODULE_TYPE, locale); ltt = new CompositeTriggerType(moduleTypeUID, lconfigDescriptions, llabel, ldescription, tt.getTags(), tt.getVisibility(), outputs, modules); } else { ltt = new TriggerType(moduleTypeUID, lconfigDescriptions, llabel, ldescription, tt.getTags(), tt.getVisibility(), outputs); } return ltt; }
result = new CompositeTriggerType(mType.getUID(), mType.getConfigurationDescriptions(), mType.getLabel(), mType.getDescription(), mType.getTags(), mType.getVisibility(), m.getOutputs(), new ArrayList<>(m.getChildren()));