|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SharingTicketService
The business service of file sharing. The file sharing service provides a way to share files from the Silverpeas portal to external users. The share of a file to external users consists of creation a ticket for downloading this file from the Silverpeas portal. This ticket can be limited in time and in download count.
Method Summary | |
---|---|
void |
addDownload(DownloadDetail download)
Updates the list of downloads that were done for a specified ticket. |
String |
createTicket(Ticket ticket)
Creates a new ticket in the system. |
void |
deleteTicket(String key)
Deletes the ticket identified by the specified key. |
void |
deleteTicketsForSharedObject(Long sharedObjectId,
String type)
Deletes all the tickets about the specified file. |
Ticket |
getTicket(String key)
Gets the ticket identified by the specified key. |
List<Ticket> |
getTicketsByUser(String userId)
Gets all the tickets emitted by the specified users. |
void |
updateTicket(Ticket ticket)
Updates the information of the specified ticket. |
Method Detail |
---|
List<Ticket> getTicketsByUser(String userId)
userId
- the identifier of the user that has emitted the tickets.
void deleteTicketsForSharedObject(Long sharedObjectId, String type)
sharedObjectId
- the identifier of the shared object.type
- is this shared object type.Ticket getTicket(String key)
key
- the key identifying the ticket.
String createTicket(Ticket ticket)
ticket
- the ticket to save.
void addDownload(DownloadDetail download)
download
- the new download to add in the list.void updateTicket(Ticket ticket)
ticket
- the ticket with updated information.void deleteTicket(String key)
key
- the key identifying the ticket.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |