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

70 lines
1.9 KiB
Java

package org.gcube.social_networking.socialnetworking.model.beans;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeName;
@JsonIgnoreProperties(ignoreUnknown=true)
public class WSUnsharedFolderNotificationBean implements WorkspaceNotificationBean {
/**
* the username of the user you wish to notify
*/
@JsonProperty("userIdToNotify")
@NotNull(message="recipient cannot be missing")
private String userIdToNotify;
@JsonProperty("unsharedFolderId")
@NotNull(message="folderid cannot be missing")
private String unsharedFolderId;
@JsonProperty("unsharedFolderName")
@NotNull(message="unsharedFolderName cannot be missing")
private String unsharedFolderName;
public WSUnsharedFolderNotificationBean() {
super();
// TODO Auto-generated constructor stub
}
public WSUnsharedFolderNotificationBean(String userIdToNotify, String unsharedFolderId, String unsharedFolderName) {
super();
this.userIdToNotify = userIdToNotify;
this.unsharedFolderId = unsharedFolderId;
this.unsharedFolderName = unsharedFolderName;
}
@Override
public String toString() {
return "WSUnsharedFolderNotificationBean [userIdToNotify=" + userIdToNotify + ", unsharedFolderId="
+ unsharedFolderId + ", unsharedFolderName=" + unsharedFolderName + "]";
}
public String getUserIdToNotify() {
return userIdToNotify;
}
public void setUserIdToNotify(String userIdToNotify) {
this.userIdToNotify = userIdToNotify;
}
public String getUnsharedFolderId() {
return unsharedFolderId;
}
public void setUnsharedFolderId(String unsharedFolderId) {
this.unsharedFolderId = unsharedFolderId;
}
public String getUnsharedFolderName() {
return unsharedFolderName;
}
public void setUnsharedFolderName(String unsharedFolderName) {
this.unsharedFolderName = unsharedFolderName;
}
}