@@ -60,11 +60,6 @@ public class PropertyManager {
6060 @ Autowired
6161 AuthorizationService authorizationService ;
6262
63- /**
64- * GET method for retrieving the list of properties in the database.
65- *
66- * @return list of all properties
67- */
6863 @ Operation (
6964 summary = "List all properties" ,
7065 description = "Retrieve the list of all properties in the database." ,
@@ -89,15 +84,6 @@ public Iterable<Property> list() {
8984 return propertyRepository .findAll ();
9085 }
9186
92- /**
93- * GET method for retrieving the property with the path parameter <code>propertyName</code>
94- * <p>
95- * To get all its channels use the parameter "withChannels"
96- *
97- * @param propertyName - property name to search for
98- * @param withChannels - get the channels with the property
99- * @return found property
100- */
10187 @ Operation (
10288 summary = "Get property by name" ,
10389 description = "Retrieve a property by its name. Optionally include its channels." ,
@@ -135,18 +121,6 @@ public Property read(@PathVariable("propertyName") String propertyName,
135121 }
136122 }
137123
138- /**
139- * PUT method for creating and <b>exclusively</b> adding the property
140- * identified by the path parameter <code>propertyName</code> to all channels
141- * identified by the payload structure <code>property</code>. Setting the owner
142- * attribute in the XML root element is mandatory. Values for the properties
143- * are taken from the payload.
144- *
145- *
146- * @param propertyName - name of property to be created
147- * @param property - an Property instance with the list of channels to add the property <code>propertyName</code> to
148- * @return the created property
149- */
150124 @ Operation (
151125 summary = "Create or update a property" ,
152126 description = "Create and exclusively update the property identified by the path parameter." ,
@@ -216,12 +190,6 @@ public Property create(@PathVariable("propertyName") String propertyName, @Reque
216190 }
217191 }
218192
219- /**
220- * PUT method for creating multiple properties.
221- *
222- * @param properties - XmlProperties to be created
223- * @return the list of properties created
224- */
225193 @ Operation (
226194 summary = "Create multiple properties" ,
227195 description = "Create multiple properties in a single request." ,
@@ -292,18 +260,6 @@ public Iterable<Property> create(@RequestBody Iterable<Property> properties) {
292260 }
293261 }
294262
295- /**
296- * PUT method for adding the property identified by <code>property</code> to the single
297- * channel <code>chan</code> (both path parameters).
298- *
299- * TODO: could be simplified with multi index update and script which can use
300- * wildcards thus removing the need to explicitly define the entire property
301- *
302- * @param propertyName - name of tag to be created
303- * @param channelName - channel to update <code>property</code> to
304- * @param property - property payload with value
305- * @return added property
306- */
307263 @ Operation (
308264 summary = "Add property to a single channel" ,
309265 description = "Add the property identified by propertyName to the channel identified by channelName." ,
@@ -374,16 +330,6 @@ public Property addSingle(@PathVariable("propertyName") String propertyName, @Pa
374330 }
375331 }
376332
377- /**
378- * POST method for updating the property identified by the path parameter
379- * <code>propertyName</code>, adding it to all channels identified by the payload structure
380- * <code>property</code>. Setting the owner attribute in the XML root element is
381- * mandatory. Values for the properties are taken from the payload.
382- *
383- * @param propertyName - name of property to be updated
384- * @param property - a Property instance with the list of channels to add the property <code>propertyName</code> to
385- * @return the updated property
386- */
387333 @ Operation (
388334 summary = "Update a property" ,
389335 description = "Update the property identified by the path parameter, adding it to all channels in the payload." ,
@@ -498,18 +444,8 @@ public Property update(@PathVariable("propertyName") String propertyName, @Reque
498444 }
499445
500446 return updatedProperty ;
501-
502447 }
503448
504- /**
505- * POST method for updating multiple properties and updating all the appropriate
506- * channels.
507- *
508- * If the channels don't exist it will fail
509- *
510- * @param properties - XmlProperties to be updated
511- * @return the updated properties
512- */
513449 @ Operation (
514450 summary = "Update multiple properties" ,
515451 description = "Update multiple properties and all appropriate channels." ,
@@ -621,12 +557,6 @@ private void checkPropertyAuthorization(Optional<Property> existingProperty) {
621557 }
622558 }
623559
624- /**
625- * DELETE method for deleting the property identified by the path parameter
626- * <code>propertyName</code> from all channels.
627- *
628- * @param propertyName - name of property to remove
629- */
630560 @ Operation (
631561 summary = "Delete a property" ,
632562 description = "Delete the property identified by the path parameter from all channels." ,
@@ -678,13 +608,6 @@ public void remove(@PathVariable("propertyName") String propertyName) {
678608 }
679609 }
680610
681- /**
682- * DELETE method for deleting the property identified by <code>propertyName</code> from the
683- * channel <code>channelName</code> (both path parameters).
684- *
685- * @param propertyName - name of property to remove
686- * @param channelName - channel to remove <code>propertyName</code> from
687- */
688611 @ Operation (
689612 summary = "Delete property from a channel" ,
690613 description = "Delete the property identified by propertyName from the channel identified by channelName." ,
0 commit comments