package org.gcube.social_networking.socialnetworking.model.beans.workspace; 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) @JsonTypeName("ITEM_DELETE") public class DeletedItemEvent extends WorkspaceEvent { private static final WorkspaceEventType TYPE = WorkspaceEventType.ITEM_DELETE; @JsonProperty("fileItem") @NotNull(message="fileItem cannot be missing") private FileItemBean item; public DeletedItemEvent() { super(TYPE); // TODO Auto-generated constructor stub } /** * * @param idsToNotify usernames or contexts * @param idsAsGroup true if idsToNotify are groups (members of contexts) * @param item */ public DeletedItemEvent(String[] idsToNotify, boolean idsAsGroup, FileItemBean item) { super(TYPE); this.idsToNotify = idsToNotify; this.idsAsGroup = idsAsGroup; this.item = item; } /** * * @param idsToNotify usernames * @param item */ public DeletedItemEvent(String[] idsToNotify, FileItemBean item) { super(TYPE); this.idsToNotify = idsToNotify; this.item = item; } public FileItemBean getItem() { return item; } public void setItem(FileItemBean item) { this.item = item; } }