/** * return group with given group name in domain * * @param groupName * @return Group */ public Group getGroupByNameInDomain(String groupName, String domainId) throws Exception { try { // Set the OrganizationSchema (if not already done) getOrganizationSchema(); // Get a DomainDriver instance DomainDriver domainDriver = this.getDomainDriver(idAsInt(domainId)); // Get the group information without id and userId[] return domainDriver.getGroupByName(groupName); } catch (AdminException e) { throw new AdminException( "DomainDriverManager.getGroupByNameInDomain", SilverpeasException.ERROR, "admin.EX_ERR_GET_GROUP", "group Name: '" + groupName + "'", e); } finally { releaseOrganizationSchema(); } }