Class CmisController
- java.lang.Object
-
- org.craftercms.studio.controller.rest.v2.CmisController
-
@RestController public class CmisController extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected CmisService
cmisService
-
Constructor Summary
Constructors Constructor Description CmisController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponseBody
cloneContent(CmisCloneRequest cmisCloneRequest)
CmisService
getCmisService()
ResponseBody
list(String siteId, String cmisRepoId, String path, int offset, int limit)
ResponseBody
search(String siteId, String cmisRepoId, String searchTerm, String path, int offset, int limit)
void
setCmisService(CmisService cmisService)
ResponseBody
uploadContent(javax.servlet.http.HttpServletRequest httpServletRequest)
-
-
-
Field Detail
-
cmisService
protected CmisService cmisService
-
-
Method Detail
-
list
@GetMapping("/api/2/cmis/list") public ResponseBody list(@RequestParam(value="siteId",required=true) String siteId, @RequestParam(value="cmisRepoId",required=true) String cmisRepoId, @RequestParam(value="path",required=false,defaultValue="") String path, @RequestParam(value="offset",required=false,defaultValue="0") int offset, @RequestParam(value="limit",required=false,defaultValue="10") int limit) throws CmisRepositoryNotFoundException, CmisTimeoutException, CmisUnavailableException, ConfigurationException
-
search
@GetMapping("/api/2/cmis/search") public ResponseBody search(@RequestParam(value="siteId",required=true) String siteId, @RequestParam(value="cmisRepoId",required=true) String cmisRepoId, @RequestParam(value="searchTerm",required=true) String searchTerm, @RequestParam(value="path",required=false,defaultValue="") String path, @RequestParam(value="offset",required=false,defaultValue="0") int offset, @RequestParam(value="limit",required=false,defaultValue="10") int limit) throws CmisRepositoryNotFoundException, CmisTimeoutException, CmisUnavailableException, ConfigurationException
-
cloneContent
@PostMapping("/api/2/cmis/clone") public ResponseBody cloneContent(@RequestBody CmisCloneRequest cmisCloneRequest) throws CmisUnavailableException, CmisTimeoutException, CmisRepositoryNotFoundException, StudioPathNotFoundException, ServiceLayerException, CmisPathNotFoundException
-
uploadContent
@PostMapping("/api/2/cmis/upload") public ResponseBody uploadContent(javax.servlet.http.HttpServletRequest httpServletRequest) throws IOException, CmisUnavailableException, CmisPathNotFoundException, CmisTimeoutException, CmisRepositoryNotFoundException, org.apache.commons.fileupload.FileUploadException, InvalidParametersException, ConfigurationException
- Throws:
IOException
CmisUnavailableException
CmisPathNotFoundException
CmisTimeoutException
CmisRepositoryNotFoundException
org.apache.commons.fileupload.FileUploadException
InvalidParametersException
ConfigurationException
-
getCmisService
public CmisService getCmisService()
-
setCmisService
public void setCmisService(CmisService cmisService)
-
-