|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.sharing.services.JpaSharingTicketService
@Named(value="sharingTicketService") @Service @Transactional public class JpaSharingTicketService
Constructor Summary | |
---|---|
JpaSharingTicketService()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JpaSharingTicketService()
Method Detail |
---|
public List<Ticket> getTicketsByUser(String userId)
SharingTicketService
getTicketsByUser
in interface SharingTicketService
userId
- the identifier of the user that has emitted the tickets.
public void deleteTicketsForSharedObject(Long sharedObjectId, String type)
SharingTicketService
deleteTicketsForSharedObject
in interface SharingTicketService
sharedObjectId
- the identifier of the shared object.type
- is this shared object type.public Ticket getTicket(String key)
SharingTicketService
getTicket
in interface SharingTicketService
key
- the key identifying the ticket.
public String createTicket(Ticket ticket)
SharingTicketService
createTicket
in interface SharingTicketService
ticket
- the ticket to save.
public void addDownload(DownloadDetail download)
SharingTicketService
addDownload
in interface SharingTicketService
download
- the new download to add in the list.public void updateTicket(Ticket ticket)
SharingTicketService
updateTicket
in interface SharingTicketService
ticket
- the ticket with updated information.public void deleteTicket(String key)
SharingTicketService
deleteTicket
in interface SharingTicketService
key
- the key identifying the ticket.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |