fixed bug in jackson deserialise

This commit is contained in:
Massimiliano Assante 2022-05-04 09:48:50 +02:00
parent 52f8b5493c
commit 15b23802a0
3 changed files with 10 additions and 4 deletions

View File

@ -7,6 +7,8 @@ import com.fasterxml.jackson.annotation.JsonProperty;
public class WorkspaceFolderBean {
@JsonProperty("id")
@NotNull
private String id;
@ -35,6 +37,11 @@ public class WorkspaceFolderBean {
@NotNull
boolean vreFolder;
public WorkspaceFolderBean() {
super();
// TODO Auto-generated constructor stub
}
public WorkspaceFolderBean(String id, String name, String title, String displayName, String path, String parentId, boolean vreFolder) {
super();
this.id = id;

View File

@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
@JsonIgnoreProperties(ignoreUnknown=true)
@JsonTypeName("SHARED_FOLDER")
@JsonTypeName("FOLDER_SHARE")
public class WorkspaceNotificationSharedFolder extends WorkspaceNotification {
/**
@ -23,7 +23,7 @@ public class WorkspaceNotificationSharedFolder extends WorkspaceNotification {
private WorkspaceFolderBean folder;
public WorkspaceNotificationSharedFolder(WorkspaceNotificationType TYPE) {
public WorkspaceNotificationSharedFolder() {
super(WorkspaceNotificationType.FOLDER_SHARE);
}

View File

@ -7,7 +7,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeName;
@JsonIgnoreProperties(ignoreUnknown=true)
@JsonTypeName("UNSHARED_FOLDER")
@JsonTypeName("FOLDER_UNSHARE")
public class WorkspaceNotificationUnsharedFolder extends WorkspaceNotification {
@ -26,7 +26,6 @@ public class WorkspaceNotificationUnsharedFolder extends WorkspaceNotification {
@NotNull(message="unsharedFolderName cannot be missing")
private String unsharedFolderName;
public WorkspaceNotificationUnsharedFolder() {
super(WorkspaceNotificationType.FOLDER_UNSHARE);