@Override public Collection<String> call() throws Exception { checkPermission(Permission.Value.read); return docMgr.getCollections(); }
@GET @Produces(MediaType.APPLICATION_JSON) @ApiOperation(value = "getCollections: return Collection names registered in the current schema") public Collection<String> getCollections() { DocumentManagement docMgr = getDocManager(); try { return docMgr.getCollections(); } catch (Exception ex) { logger.error("getCollections.error", ex); throw new WebApplicationException(ex, Status.INTERNAL_SERVER_ERROR); } }