public class NotebookRestApi extends Object
| Constructor and Description |
|---|
NotebookRestApi() |
NotebookRestApi(Notebook notebook,
NotebookServer notebookServer,
SearchService search) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
bind(String noteId)
list binded setting
|
javax.ws.rs.core.Response |
bind(String noteId,
String req)
bind a setting to note
|
javax.ws.rs.core.Response |
cloneNote(String notebookId,
String message)
Clone note REST API
|
javax.ws.rs.core.Response |
createNote(String message)
Create new note REST API
|
javax.ws.rs.core.Response |
deleteNote(String notebookId)
Delete note REST API
|
javax.ws.rs.core.Response |
deleteParagraph(String notebookId,
String paragraphId)
Delete paragraph REST API
|
javax.ws.rs.core.Response |
exportNoteBook(String noteId)
export note REST API
|
javax.ws.rs.core.Response |
getCronJob(String notebookId)
Get cron job REST API
|
javax.ws.rs.core.Response |
getJobListforNotebook()
Get notebook jobs for job manager
|
javax.ws.rs.core.Response |
getNotebook(String notebookId) |
javax.ws.rs.core.Response |
getNotebookList() |
javax.ws.rs.core.Response |
getNoteJobStatus(String notebookId)
Get notebook job status REST API
|
javax.ws.rs.core.Response |
getNotePermissions(String noteId)
get note authorization information
|
javax.ws.rs.core.Response |
getParagraph(String notebookId,
String paragraphId)
Get paragraph REST API
|
javax.ws.rs.core.Response |
getUpdatedJobListforNotebook(long lastUpdateUnixTime)
Get updated notebook jobs for job manager
|
javax.ws.rs.core.Response |
importNotebook(String req)
import new note REST API
|
javax.ws.rs.core.Response |
insertParagraph(String notebookId,
String message)
Insert paragraph REST API
|
javax.ws.rs.core.Response |
moveParagraph(String notebookId,
String paragraphId,
String newIndex)
Move paragraph REST API
|
javax.ws.rs.core.Response |
putNotePermissions(String noteId,
String req)
set note authorization information
|
javax.ws.rs.core.Response |
registerCronJob(String notebookId,
String message)
Register cron job REST API
|
javax.ws.rs.core.Response |
removeCronJob(String notebookId)
Remove cron job REST API
|
javax.ws.rs.core.Response |
runNoteJobs(String notebookId)
Run notebook jobs REST API
|
javax.ws.rs.core.Response |
runParagraph(String notebookId,
String paragraphId,
String message)
Run paragraph job REST API
|
javax.ws.rs.core.Response |
search(String queryTerm)
Search for a Notes with permissions
|
javax.ws.rs.core.Response |
stopNoteJobs(String notebookId)
Stop(delete) notebook jobs REST API
|
javax.ws.rs.core.Response |
stopParagraph(String notebookId,
String paragraphId)
Stop(delete) paragraph job REST API
|
public NotebookRestApi()
public NotebookRestApi(Notebook notebook, NotebookServer notebookServer, SearchService search)
public javax.ws.rs.core.Response getNotePermissions(String noteId)
public javax.ws.rs.core.Response putNotePermissions(String noteId, String req) throws IOException
IOExceptionpublic javax.ws.rs.core.Response bind(String noteId, String req) throws IOException
IOExceptionpublic javax.ws.rs.core.Response bind(String noteId)
public javax.ws.rs.core.Response getNotebookList()
throws IOException
IOExceptionpublic javax.ws.rs.core.Response getNotebook(String notebookId) throws IOException
IOExceptionpublic javax.ws.rs.core.Response exportNoteBook(String noteId) throws IOException
- IOExceptionpublic javax.ws.rs.core.Response importNotebook(String req) throws IOException
req - - notebook JsonIOExceptionpublic javax.ws.rs.core.Response createNote(String message) throws IOException
message - - JSON with new note nameIOExceptionpublic javax.ws.rs.core.Response deleteNote(String notebookId) throws IOException
- IOExceptionpublic javax.ws.rs.core.Response cloneNote(String notebookId, String message) throws IOException, CloneNotSupportedException, IllegalArgumentException
- IOException, - CloneNotSupportedException, IllegalArgumentExceptionIOExceptionCloneNotSupportedExceptionIllegalArgumentExceptionpublic javax.ws.rs.core.Response insertParagraph(String notebookId, String message) throws IOException
message - - JSON containing paragraph's informationIOExceptionpublic javax.ws.rs.core.Response getParagraph(String notebookId, String paragraphId) throws IOException
- IOExceptionpublic javax.ws.rs.core.Response moveParagraph(String notebookId, String paragraphId, String newIndex) throws IOException
newIndex - - new index to moveIOExceptionpublic javax.ws.rs.core.Response deleteParagraph(String notebookId, String paragraphId) throws IOException
- IOExceptionpublic javax.ws.rs.core.Response runNoteJobs(String notebookId) throws IOException, IllegalArgumentException
- IOException, - IllegalArgumentExceptionIOExceptionIllegalArgumentExceptionpublic javax.ws.rs.core.Response stopNoteJobs(String notebookId) throws IOException, IllegalArgumentException
- IOException, - IllegalArgumentExceptionIOExceptionIllegalArgumentExceptionpublic javax.ws.rs.core.Response getNoteJobStatus(String notebookId) throws IOException, IllegalArgumentException
- IOException, - IllegalArgumentExceptionIOExceptionIllegalArgumentExceptionpublic javax.ws.rs.core.Response runParagraph(String notebookId, String paragraphId, String message) throws IOException, IllegalArgumentException
message - - JSON with params if user wants to update dynamic form's value
null, empty string, empty json if user doesn't want to updateIOException, - IllegalArgumentExceptionIOExceptionIllegalArgumentExceptionpublic javax.ws.rs.core.Response stopParagraph(String notebookId, String paragraphId) throws IOException, IllegalArgumentException
- IOException, - IllegalArgumentExceptionIOExceptionIllegalArgumentExceptionpublic javax.ws.rs.core.Response registerCronJob(String notebookId, String message) throws IOException, IllegalArgumentException
message - - JSON with cron expressions.IOException, - IllegalArgumentExceptionIOExceptionIllegalArgumentExceptionpublic javax.ws.rs.core.Response removeCronJob(String notebookId) throws IOException, IllegalArgumentException
- IOException, - IllegalArgumentExceptionIOExceptionIllegalArgumentExceptionpublic javax.ws.rs.core.Response getCronJob(String notebookId) throws IOException, IllegalArgumentException
- IOException, - IllegalArgumentExceptionIOExceptionIllegalArgumentExceptionpublic javax.ws.rs.core.Response getJobListforNotebook()
throws IOException,
IllegalArgumentException
- IOException, - IllegalArgumentExceptionIOExceptionIllegalArgumentExceptionpublic javax.ws.rs.core.Response getUpdatedJobListforNotebook(long lastUpdateUnixTime)
throws IOException,
IllegalArgumentException
- IOException, - IllegalArgumentExceptionIOExceptionIllegalArgumentExceptionpublic javax.ws.rs.core.Response search(String queryTerm)
Copyright © 2013–2016 The Apache Software Foundation. All rights reserved.