cancel
Showing results for 
Search instead for 
Did you mean: 

Impersonate in webservice

lascaux
Champ on-the-rise
Champ on-the-rise
Hi,

I already use the impersonate concept in some Alfresco development using the following :

// get current connexion ticket
String myCurrentTicket = authenticationService.getCurrentTicket();

// set user for the next operations
AuthenticationUtil.setCurrentUser("admin");

//
// do some work as user "admin"
//

// restore previous connexion
authenticationService.validate(myCurrentTicket);         

I need to do the same but with WebServices, but I don't find the required method in the webservice client provided by Alfresco ?

Thanks,

Sylvain
3 REPLIES 3

lascaux
Champ on-the-rise
Champ on-the-rise
nobody has a suggestion ????

rivetlogic
Champ on-the-rise
Champ on-the-rise
Hi,

Webservice API is not being developed further as alfresco has been moving towards webscript.
Workaround would be to write a custom action and invoke that using the webservice call.

Best Regards,
Shagul

lascaux
Champ on-the-rise
Champ on-the-rise
Unfortunatly … webscript are not as usefull as webservices …

Sylvain