It's all about the answers!

Ask a question

interfacing with LPA programmatically


Alexander Bristol (111) | asked Jun 29 '11, 12:23 p.m.
Is there a way to administrate lifecycle projects in LPA from client code? Specifically:

    creating users with access to constituent applications
    creating/archiving/unarchiving lifecycle projects and their constituent projects in ccm/rm/qm applications
    adding/removing users to lifecycle and constituent projects


Is there a way to do this using the RTC SDK or the JFS SDK/REST services? The JFS REST user service documented here (https://jazz.net/wiki/bin/view/Main/JFSUsersAPI) is described as read-only, so I imagine creating users is not possible using this service.

In the RTC SDK, using the access method in the 'Snippets' examples (com.ibm.team.repository.client.TeamPlatform.getTeamRepositoryService() and then com.ibm.team.repository.client.ITeamRepositoryService.getTeamRepository(String, int, IProgressMonitor) ) fails with a version incompatibility message (even though the SDK, RTC client, and server are all 3.0.1).

Jun 29, 2011 11:26:13 AM com.ibm.team.repository.client.util.RepositoryUtil getRepositoryId
INFO: CRJAZ0053I The identifier for the repository identified by "https://jazz.example.com:9443/admin" could not be contacted: Server returned HTTP response code: 403 for URL: https://jazz.example.com:9443/admin/repo/repositoryId
java.io.IOException: Server returned HTTP response code: 403 for URL: https://jazz.example.com:9443/admin/repo/repositoryId
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1196)
at com.ibm.net.ssl.www2.protocol.https.a.getInputStream(a.java:11)
at com.ibm.team.repository.client.util.RepositoryUtil.getRepositoryId(RepositoryUtil.java:87)
at com.ibm.team.repository.client.internal.TeamRepositoryService.internalGetTeamRepository(TeamRepositoryService.java:324)
at com.ibm.team.repository.client.internal.TeamRepositoryService.getTeamRepository(TeamRepositoryService.java:166)
at com.ibm.wplc.rtc.LPAList.login(LPAList.java:36)
at com.ibm.wplc.rtc.LPAList.main(LPAList.java:27)
Contacting https://jazz.example.com:9443/admin/...
Unable to login: The server you are connecting to is older than your client and not compatible. Please contact your system administrator to determine the server version and download the appropriate client.
Jun 29, 2011 11:26:16 AM org.apache.commons.httpclient.HttpConnection releaseConnection
WARNING: HttpConnectionManager is null. Connection cannot be released.


Are there other RTC SDK classes/access points usable for LPA (such as com.ibm.team.filesystem.client.internal.rest.LifecycleRestClient or maybe the com.ibm.team.process.common package, I see some classes prefixed with LPA in there)? Also, is there a published javadoc for the 3.0.1 SDK?

Thank you.

Be the first one to answer this question!


Register or to post your answer.