Repository: incubator-nifi Updated Branches: refs/heads/NIFI-250 e0e2d161b -> fcff5c40a
NIFI-250: - Adding endpoints for obtaining [processor|controller service|reporting task] property descriptors. Project: http://git-wip-us.apache.org/repos/asf/incubator-nifi/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-nifi/commit/fcff5c40 Tree: http://git-wip-us.apache.org/repos/asf/incubator-nifi/tree/fcff5c40 Diff: http://git-wip-us.apache.org/repos/asf/incubator-nifi/diff/fcff5c40 Branch: refs/heads/NIFI-250 Commit: fcff5c40a22a42bedbdd488dc540f4e80d6caf68 Parents: e0e2d16 Author: Matt Gilman <[email protected]> Authored: Fri Mar 20 15:35:54 2015 -0400 Committer: Matt Gilman <[email protected]> Committed: Fri Mar 20 15:35:54 2015 -0400 ---------------------------------------------------------------------- .../api/entity/PropertyDescriptorEntity.java | 46 ++++++++++++++++++++ 1 file changed, 46 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/fcff5c40/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/PropertyDescriptorEntity.java ---------------------------------------------------------------------- diff --git a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/PropertyDescriptorEntity.java b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/PropertyDescriptorEntity.java new file mode 100644 index 0000000..9251b7f --- /dev/null +++ b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/PropertyDescriptorEntity.java @@ -0,0 +1,46 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.nifi.web.api.entity; + +import javax.xml.bind.annotation.XmlRootElement; +import org.apache.nifi.web.api.dto.ProcessorDTO; +import org.apache.nifi.web.api.dto.PropertyDescriptorDTO; + +/** + * A serialized representation of this class can be placed in the entity body of + * a request or response to or from the API. This particular entity holds a + * reference to a PropertyDescriptorDTO. + */ +@XmlRootElement(name = "propertyDescriptor") +public class PropertyDescriptorEntity extends Entity { + + private PropertyDescriptorDTO propertyDescriptor; + + /** + * The PropertyDescriptorDTO that is being serialized. + * + * @return The PropertyDescriptorDTO object + */ + public PropertyDescriptorDTO getPropertyDescriptor() { + return propertyDescriptor; + } + + public void setPropertyDescriptor(PropertyDescriptorDTO propertyDescriptor) { + this.propertyDescriptor = propertyDescriptor; + } + +}
