mam-dev / cosmo

Cosmo Calendar Server implements the server side of the CalDAV protocol.
Apache License 2.0
77 stars 45 forks source link

is possible to subscribe users to particular user event ? #42

Closed sdongare closed 3 years ago

sdongare commented 4 years ago

is possible to create event one time for user and share same event with other user when he wants like subscription? if possible please give hint. thanks in advance.

danielgrigore commented 4 years ago

Hi @sdongare,

I don't know if I understood your question correctly, but it is possible to create a ticket of type read_write and attach it to an item. With that ticket another user can modify the item.

Item item = new HibNoteItem(); Ticket ticket = this.entityFactory.createTicket(TicketType.READ_WRITE); ticket.setOwner(item.getOwner()); ticket.setTimeout(Ticket.TIMEOUT_INFINITE); String ticketKey = generateTicketKey("someEmailAddress@some.some"); ticket.setKey(ticketKey); this.contentService.createTicket(item, ticket);

You will have to create your own method for generating the ticket keys. Hope this helps. Cheers,

sdongare commented 4 years ago

Thank you.