minor fixes
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/social-networking/social-networking-service-model@163345 82a268e6-3cf1-43bd-a215-b396298e98cfFeature/23186
parent
9a74892f42
commit
1dbc072f16
@ -1,8 +1,8 @@
|
||||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
|
||||
org.eclipse.jdt.core.compiler.compliance=1.7
|
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
|
||||
org.eclipse.jdt.core.compiler.compliance=1.8
|
||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
|
||||
org.eclipse.jdt.core.compiler.source=1.7
|
||||
org.eclipse.jdt.core.compiler.source=1.8
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<faceted-project>
|
||||
<installed facet="java" version="1.7"/>
|
||||
<installed facet="jst.utility" version="1.0"/>
|
||||
<installed facet="java" version="1.8"/>
|
||||
</faceted-project>
|
||||
|
@ -0,0 +1,2 @@
|
||||
disabled=06target
|
||||
eclipse.preferences.version=1
|
@ -0,0 +1,62 @@
|
||||
package org.gcube.portal.socialnetworking.model.output;
|
||||
|
||||
import java.util.Calendar;
|
||||
import java.util.List;
|
||||
|
||||
import javax.jcr.ItemNotFoundException;
|
||||
|
||||
import org.gcube.common.homelibrary.home.User;
|
||||
import org.gcube.common.homelibrary.home.exceptions.InternalErrorException;
|
||||
import org.gcube.common.homelibrary.home.workspace.WorkspaceItem;
|
||||
import org.gcube.common.homelibrary.home.workspace.exceptions.WrongDestinationException;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
/**
|
||||
* Used for serialization/deserialization of {@link org.gcube.common.homelibrary.home.workspace.sharing.WorkspaceMessage}
|
||||
* @author Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it)
|
||||
*/
|
||||
public interface MessageOutputBeanMixIn {
|
||||
|
||||
@JsonProperty("id")
|
||||
String getId();
|
||||
|
||||
@JsonProperty("subject")
|
||||
String getSubject();
|
||||
|
||||
@JsonProperty("body")
|
||||
String getBody();
|
||||
|
||||
@JsonProperty("sender")
|
||||
User getSender();
|
||||
|
||||
@JsonProperty("send_time")
|
||||
Calendar getSendTime();
|
||||
|
||||
@JsonProperty("read")
|
||||
boolean isRead();
|
||||
|
||||
@JsonIgnore
|
||||
void setStatus(boolean status) throws InternalErrorException;
|
||||
|
||||
@JsonProperty("attachments_ids")
|
||||
List<String> getAttachmentsIds();
|
||||
|
||||
@JsonIgnore
|
||||
List<WorkspaceItem> getAttachments() throws InternalErrorException;
|
||||
|
||||
@JsonIgnore
|
||||
WorkspaceItem saveAttachment(String attachmentId, String destinationFolderId)
|
||||
throws InternalErrorException, WrongDestinationException,
|
||||
ItemNotFoundException;
|
||||
|
||||
@JsonIgnore
|
||||
void open() throws InternalErrorException;
|
||||
|
||||
@JsonProperty("recipients")
|
||||
List<String> getAddresses();
|
||||
|
||||
@JsonIgnore
|
||||
List<String> getCopyAttachmentsIds();
|
||||
|
||||
}
|
Loading…
Reference in New Issue