/** * @param groupId * @return Group[] */ @Override public Group[] getGroups(String groupId) throws Exception { Group[] groups = null; try { // Set the OrganizationSchema (if not already done) getOrganizationSchema(); // Get the user information GroupRow gr = getOrganization().group.getGroup(idAsInt(groupId)); if (gr == null) { throw new AdminException( "DomainDriverManager.getGroups", SilverpeasException.ERROR, "admin.EX_ERR_GROUP_NOT_FOUND", "group Id: '" + groupId + "'"); } // Get a DomainDriver instance DomainDriver domainDriver = this.getDomainDriver(gr.domainId); // Get Groups of Group from specific domain groups = domainDriver.getGroups(gr.specificId); } catch (AdminException e) { throw new AdminException( "DomainDriverManager.getGroups", SilverpeasException.ERROR, "admin.EX_ERR_GET_GROUPS", "father group Id: '" + groupId + "'", e); } finally { releaseOrganizationSchema(); } return groups; }