47 lines
1.0 KiB
Java
47 lines
1.0 KiB
Java
package org.gcube.common.storagehub.model.messages;
|
|
|
|
import static org.gcube.common.storagehub.model.NodeConstants.OWNER_NAME;
|
|
|
|
import java.util.Calendar;
|
|
|
|
import org.gcube.common.storagehub.model.annotations.Attribute;
|
|
import org.gcube.common.storagehub.model.annotations.NodeAttribute;
|
|
import org.gcube.common.storagehub.model.annotations.RootNode;
|
|
import org.gcube.common.storagehub.model.items.RootItem;
|
|
import org.gcube.common.storagehub.model.items.nodes.Owner;
|
|
|
|
import lombok.Getter;
|
|
import lombok.NoArgsConstructor;
|
|
import lombok.Setter;
|
|
|
|
@Getter
|
|
@Setter
|
|
@NoArgsConstructor
|
|
@RootNode("nthl:itemSentRequest")
|
|
public class Message extends RootItem{
|
|
|
|
boolean withAttachments;
|
|
|
|
@NodeAttribute(value=OWNER_NAME)
|
|
Owner sender;
|
|
|
|
@Attribute("hl:subject")
|
|
String subject;
|
|
|
|
@Attribute("hl:body")
|
|
String body;
|
|
|
|
@Attribute("hl:read")
|
|
boolean read;
|
|
|
|
@Attribute("hl:open")
|
|
boolean opened;
|
|
|
|
@Attribute("hl:addresses")
|
|
String[] addresses;
|
|
|
|
@Attribute(value = "jcr:created", isReadOnly=true)
|
|
Calendar creationTime;
|
|
|
|
}
|