modified savePreset
parent
0ccfb5e51c
commit
bf6af9128a
|
|
@ -78,15 +78,13 @@ public class Presets {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<Preset> savePreset(Preset request) throws ARException, NotFoundError {
|
public void savePreset(Preset request) throws ARException, NotFoundError {
|
||||||
var saveQuery = new Query.QueryBuilder(formDefault)
|
var saveQuery = new Query.QueryBuilder(formDefault)
|
||||||
.addFieldValue("FilterPresetName", 364000001, new Value(request.getName()))
|
.addFieldValue("FilterPresetName", 364000001, new Value(request.getName()))
|
||||||
.addFieldValue("FilterPresetDefinition", 364000002, new Value(request.getDefinition()))
|
.addFieldValue("FilterPresetDefinition", 364000002, new Value(request.getDefinition()))
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
api.createEntry(saveQuery);
|
api.createEntry(saveQuery);
|
||||||
allPresets();
|
|
||||||
return this.presets;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// public boolean selectPreset(String guid) throws ARException {
|
// public boolean selectPreset(String guid) throws ARException {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue