use of com.developmentontheedge.beans.DynamicPropertySetSupport in project be5 by DevelopmentOnTheEdge.
the class SilentEditOperation method getParameters.
@Override
public Object getParameters(Map<String, Object> presetValues) throws Exception {
Entity entity = getInfo().getEntity();
DynamicPropertySet dps = dpsHelper.addDpExcludeAutoIncrement(new DynamicPropertySetSupport(), getInfo().getModel());
dpsHelper.setValues(dps, database.getEntity(entity.getName()).get(context.records[0]));
dpsHelper.setOperationParams(dps, context.getOperationParams());
return dpsHelper.setValues(dps, presetValues);
}
use of com.developmentontheedge.beans.DynamicPropertySetSupport in project be5 by DevelopmentOnTheEdge.
the class TestOperation method getParameters.
@Override
public Object getParameters(Map<String, Object> presetValues) throws Exception {
DynamicPropertySet dps = new DynamicPropertySetSupport();
dps.add(new DynamicProperty("name", "Name", String.class, presetValues.getOrDefault("name", "")));
dps.add(new DynamicProperty("number", "Number", Long.class, presetValues.getOrDefault("number", "0")));
return dps;
}
Aggregations