io.vertx.tp.crud.actor.CreateActor Maven / Gradle / Ivy
package io.vertx.tp.crud.actor;
import io.vertx.core.json.JsonObject;
import io.vertx.tp.crud.atom.IxConfig;
import io.vertx.tp.crud.atom.IxField;
import io.vertx.tp.crud.refine.Ix;
import io.zero.epic.Ut;
class CreateActor extends AbstractActor {
@Override
public JsonObject proc(final JsonObject data, final IxConfig config) {
/* UserId */
final String userId = this.getUser();
if (Ut.notNil(userId)) {
final IxField field = config.getField();
/* Created */
Ix.audit(data, field.getCreated(), userId);
}
return data;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy