fixed serialization
This commit is contained in:
parent
15b23802a0
commit
d0feaac8eb
1
pom.xml
1
pom.xml
|
@ -106,7 +106,6 @@
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<build>
|
<build>
|
||||||
<finalName>${project.name}</finalName>
|
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
|
|
@ -20,20 +20,15 @@ public class WorkspaceNotificationAddedItem extends WorkspaceNotification {
|
||||||
@NotNull(message="fileItem cannot be missing")
|
@NotNull(message="fileItem cannot be missing")
|
||||||
private WorkspaceFileItemBean item;
|
private WorkspaceFileItemBean item;
|
||||||
|
|
||||||
@JsonProperty("folderItem")
|
|
||||||
@NotNull(message="folderItem cannot be missing")
|
|
||||||
private WorkspaceFolderBean folder;
|
|
||||||
|
|
||||||
public WorkspaceNotificationAddedItem() {
|
public WorkspaceNotificationAddedItem() {
|
||||||
super(WorkspaceNotificationType.ITEM_NEW);
|
super(WorkspaceNotificationType.ITEM_NEW);
|
||||||
// TODO Auto-generated constructor stub
|
// TODO Auto-generated constructor stub
|
||||||
}
|
}
|
||||||
|
|
||||||
public WorkspaceNotificationAddedItem(String userIdToNotify, WorkspaceFileItemBean item, WorkspaceFolderBean folder) {
|
public WorkspaceNotificationAddedItem(String userIdToNotify, WorkspaceFileItemBean item) {
|
||||||
super(WorkspaceNotificationType.ITEM_NEW);
|
super(WorkspaceNotificationType.ITEM_NEW);
|
||||||
this.userIdToNotify = userIdToNotify;
|
this.userIdToNotify = userIdToNotify;
|
||||||
this.item = item;
|
this.item = item;
|
||||||
this.folder = folder;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getUserIdToNotify() {
|
public String getUserIdToNotify() {
|
||||||
|
@ -52,17 +47,10 @@ public class WorkspaceNotificationAddedItem extends WorkspaceNotification {
|
||||||
this.item = item;
|
this.item = item;
|
||||||
}
|
}
|
||||||
|
|
||||||
public WorkspaceFolderBean getFolder() {
|
|
||||||
return folder;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setFolder(WorkspaceFolderBean folder) {
|
|
||||||
this.folder = folder;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "WorkspaceNotificationAddedItem [userIdToNotify=" + userIdToNotify + ", item=" + item + ", folder=" + folder
|
return "WorkspaceNotificationAddedItem [userIdToNotify=" + userIdToNotify + ", item=" + item + "]";
|
||||||
+ "]";
|
}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue