@RestController public class SharedFileStoreController extends Object
| Constructor and Description |
|---|
SharedFileStoreController() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(String fileRef) |
org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> |
get(String fileRef) |
ErrorResponse |
handelSharedFileStoreException(javax.servlet.http.HttpServletResponse response,
SharedFileStoreException e) |
void |
handleMissingParams(javax.servlet.http.HttpServletResponse response,
org.springframework.web.bind.MissingServletRequestParameterException e) |
void |
handleParamsTypeMismatch(javax.servlet.http.HttpServletResponse response,
org.springframework.web.bind.MissingServletRequestParameterException e) |
String |
live(javax.servlet.http.HttpServletRequest request) |
FileRefResponse |
post(javax.servlet.http.HttpServletRequest httpServletRequest,
org.springframework.web.multipart.MultipartFile multipartFile) |
String |
ready(javax.servlet.http.HttpServletRequest request) |
String |
test() |
void |
testDel(String id) |
org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> |
testGet(String id) |
@GetMapping(value="/ready") @ResponseBody public String ready(javax.servlet.http.HttpServletRequest request)
@GetMapping(value="/live") @ResponseBody public String live(javax.servlet.http.HttpServletRequest request)
@ExceptionHandler(value=org.springframework.beans.TypeMismatchException.class)
public void handleParamsTypeMismatch(javax.servlet.http.HttpServletResponse response,
org.springframework.web.bind.MissingServletRequestParameterException e)
throws IOException
IOException@ExceptionHandler(value=org.springframework.web.bind.MissingServletRequestParameterException.class)
public void handleMissingParams(javax.servlet.http.HttpServletResponse response,
org.springframework.web.bind.MissingServletRequestParameterException e)
throws IOException
IOException@ExceptionHandler(value=SharedFileStoreException.class) public ErrorResponse handelSharedFileStoreException(javax.servlet.http.HttpServletResponse response, SharedFileStoreException e)
@PostMapping(value="/alfresco/api/-default-/private/sfs/versions/1/file") @ResponseStatus(value=CREATED) public FileRefResponse post(javax.servlet.http.HttpServletRequest httpServletRequest, @RequestParam(value="file") org.springframework.web.multipart.MultipartFile multipartFile)
@GetMapping(value="/alfresco/api/-default-/private/sfs/versions/1/file/{fileRef}")
public org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> get(@PathVariable(value="fileRef")
String fileRef)
@DeleteMapping(value="/alfresco/api/-default-/private/sfs/versions/1/file/{fileRef}")
@ResponseStatus(value=NO_CONTENT)
public void delete(@PathVariable(value="fileRef")
String fileRef)
@GetMapping(value="/test") public String test()
@GetMapping(value="/get")
public org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> testGet(@RequestParam(value="id")
String id)
@GetMapping(value="/del")
public void testDel(@RequestParam(value="id")
String id)
Copyright © 2005–2018 Alfresco Software. All rights reserved.