fixed bug in jackson deserialise
This commit is contained in:
parent
52f8b5493c
commit
15b23802a0
|
@ -7,6 +7,8 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
public class WorkspaceFolderBean {
|
public class WorkspaceFolderBean {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
@NotNull
|
@NotNull
|
||||||
private String id;
|
private String id;
|
||||||
|
@ -35,6 +37,11 @@ public class WorkspaceFolderBean {
|
||||||
@NotNull
|
@NotNull
|
||||||
boolean vreFolder;
|
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) {
|
public WorkspaceFolderBean(String id, String name, String title, String displayName, String path, String parentId, boolean vreFolder) {
|
||||||
super();
|
super();
|
||||||
this.id = id;
|
this.id = id;
|
||||||
|
|
|
@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
|
|
||||||
|
|
||||||
@JsonIgnoreProperties(ignoreUnknown=true)
|
@JsonIgnoreProperties(ignoreUnknown=true)
|
||||||
@JsonTypeName("SHARED_FOLDER")
|
@JsonTypeName("FOLDER_SHARE")
|
||||||
public class WorkspaceNotificationSharedFolder extends WorkspaceNotification {
|
public class WorkspaceNotificationSharedFolder extends WorkspaceNotification {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -23,7 +23,7 @@ public class WorkspaceNotificationSharedFolder extends WorkspaceNotification {
|
||||||
private WorkspaceFolderBean folder;
|
private WorkspaceFolderBean folder;
|
||||||
|
|
||||||
|
|
||||||
public WorkspaceNotificationSharedFolder(WorkspaceNotificationType TYPE) {
|
public WorkspaceNotificationSharedFolder() {
|
||||||
super(WorkspaceNotificationType.FOLDER_SHARE);
|
super(WorkspaceNotificationType.FOLDER_SHARE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonTypeName;
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
|
|
||||||
@JsonIgnoreProperties(ignoreUnknown=true)
|
@JsonIgnoreProperties(ignoreUnknown=true)
|
||||||
@JsonTypeName("UNSHARED_FOLDER")
|
@JsonTypeName("FOLDER_UNSHARE")
|
||||||
public class WorkspaceNotificationUnsharedFolder extends WorkspaceNotification {
|
public class WorkspaceNotificationUnsharedFolder extends WorkspaceNotification {
|
||||||
|
|
||||||
|
|
||||||
|
@ -26,7 +26,6 @@ public class WorkspaceNotificationUnsharedFolder extends WorkspaceNotification {
|
||||||
@NotNull(message="unsharedFolderName cannot be missing")
|
@NotNull(message="unsharedFolderName cannot be missing")
|
||||||
private String unsharedFolderName;
|
private String unsharedFolderName;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public WorkspaceNotificationUnsharedFolder() {
|
public WorkspaceNotificationUnsharedFolder() {
|
||||||
super(WorkspaceNotificationType.FOLDER_UNSHARE);
|
super(WorkspaceNotificationType.FOLDER_UNSHARE);
|
||||||
|
|
Loading…
Reference in New Issue