nl.surfnet.coin.csa.control.shopadmin
Class SpLmngDataBindingController

java.lang.Object
  extended by nl.surfnet.coin.csa.control.BaseController
      extended by nl.surfnet.coin.csa.control.shopadmin.SpLmngDataBindingController

@Controller
@RequestMapping(value="/shopadmin/*")
public class SpLmngDataBindingController
extends BaseController


Field Summary
 
Fields inherited from class nl.surfnet.coin.csa.control.BaseController
ALL_IDPS, COMPOUND_SP, COMPOUND_SPS, DEEPLINK_TO_SURFMARKET_ALLOWED, FACET_CONNECTION_VISIBLE, FILTER_APP_GRID_ALLOWED, GROUPS_WITH_MEMBERS, IS_ADMIN_USER, IS_GOD, localeResolver, RAW_ARP_ATTRIBUTES_VISIBLE, SELECTED_IDP, SERVICE_APPLY_ALLOWED, SERVICE_CONNECTION_VISIBLE, SERVICE_QUESTION_ALLOWED, TOKEN_CHECK
 
Constructor Summary
SpLmngDataBindingController()
           
 
Method Summary
 org.springframework.web.servlet.ModelAndView get(String entityId)
           
 String screenshot(Long screenshotId)
           
 Screenshot screenshot(org.springframework.web.multipart.MultipartFile file, Long compoundServiceProviderId, javax.servlet.http.HttpServletResponse response)
           
 String updateImageField(Long fieldId, String value, Field.Source source)
           
 String updateStringField(Long fieldId, String value, Field.Source source, String useThis)
           
 String upload(org.springframework.web.multipart.MultipartFile file, Field.Source source, Long fieldId, String useThis)
           
 
Methods inherited from class nl.surfnet.coin.csa.control.BaseController
getLocale, getMyInstitutionIdps, getSelectedIdp, handleAjaxResponseException, switchIdp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpLmngDataBindingController

public SpLmngDataBindingController()
Method Detail

get

@RequestMapping(value="/compoundSp-detail")
public org.springframework.web.servlet.ModelAndView get(@RequestParam(value="spEntityId")
                                                                       String entityId)

updateImageField

@RequestMapping(value="/compoundSp-update",
                method=POST,
                params="usethis=usethis-image")
@ResponseBody
public String updateImageField(@RequestParam(value="fieldId")
                                                           Long fieldId,
                                                           @RequestParam(value="value",required=false)
                                                           String value,
                                                           @RequestParam(value="source")
                                                           Field.Source source)

updateStringField

@RequestMapping(value="/compoundSp-update",
                method=POST)
@ResponseBody
public String updateStringField(@RequestParam(value="fieldId")
                                                            Long fieldId,
                                                            @RequestParam(value="value",required=false)
                                                            String value,
                                                            @RequestParam(value="source")
                                                            Field.Source source,
                                                            @RequestParam(value="usethis",required=false)
                                                            String useThis)

upload

@RequestMapping(value="/upload",
                method=POST)
@ResponseBody
public String upload(@RequestParam(value="file",required=false)
                                                 org.springframework.web.multipart.MultipartFile file,
                                                 @RequestParam(value="source")
                                                 Field.Source source,
                                                 @RequestParam(value="fieldId")
                                                 Long fieldId,
                                                 @RequestParam(value="usethis",required=false)
                                                 String useThis)
              throws IOException
Throws:
IOException

screenshot

@RequestMapping(value="/upload-screenshot",
                method=POST,
                produces="application/json")
@ResponseBody
public Screenshot screenshot(@RequestParam(value="file",required=true)
                                                         org.springframework.web.multipart.MultipartFile file,
                                                         @RequestParam(value="compoundServiceProviderId")
                                                         Long compoundServiceProviderId,
                                                         javax.servlet.http.HttpServletResponse response)
                      throws IOException
Throws:
IOException

screenshot

@RequestMapping(value="/remove-screenshot/{screenshotId}",
                method=DELETE)
@ResponseBody
public String screenshot(@PathVariable(value="screenshotId")
                                                     Long screenshotId)
                  throws IOException
Throws:
IOException


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