/** * * @deprecated Use {@link #requiredStream(CollectedStreamRequirements)} instead */ @Deprecated public BU requiredPropertyStream1WithNaryMapping(EventProperty propertyRequirement, Label label, PropertyScope propertyScope) { this.stream1Properties.add(propertyRequirement); MappingPropertyNary mp = new MappingPropertyNary(URI.create(propertyRequirement.getElementId()), label .getInternalId(), label.getLabel(), label.getDescription()); mp.setPropertyScope(propertyScope.name()); this.staticProperties.add(mp); return me(); }
/** * Sets a new property requirement and, in addition, adds a * {@link org.streampipes.model.staticproperty.MappingPropertyNary} static property to the pipeline element * definition. * @param propertyRequirement The property requirement. Use {@link org.streampipes.sdk.helpers.EpRequirements} to * create a new requirement. * @param label The {@link org.streampipes.sdk.helpers.Label} that defines the mapping property. * @param propertyScope The {@link org.streampipes.model.schema.PropertyScope} of the requirement. * @return this */ public StreamRequirementsBuilder requiredPropertyWithNaryMapping(EventProperty propertyRequirement, Label label, PropertyScope propertyScope) { this.eventProperties.add(propertyRequirement); MappingPropertyNary mp = new MappingPropertyNary(URI.create(propertyRequirement.getElementId()), label .getInternalId(), label.getLabel(), label.getDescription()); mp.setPropertyScope(propertyScope.name()); this.mappingProperties.add(mp); return this; }
/** * Adds a new {@link org.streampipes.model.staticproperty.MappingPropertyNary} to the pipeline element definition * which is not linked to a specific input property. * Use this method if you want to present users a selection (in form of a Checkbox Group) of all available input * event properties. * @param label A human-readable label that is displayed to users in the StreamPipes UI. * @param propertyScope Only input event properties that match the * {@link org.streampipes.model.schema.PropertyScope} are displayed. * @return */ public BU naryMappingPropertyWithoutRequirement(Label label, PropertyScope propertyScope) { MappingPropertyNary mp = new MappingPropertyNary(label.getInternalId(), label.getLabel(), label.getDescription()); mp.setPropertyScope(propertyScope.name()); this.staticProperties.add(mp); return me(); }