As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
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
In what context do you need the principal? Low-level Java code? Java Operation code? Automation scripting? EL?
In java Operation code
May be this way:
@Context protected OperationContext ctx; @OperationMethod public DocumentModel run(DocumentModel doc) throws Exception { Principal principal = ctx.getPrincipal(); }