JAVA API: how to retrieve owner name of repository workspace
Hi,
I have an IWorkspaceConnection that represents a repository workspace. How to get its owner name?
I have tried to cast workspaceConnection.getOwner() to IContributor but I get a class cast exception.
I also tried workspaceConnection.getOwner().getAdapter(IContributor.class) but the result is null.
Accepted answer
IContributor represents the complete object of a user. The #getOwner() call returns a handle to the object. It either returns a ITeamAreaHandle or IContributorHandle.
You may want to look at Ralph Schoon's blog post about using the plain Java client API.
You may want to look at Ralph Schoon's blog post about using the plain Java client API.