social-service-model/src/main/java/org/gcube/social_networking/socialnetworking/model/beans/WSAddedItemNotificationBean...

60 lines
1.4 KiB
Java

package org.gcube.social_networking.socialnetworking.model.beans;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonProperty;
public class WSAddedItemNotificationBean implements WorkspaceNotificationBean {
/**
* the username of the user you wish to notify
*/
@JsonProperty("userIdToNotify")
@NotNull(message="recipient cannot be missing")
private String userIdToNotify;
@JsonProperty("fileItem")
@NotNull(message="fileItem cannot be missing")
private WorkspaceFileItemBean item;
@JsonProperty("folderItem")
@NotNull(message="folderItem cannot be missing")
private SharedFolderBean folder;
public WSAddedItemNotificationBean(String userIdToNotify, WorkspaceFileItemBean item, SharedFolderBean folder) {
super();
this.userIdToNotify = userIdToNotify;
this.item = item;
this.folder = folder;
}
public String getUserIdToNotify() {
return userIdToNotify;
}
public void setUserIdToNotify(String userIdToNotify) {
this.userIdToNotify = userIdToNotify;
}
public WorkspaceFileItemBean getItem() {
return item;
}
public void setItem(WorkspaceFileItemBean item) {
this.item = item;
}
public SharedFolderBean getFolder() {
return folder;
}
public void setFolder(SharedFolderBean folder) {
this.folder = folder;
}
@Override
public String toString() {
return "WSAddedItemNotificationBean [userIdToNotify=" + userIdToNotify + ", item=" + item + ", folder=" + folder
+ "]";
}
}