group management
341100
public void newGroup() {
        // create parent
        QueryCriteria newCriteriaGroupParent = new QueryCriteria(this.union);
        addCriteria(newCriteriaGroupParent);

        //  add parent to parent stack
        ancestry.push(currentParent);
        currentParent = newCriteriaGroupParent;

        // set group criteria list to new list
        currentCriteria = newCriteriaGroupParent.getCriteria();
    }
1070503
def management(self):
        """"""

        endpoint = self._instance.get_endpoint_for_service_type(
            "management",
            region_name=self._instance._region_name,
        )

        token = self._instance.auth.get_token(self._instance.session)

        self._management = tuskar_client.get_client(
            2, os_auth_token=token, tuskar_url=endpoint)

        return self._management
125805
def group_set(self, rule_id, session, add_groups=None, delete_groups=None):
        ''''''
        request = TOPRequest('taobao.crm.rule.delete')
        request['rule_id'] = rule_id
        if add_groups!=None: request['add_groups'] = add_groups
        if delete_groups!=None: request['delete_groups'] = delete_groups
        self.create(self.execute(request, session))
        return self.is_success
498898
function group() {
        return wrap('group', and(
            displayName,
            literal(':'),
            opt(groupList),
            literal(';'),
            invis(opt(cfws))
        )());
    }
777219
void addGroupVertex(final ManagementGroupVertex groupVertex) {

		this.groupVertices.add(groupVertex);

		this.managementGraph.addGroupVertex(groupVertex.getID(), groupVertex);
	}
287813
def control_group(action, action_space, control_group_act, control_group_id):
  """"""
  del action_space
  select = action.action_ui.control_group
  select.action = control_group_act
  select.control_group_index = control_group_id
913754
def groupmember_get(self, manager_id, session):
        ''''''
        request = TOPRequest('taobao.wangwang.eservice.groupmember.get')
        request['manager_id'] = manager_id
        self.create(self.execute(request, session))
        return self.group_member_list
673678
public void initializeWorldGroup() {
        if (worldGroupManager == null) {
            worldGroupManager = new WorldGroupsManager();
            sendConsoleMessage(Level.INFO, getLanguageManager().getString("world_group_manager_loaded"));
        }
    }
114100
def tm_group(self):
        '''
        '''
        if self._tm_group is None:
            self._tm_group = self.tm_user
        return self._tm_group
161706
def create_direito_grupo_equipamento(self):
        """"""
        return DireitoGrupoEquipamento(
            self.networkapi_url,
            self.user,
            self.password,
            self.user_ldap)
877045
async def create(gc: GroupControl, name, slaves):
    """"""
    click.echo("Creating group %s with slaves: %s" % (name, slaves))
    click.echo(await gc.create(name, slaves))
955328
def create_groups(self, *names, **kwargs):
        """"""
        return tuple(self.create_group(name, **kwargs) for name in names)
1084736
public void onItemGroup(ItemGroup<?> group) {
        for (Item i : group.getItems())
            if (i.hasPermission(Item.READ))
                onItem(i);
    }
34340
def _add_group(self, group, attrs):
        
        self.handle.create_group(group)
        if attrs is not None:
            self._add_attributes(group, attrs)
343091
private function createGroup(ObjectManager $manager, $name, array $roles = array())
    {
        $group = new Group($name);
        foreach ($roles as $role) {
            $group->addRole($role);
        }
        $manager->persist($group);

        return $group;
    }
65486
private void doListGroup(final Message<JsonObject> message) {
    context.execute(new Action<Set<String>>() {
      @Override
      public Set<String> perform() {
        return groups.keySet();
      }
    }, new Handler<AsyncResult<Set<String>>>() {
      @Override
      public void handle(AsyncResult<Set<String>> result) {
        if (result.failed()) {
          message.reply(new JsonObject().putString("status", "error").putString("message", result.cause().getMessage()));
        } else {
          message.reply(new JsonObject().putString("status", "ok").putArray("result", new JsonArray(result.result().toArray(new String[result.result().size()]))));
        }
      }
    });
  }
1081862
def create_group(self, **kwargs):
        
        response = self.__requester.request(
            'POST',
            'groups',
            _kwargs=combine_kwargs(**kwargs)
        )
        return Group(self.__requester, response.json())