You have to add the following method to the ContentEvent class:

protected final static String PRINCIPAL = "principal";

public String[][] getInformation() {
     return new String [][] { { URI_KEY, getUri() },
                              { PRINCIPAL,
getToken().getCredentialsToken().getPrincipal().getName() }
     };
}

After adding this to the Slide core the principal name will be available in
the map that you get in the notify method.
If this is of general interest I can add this to the Slide CVS head.
Cheers,
Daniel


> -----Urspr�ngliche Nachricht-----
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Im Auftrag von Zolt�n L�rincz
> Gesendet: Donnerstag, 6. Januar 2005 14:03
> An: [email protected]
> Betreff: WebDAV notifications
> 
> Hello,
> 
> i we are using slide (2.1rc1).
> 
> Our application consist of the slide server and many java swing
> clients using the slide webdavlib.
> To syncronize the clients with the changes on the server we are using
> the WebDAV notifications (NotificationListener, Subscriber classes).
> 
> Is there a way to find out  in the  Subscriber.notify(String, Map)
> method the user (href of the user) who did  the modification ?
> 
> Thanks,
> Zolt�n.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to