Search in sources :

Example 1 with DefaultValueApplyRequest

use of org.openforis.collect.remoting.service.NodeUpdateRequest.DefaultValueApplyRequest in project collect by openforis.

the class DefaultValueApplyRequestProxy method toNodeUpdateRequest.

@Override
public DefaultValueApplyRequest toNodeUpdateRequest(CollectRecord record) {
    DefaultValueApplyRequest opts = new NodeUpdateRequest.DefaultValueApplyRequest();
    Attribute<?, ?> attribute = (Attribute<?, ?>) record.getNodeByInternalId(nodeId);
    opts.setAttribute(attribute);
    return opts;
}
Also used : Attribute(org.openforis.idm.model.Attribute) DefaultValueApplyRequest(org.openforis.collect.remoting.service.NodeUpdateRequest.DefaultValueApplyRequest)

Aggregations

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