use of org.openforis.collect.remoting.service.NodeUpdateRequest.RemarksUpdateRequest in project collect by openforis.
the class RemarksUpdateRequestProxy method toNodeUpdateRequest.
@Override
public RemarksUpdateRequest toNodeUpdateRequest(CollectRecord record) {
RemarksUpdateRequest o = new NodeUpdateRequest.RemarksUpdateRequest();
Attribute<?, ?> attribute = (Attribute<?, ?>) record.getNodeByInternalId(nodeId);
Field<?> field = attribute.getField(fieldIndex);
o.setField(field);
o.setRemarks(remarks);
return o;
}
Aggregations