-
Task
-
Resolution: Unresolved
-
Minor
-
None
An AbstractOrganization can have an abirtray root - organisations do not have to exist at the root of Jenkins.
However getGroup() is defined on AbstractOrganization and the API uses BlueOrganization so this leads to messy code with cast and instanceof.
The structure of the code should be re-evaluated.
Seems like we are supposed to use OrganizationFactory.getItemGroup(String orgname) but we are not pointed to that in AbstractOrganization.getGroup() which should probably be protected scope to force the use of the internal API along with a javadoc comment.