How to get multple repostiory areas?
Hello,
When I run my plugin, it seems like regardless of which port I log into (8080 or 8443) I see the same data, even though the call to getRepositories gives me two repositories that I can check if I am logged in to. Does this sound like correct functionality? If so, is there any way to set it up so if you log in to a different port you have a different repository area? Or, is there a good way to divide up the server repository data based on what teams or project areas you have access to? Right now my backup plan is to run a different instance of the jazz server for each team but that seems like a poor solution. Thanks, Jamie |
One answer
jsamdal wrote:
Hello, This functionality is correct. The different ports are just two different ways of connecting to the same repository (with different security protocols). The type ITeamRepository returned by getRepositories() may be somewhat confusingly named. Perhaps ITeamRepositoryConnection would make more sense because it encapsulates the URL (note: several different URLs may map to the same repository) and the user login info (many different users can login to the same repository). Suppose you are holding two ITeamRepository instances (perhaps for two different users) and want to know if they represent the same Jazz repository database... it looks like ITeamRepository.getId() is meant to support this case. there any way to set it up so if you log in to a different port you The only way (I know) to do this would be your "backup plan" of running several instances of the jazz server on different ports with different database instances. up the server repository data based on what teams or project areas Reading between the lines, I think what you are asking is to have each team area get its own collection of Streams, WorkItems, Builds, etc. such that each team has access only to its own artifacts (to prevent cheating or plagiarism for the classroom setting). All of these item types (Streams, Workitems, etc...) can currently be scoped by team area, but I'm not sure if the access permissions story currently covers them all. There seems to be a lot of work going on around access permissions for M4 (available end of this week), so you may want to grab M4, study the new-and-noteworthy and try to set it up for your specifications (and then report back here on the experience and/or file defects). Depending on your timeframe, the "run multiple Jazz servers" approach may turn out to be the most practical. I hope this helps, Chris |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.