MdsRestFacadeImpl

public class MdsRestFacadeImpl<T> implements MdsRestFacade<T>

This org.motechproject.mds.rest.MdsRestFacade implementation retrieves REST related metadata on initialization. It uses an instance of org.motechproject.mds.service.MotechDataService for operations and the jackson JSON library for parsing InputStreams.

Parameters:
  • <T>

Methods

create

public RestProjection create(InputStream instanceBody)

delete

public void delete(Long id)

executeLookup

public Object executeLookup(String lookupName, Map<String, String> lookupMap, QueryParams queryParams, boolean includeBlob)

get

public RestResponse get(QueryParams queryParams, boolean includeBlob)

get

public RestResponse get(Long id, boolean includeBlob)

init

public void init()

setAllEntities

public void setAllEntities(AllEntities allEntities)

setDataService

public void setDataService(MotechDataService<T> dataService)

update

public RestProjection update(InputStream instanceBody)