nl.surfnet.coin.csa.api.control
Class ServicesController

java.lang.Object
  extended by nl.surfnet.coin.csa.api.control.BaseApiController
      extended by nl.surfnet.coin.csa.api.control.ServicesController
All Implemented Interfaces:
ServicesService

@Controller
@RequestMapping
public class ServicesController
extends BaseApiController
implements ServicesService


Constructor Summary
ServicesController()
           
 
Method Summary
 Map<String,List<Service>> findAll()
           
 List<Service> getProtectedServices(String language, javax.servlet.http.HttpServletRequest request)
           
 List<Service> getProtectedServicesByIdp(String language, String idpEntityId, javax.servlet.http.HttpServletRequest request)
           
 List<Service> getPublicServices(String language)
           
 Service getServiceForIdp(long serviceId, String language, String idpEntityId, javax.servlet.http.HttpServletRequest request)
           
 Service getServiceForSpEntityId(String language, String idpEntityId, String spEntityId, javax.servlet.http.HttpServletRequest request)
           
 
Methods inherited from class nl.surfnet.coin.csa.api.control.BaseApiController
getIdpEntityIdFromToken, handleGenericException, handleSecurityException, verifyScope
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServicesController

public ServicesController()
Method Detail

findAll

public Map<String,List<Service>> findAll()
Specified by:
findAll in interface ServicesService

getPublicServices

@RequestMapping(method=GET,
                value="/api/public/services.json")
@ResponseBody
public List<Service> getPublicServices(@RequestParam(value="lang",defaultValue="en")
                                                                   String language)

getProtectedServices

@RequestMapping(method=GET,
                value="/api/protected/services.json")
@ResponseBody
public List<Service> getProtectedServices(@RequestParam(value="lang",defaultValue="en")
                                                                      String language,
                                                                      javax.servlet.http.HttpServletRequest request)

getServiceForSpEntityId

@RequestMapping(method=GET,
                value="/api/protected/service.json")
@ResponseBody
public Service getServiceForSpEntityId(@RequestParam(value="lang",defaultValue="en")
                                                                   String language,
                                                                   @RequestParam(value="idpEntityId")
                                                                   String idpEntityId,
                                                                   @RequestParam(value="spEntityId")
                                                                   String spEntityId,
                                                                   javax.servlet.http.HttpServletRequest request)

getProtectedServicesByIdp

@RequestMapping(method=GET,
                value="/api/protected/idp/services.json")
@ResponseBody
public List<Service> getProtectedServicesByIdp(@RequestParam(value="lang",defaultValue="en")
                                                                           String language,
                                                                           @RequestParam(value="idpEntityId")
                                                                           String idpEntityId,
                                                                           javax.servlet.http.HttpServletRequest request)

getServiceForIdp

@RequestMapping(method=GET,
                value="/api/protected/services/{serviceId}.json")
@ResponseBody
public Service getServiceForIdp(@PathVariable(value="serviceId")
                                                            long serviceId,
                                                            @RequestParam(value="lang",defaultValue="en")
                                                            String language,
                                                            @RequestParam(value="idpEntityId")
                                                            String idpEntityId,
                                                            javax.servlet.http.HttpServletRequest request)


Copyright © 2013 SURFnet bv, The Netherlands. All Rights Reserved.