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