Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ public Response createNote(String message) throws IOException {
defaultInterpreterGroup = zConf.getString(ZeppelinConfiguration.ConfVars.ZEPPELIN_INTERPRETER_GROUP_DEFAULT);
}
String noteId = notebookService.createNote(
request.getName(),
request.getNotePath(),
defaultInterpreterGroup,
request.getAddingEmptyParagraph(),
getServiceContext(),
Expand Down Expand Up @@ -571,7 +571,7 @@ public Response cloneNote(@PathParam("noteId") String noteId, String message)
String newNoteName = null;
String revisionId = null;
if (request != null) {
newNoteName = request.getName();
newNoteName = request.getNotePath();
revisionId = request.getRevisionId();
}
AuthenticationInfo subject = new AuthenticationInfo(authenticationService.getPrincipal());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,14 @@
*/
public class NewNoteRequest {

//TODO(zjffdu) rename it to be notePath instead of name
private final String name;
private final String notePath;
private final String defaultInterpreterGroup;
private final Boolean addingEmptyParagraph;
private final List<NewParagraphRequest> paragraphs;
private final String revisionId;

public NewNoteRequest(String name, String defaultInterpreterGroup, Boolean addingEmptyParagraph, List<NewParagraphRequest> paragraphs, String revisionId) {
this.name = name;
public NewNoteRequest(String notePath, String defaultInterpreterGroup, Boolean addingEmptyParagraph, List<NewParagraphRequest> paragraphs, String revisionId) {
this.notePath = notePath;
this.defaultInterpreterGroup = defaultInterpreterGroup;
this.addingEmptyParagraph = addingEmptyParagraph;
this.paragraphs = paragraphs;
Expand All @@ -49,8 +48,8 @@ public boolean getAddingEmptyParagraph() {
return addingEmptyParagraph.booleanValue();
}

public String getName() {
return name;
public String getNotePath() {
return notePath;
}

public String getDefaultInterpreterGroup() {
Expand Down
Loading