Skip navigation
Currently Being Moderated

Retrieve specific user tasklist in DSC

Aug 10, 2011 7:56 AM

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_TRANSPO RT_PROTOCOL, ServiceClientFactoryProperties.DSC_SOAP_PROTOCOL);

connectionProps.setProperty(ServiceClientFactoryProperties.DSC_SERVER_ TYPE, serverType);

connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENT IAL_USERNAME, userID);

connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENT IAL_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

 

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points