List of usage examples for org.springframework.core ParameterizedTypeReference ParameterizedTypeReference
protected ParameterizedTypeReference()
From source file:org.kaaproject.kaa.server.common.admin.AdminClient.java
/** * Gets all event class families./*from w w w .jav a 2s .c om*/ * * @return the list event class family dto */ public List<EventClassFamilyDto> getEventClassFamilies() { ResponseEntity<List<EventClassFamilyDto>> entity = restTemplate.exchange( restTemplate.getUrl() + "eventClassFamilies", HttpMethod.GET, null, new ParameterizedTypeReference<List<EventClassFamilyDto>>() { }); return entity.getBody(); }
From source file:org.kaaproject.kaa.server.common.admin.AdminClient.java
/** * Gets the event classes by family its id, version and type. * * @param eventClassFamilyId the event class family id * @param version the version * @param type the type/*from www.j a v a 2 s. c o m*/ */ public List<EventClassDto> getEventClassesByFamilyIdVersionAndType(String eventClassFamilyId, int version, EventClassType type) throws Exception { ResponseEntity<List<EventClassDto>> entity = restTemplate.exchange( restTemplate.getUrl() + "eventClasses?eventClassFamilyId={eventClassFamilyId}&" + "version={version}" + "&type={type}", HttpMethod.GET, null, new ParameterizedTypeReference<List<EventClassDto>>() { }, eventClassFamilyId, version, type); return entity.getBody(); }
From source file:org.kaaproject.kaa.server.common.admin.AdminClient.java
/** * Gets all application event family maps by application token. * * @param applicationToken the application token * @return list the application event family map dto *///www . ja va 2 s. c om public List<ApplicationEventFamilyMapDto> getApplicationEventFamilyMapsByApplicationToken( String applicationToken) throws Exception { ResponseEntity<List<ApplicationEventFamilyMapDto>> entity = restTemplate.exchange( restTemplate.getUrl() + "applicationEventMaps/" + applicationToken, HttpMethod.GET, null, new ParameterizedTypeReference<List<ApplicationEventFamilyMapDto>>() { }); return entity.getBody(); }
From source file:org.kaaproject.kaa.server.common.admin.AdminClient.java
/** * Gets all vacant event class families by application token. * * @param applicationToken the application token * @return the list ecf info dto/* w ww. ja v a 2s .c o m*/ */ public List<EcfInfoDto> getVacantEventClassFamiliesByApplicationToken(String applicationToken) throws Exception { ResponseEntity<List<EcfInfoDto>> entity = restTemplate.exchange( restTemplate.getUrl() + "vacantEventClassFamilies/" + applicationToken, HttpMethod.GET, null, new ParameterizedTypeReference<List<EcfInfoDto>>() { }); return entity.getBody(); }
From source file:org.kaaproject.kaa.server.common.admin.AdminClient.java
/** * Gets all event class families by application token. * * @param applicationToken the application token */// w w w. j av a 2s. com public List<AefMapInfoDto> getEventClassFamiliesByApplicationToken(String applicationToken) throws Exception { ResponseEntity<List<AefMapInfoDto>> entity = restTemplate.exchange( restTemplate.getUrl() + "eventClassFamilies/" + applicationToken, HttpMethod.GET, null, new ParameterizedTypeReference<List<AefMapInfoDto>>() { }); return entity.getBody(); }
From source file:org.kaaproject.kaa.server.common.admin.AdminClient.java
/** * Gets all log appenders by application token. * * @param applicationToken the application token *///from ww w. java2 s.c o m public List<LogAppenderDto> getLogAppendersByAppToken(String applicationToken) throws Exception { ResponseEntity<List<LogAppenderDto>> entity = restTemplate.exchange( restTemplate.getUrl() + "logAppenders/" + applicationToken, HttpMethod.GET, null, new ParameterizedTypeReference<List<LogAppenderDto>>() { }); return entity.getBody(); }
From source file:org.kaaproject.kaa.server.common.admin.AdminClient.java
/** * Gets all user verifiers by application token. * * @param applicationToken the application token * @return the list user verifier dto/*w w w . j a va 2 s.co m*/ */ public List<UserVerifierDto> getUserVerifiersByApplicationToken(String applicationToken) { ResponseEntity<List<UserVerifierDto>> entity = restTemplate.exchange( restTemplate.getUrl() + "userVerifiers/" + applicationToken, HttpMethod.GET, null, new ParameterizedTypeReference<List<UserVerifierDto>>() { }); return entity.getBody(); }
From source file:org.kaaproject.kaa.server.common.admin.AdminClient.java
/** * Returns an SDK profile by its identifier. * * @param sdkProfileId the sdk profile id *///from w w w . j a v a2s . c o m public SdkProfileDto getSdkProfile(String sdkProfileId) throws Exception { ResponseEntity<SdkProfileDto> entity = restTemplate.exchange( restTemplate.getUrl() + "sdkProfile/" + sdkProfileId, HttpMethod.GET, null, new ParameterizedTypeReference<SdkProfileDto>() { }); return entity.getBody(); }
From source file:org.kaaproject.kaa.server.common.admin.AdminClient.java
/** * Returns a list of SDK profiles for the given application. * * @param applicationToken the application token *//* w ww.java 2 s . c om*/ public List<SdkProfileDto> getSdkProfilesByApplicationToken(String applicationToken) throws Exception { ResponseEntity<List<SdkProfileDto>> entity = restTemplate.exchange( restTemplate.getUrl() + "sdkProfiles/" + applicationToken, HttpMethod.GET, null, new ParameterizedTypeReference<List<SdkProfileDto>>() { }); return entity.getBody(); }
From source file:org.kaaproject.kaa.server.common.admin.AdminClient.java
public List<CtlSchemaMetaInfoDto> getSystemLevelCTLSchemas() { //CHECKSTYLE:ON ResponseEntity<List<CtlSchemaMetaInfoDto>> entity = restTemplate.exchange( restTemplate.getUrl() + "CTL/getSystemSchemas", HttpMethod.GET, null, new ParameterizedTypeReference<List<CtlSchemaMetaInfoDto>>() { });/*from w w w. j a va 2s. c o m*/ return entity.getBody(); }