Hi everyone,
I developped a Custom Component that is trying to retrieve a list of task (List<TaskRow>) assigned to a specific user (passed as parameter).
I understood that I need to connect to the server with his username and password in order to use the TaskManagerQueryService.taskList() and get his tasks.
My problem is that when I use this code inside my DSC :
Properties connectionProps = new Properties();
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_DEFAULT_SOAP_ENDPOINT, soapEndpoint);
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_TRANSPORT_PROTOCOL, ServiceClientFactoryProperties.DSC_SOAP_PROTOCOL);
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_SERVER_TYPE, serverType);
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_USERNAME, userID);
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_PASSWORD, userPassword);
ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);
It seems that the connection is done with the default LiveCycle user, like when we use :
ServiceClientFactory myFactory = ServiceClientFactory.createInstance();
Is there a way to force the connection with a specific user inside a DSC Component ?
Kind regards,
Thomas