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> – the entity class

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()

setDataService

public void setDataService(MotechDataService<T> dataService)

setEntityInfoReader

public void setEntityInfoReader(EntityInfoReader entityInfoReader)

update

public RestProjection update(InputStream instanceBody)