given the groupName, it returns the groupId

@param groupName name of group
@return ID of group
488746
public Integer getGroupIdFromName(String groupName) {
        return (Integer) sqlService.getFromTable(Constants.GENERIC_ID, Constants.GROUPS_GROUP_NAME, groupName,
                                                 Constants.DB_TABLE_GROUPS);
    }
426600
public Object getGroupById(String id) {
		String name = elementToName.get(id);
		if (name != null) {
			return idToGroup.get(Dom.disAssembleId(id, name));
		} else {
			return null;
		}
	}
94148
public static systemgroup get(nitro_service service, String groupname) throws Exception{
		systemgroup obj = new systemgroup();
		obj.set_groupname(groupname);
		systemgroup response = (systemgroup) obj.get_resource(service);
		return response;
	}
759688
public List<String> groupNames() {
        if (groupNames == null) {
            groupNames = new ArrayList<String>(groupInfo.keySet());
        }
        return Collections.unmodifiableList(groupNames);
    }
393692
public static String[] getXhash(String groupName, String unitName) {
        try {
            return UnitRouter.SINGLETON.newestDefinition(Unit.fullName(groupName, unitName)).getInput().getXhashNames();
        } catch (UnitUndefinedException e) {
            throw new RuntimeException("Please call UnitJudge.defined() first.", e);
        }
    }
1016821
public String getGroupId() {
    if (group == null ) {
      return null;
    } else {
      return group.id == null ? group.nsid : group.id;
    }
  }
4568
public boolean deleteGroup(String groupName) {
		if (groupsFile != null) {
			lock.writeLock().lock();
			try {
				reloadGroupsFromFile();
				groups.remove(groupName);
				return writeGroupFile();
			} finally {
				lock.writeLock().unlock();
			}
		} // end if resourcePath not null
		return false;
	}
213994
public static String groupFromResourceId(String id) {
        return (id != null) ? ResourceId.fromString(id).resourceGroupName() : null;
    }
505735
public Observable<ClusterInner> getByResourceGroupAsync(String resourceGroupName, String clusterName) {
        return getByResourceGroupWithServiceResponseAsync(resourceGroupName, clusterName).map(new Func1<ServiceResponse<ClusterInner>, ClusterInner>() {
            @Override
            public ClusterInner call(ServiceResponse<ClusterInner> response) {
                return response.body();
            }
        });
    }
734169
public java.lang.String getGroup() {
    java.lang.Object ref = group_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      if (bs.isValidUtf8()) {
        group_ = s;
      }
      return s;
    }
  }
1372178
public boolean belongsTo(String groupname) {
        if (groupname == null) {
            return false;
        }
        for (PMSecurityUserGroup g : getGroups()) {
            if (groupname.equalsIgnoreCase(g.getName())) {
                return true;
            }
        }
        return false;
    }
1094981
public static boolean available(String groupName) {
        return LocalUnitsManager.getGroupByName(groupName) != null ||
                (GroupDiscovery.singleton != null && GroupDiscovery.singleton.firstInstance(groupName) != null);
    }
718581
public static Unit getLocalUnit(String groupName, String unitName) {
        return getLocalUnit(Unit.fullName(groupName, unitName));
    }
1148260
public static int getTagId(String name) {
    int id = -1;
    try {
      if (instance == null)
        getTiffTags();
    } catch (ReadTagsIOException e) {
      /*Nothing to be shown*/
    }
    if (tagNames.containsKey(name))
      id = tagNames.get(name).getId();
    return id;
  }
1371104
public UserGroupsResult getGroupList(String username)
            throws APIConnectionException, APIRequestException {
        StringUtils.checkUsername(username);
        ResponseWrapper response = _httpClient.sendGet(_baseUrl + userPath + "/" + username + "/groups");

        return UserGroupsResult.fromResponse(response);
    }
1229049
private String getPrimaryGroupId(List<String> uniqueGroupIds) {
        return uniqueGroupIds.isEmpty() ? null : uniqueGroupIds.get(0);
    }
936951
public String getDirectory(String groupName) {
    return directory != null ? directory : System.getProperty("atomix.data", DATA_PREFIX) + "/" + groupName;
  }