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


public interface ItemSendRequestManager

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

Method Summary
 void acceptRequest(java.lang.String id)
          Accept a request.
 void acceptRequest(java.lang.String id, java.lang.String destinationFolderId)
          Accept a request indicating where to save the sent object.
 void declineRequest(java.lang.String id)
          Decline a request.
 java.util.List<ItemSendRequest> getRequests()
          Return all pending requests.
 void sendRequest(java.lang.String workspaceItemId, java.util.List<java.lang.String> addressees)
          Create a new send request.
 void sendRequestToUsers(java.lang.String workspaceItemId, java.util.List<User> addressees)
          Create a new send request.
 

Method Detail

sendRequestToUsers

void sendRequestToUsers(java.lang.String workspaceItemId,
                        java.util.List<User> addressees)
                        throws ItemNotFoundException,
                               InternalErrorException
Create a new send request.

Parameters:
workspaceItemId - the sent object.
addressees - the request addressees.
Throws:
ItemNotFoundException
InternalErrorException

sendRequest

void sendRequest(java.lang.String workspaceItemId,
                 java.util.List<java.lang.String> addressees)
                 throws ItemNotFoundException,
                        InternalErrorException
Create a new send request.

Parameters:
workspaceItemId - the sent object.
addressees - the request portal login addressees.
Throws:
ItemNotFoundException
InternalErrorException

getRequests

java.util.List<ItemSendRequest> getRequests()
Return all pending requests.

Returns:
the pending requests.

acceptRequest

void acceptRequest(java.lang.String id)
                   throws InternalErrorException
Accept a request.

Parameters:
id - the request id.
Throws:
InternalErrorException - if an internal error occurs.

acceptRequest

void acceptRequest(java.lang.String id,
                   java.lang.String destinationFolderId)
                   throws InternalErrorException,
                          WrongDestinationException
Accept a request indicating where to save the sent object.

Parameters:
id - the request id.
destinationFolderId - the destination folder.
Throws:
InternalErrorException - if an internal error occurs.
WrongDestinationException

declineRequest

void declineRequest(java.lang.String id)
Decline a request.

Parameters:
id - the request id.