Search in sources :

Example 1 with RemarksUpdateRequest

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;
}
Also used : Attribute(org.openforis.idm.model.Attribute) RemarksUpdateRequest(org.openforis.collect.remoting.service.NodeUpdateRequest.RemarksUpdateRequest)

Aggregations

RemarksUpdateRequest (org.openforis.collect.remoting.service.NodeUpdateRequest.RemarksUpdateRequest)1 Attribute (org.openforis.idm.model.Attribute)1