@@ -70,10 +70,13 @@ public Item getItem(int itemId) {
7070 * The data for the update
7171 * @param silent
7272 * True if the update should be silent, false otherwise
73+ * @param hook
74+ * True if hooks should be executed for the change, false otherwise
7375 */
74- public void updateItem (int itemId , ItemUpdate update , boolean silent ) {
76+ public void updateItem (int itemId , ItemUpdate update , boolean silent , boolean hook ) {
7577 getResourceFactory ().getApiResource ("/item/" + itemId )
7678 .queryParam ("silent" , silent ? "1" : "0" )
79+ .queryParam ("hook" , hook ? "1" : "0" )
7780 .entity (update , MediaType .APPLICATION_JSON_TYPE ).put ();
7881 }
7982
@@ -86,11 +89,14 @@ public void updateItem(int itemId, ItemUpdate update, boolean silent) {
8689 * The values for the fields
8790 * @param silent
8891 * True if the update should be silent, false otherwise
92+ * @param hook
93+ * True if hooks should be executed for the change, false otherwise
8994 */
9095 public void updateItemValues (int itemId , List <FieldValuesUpdate > values ,
91- boolean silent ) {
96+ boolean silent , boolean hook ) {
9297 getResourceFactory ().getApiResource ("/item/" + itemId + "/value/" )
9398 .queryParam ("silent" , silent ? "1" : "0" )
99+ .queryParam ("hook" , hook ? "1" : "0" )
94100 .entity (values , MediaType .APPLICATION_JSON_TYPE ).put ();
95101 }
96102
@@ -105,12 +111,15 @@ public void updateItemValues(int itemId, List<FieldValuesUpdate> values,
105111 * The new values for the field
106112 * @param silent
107113 * True if the update should be silent, false otherwise
114+ * @param hook
115+ * True if hooks should be executed for the change, false otherwise
108116 */
109117 public void updateItemFieldValues (int itemId , int fieldId ,
110- List <Map <String , Object >> values , boolean silent ) {
118+ List <Map <String , Object >> values , boolean silent , boolean hook ) {
111119 getResourceFactory ()
112120 .getApiResource ("/item/" + itemId + "/value/" + fieldId )
113121 .queryParam ("silent" , silent ? "1" : "0" )
122+ .queryParam ("hook" , hook ? "1" : "0" )
114123 .entity (values , MediaType .APPLICATION_JSON_TYPE ).put ();
115124 }
116125
0 commit comments