Skip to content

Commit fc80a0d

Browse files
Minor
1 parent 701e34f commit fc80a0d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

core/src/main/java/dev/vml/es/acm/core/repo/RepoResource.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,15 @@ public RepoResource saveProperty(String key, Object value) {
215215
return updateProperty(key, v -> value);
216216
}
217217

218+
public RepoResource saveProperties(Map<String, Object> properties) {
219+
if (properties == null || properties.isEmpty()) {
220+
LOG.info("Skipped saving properties for resource at path '{}' as no properties were provided!", path);
221+
return this;
222+
}
223+
properties.forEach(this::saveProperty);
224+
return this;
225+
}
226+
218227
public RepoResource deleteProperty(String key) {
219228
return saveProperty(key, null);
220229
}

0 commit comments

Comments
 (0)