org.gcube.portlets.user.homelibrary.home.workspace.sharing
Interface WorkspaceMessage


public interface WorkspaceMessage

Author:
Federico De Faveri defaveri@isti.cnr.it

Method Summary
 List<String> getAddresses()
           
 List<WorkspaceItem> getAttachments()
           
 List<String> getAttachmentsIds()
           
 String getBody()
           
 String getId()
          Return this request id.
 User getSender()
          Return this request sender.
 Calendar getSendTime()
          Return the request send time.
 String getSubject()
           
 boolean isRead()
           
 void open()
           
 WorkspaceItem saveAttachment(String attachmentId, String destinationFolderId)
           
 void saveAttachments(String destinationFolderId)
           
 void setStatus(boolean status)
           
 

Method Detail

getId

String getId()
Return this request id.

Returns:
the id.

getSubject

String getSubject()

getBody

String getBody()

getSender

User getSender()
Return this request sender.

Returns:
the sender.

getSendTime

Calendar getSendTime()
Return the request send time.

Returns:
the send time.

isRead

boolean isRead()
Returns:

setStatus

void setStatus(boolean status)
               throws InternalErrorException
Parameters:
status - TODO
Throws:
InternalErrorException

getAttachmentsIds

List<String> getAttachmentsIds()
Returns:

saveAttachments

void saveAttachments(String destinationFolderId)
                     throws InternalErrorException,
                            WrongDestinationException,
                            ItemNotFoundException
Parameters:
destinationFolderId -
Throws:
InternalErrorException
WrongDestinationException
ItemNotFoundException

getAttachments

List<WorkspaceItem> getAttachments()
                                   throws InternalErrorException
Returns:
Throws:
InternalErrorException

saveAttachment

WorkspaceItem saveAttachment(String attachmentId,
                             String destinationFolderId)
                             throws InternalErrorException,
                                    WrongDestinationException,
                                    ItemNotFoundException
Parameters:
attachmentId -
destinationFolderId -
Returns:
the attachment saved on user workspace.
Throws:
InternalErrorException
WrongDestinationException
ItemNotFoundException

open

void open()
          throws InternalErrorException
Throws:
InternalErrorException

getAddresses

List<String> getAddresses()
Returns:


Copyright © 2013. All Rights Reserved.