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 {
|
||||
|
||||
|
||||
|
||||
@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;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue