10-12-2017 06:22 AM
Hi.Can anyone tell me how to get the current user logged in Nuxeo..I am using NuxeoPrincipal but it comes null.I take it this way: @Context NuxeoPrincipal principal
10-12-2017 08:02 AM
In what context do you need the principal? Low-level Java code? Java Operation code? Automation scripting? EL?
10-12-2017 08:42 AM
In java Operation code
10-12-2017 11:56 AM
May be this way:
@Context
protected OperationContext ctx;
@OperationMethod
public DocumentModel run(DocumentModel doc) throws Exception {
Principal principal = ctx.getPrincipal();
}
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.