Inserts a new object state group into database.

@param \eZ\Publish\SPI\Persistence\Content\ObjectState\Group $objectStateGroup
761289
public function insertObjectStateGroup(Group $objectStateGroup)
    {
        $query = $this->dbHandler->createInsertQuery();
        $query->insertInto(
            $this->dbHandler->quoteTable('ezcobj_state_group')
        )->set(
            $this->dbHandler->quoteColumn('id'),
            $this->dbHandler->getAutoIncrementValue('ezcobj_state_group', 'id')
        )->set(
            $this->dbHandler->quoteColumn('default_language_id'),
            $query->bindValue(
                $this->maskGenerator->generateLanguageIndicator($objectStateGroup->defaultLanguage, false),
                null,
                \PDO::PARAM_INT
            )
        )->set(
            $this->dbHandler->quoteColumn('identifier'),
            $query->bindValue($objectStateGroup->identifier)
        )->set(
            $this->dbHandler->quoteColumn('language_mask'),
            $query->bindValue(
                $this->maskGenerator->generateLanguageMaskFromLanguageCodes($objectStateGroup->languageCodes, true),
                null,
                ParameterType::INTEGER
            )
        );

        $query->prepare()->execute();

        $objectStateGroup->id = (int)$this->dbHandler->lastInsertId(
            $this->dbHandler->getSequenceName('ezcobj_state_group', 'id')
        );

        $this->insertObjectStateGroupTranslations($objectStateGroup);
    }
970132
public function loadObjectState($objectStateGroupId, $objectStateId)
    {
        return new RestObjectState(
            $this->objectStateService->loadObjectState($objectStateId, Language::ALL),
            $objectStateGroupId
        );
    }
639685
public function createObjectStateGroup(
        ?ObjectStateGroupCreateData $data = null,
        ?string $name = null
    ): FormInterface {
        $name = $name ?: StringUtil::fqcnToBlockPrefix(ObjectStateGroupCreateType::class);

        return $this->formFactory->createNamed(
            $name,
            ObjectStateGroupCreateType::class,
            $data ?? new ObjectStateGroupCreateData()
        );
    }
887598
public function &addButtongroup(ButtonGroup $buttongroup) {

        $uniqeid = uniqid('btntoolbar_btngrp_');
        $this->groups[$uniqeid] = $buttongroup;

        return $this->groups[$uniqeid];
    }
1075912
public void insertSequence(final List<Group> groups) {
    if (groups != null && !groups.isEmpty() && !sequenceMap.containsValue(groups)) {
      sequenceMap.put(groups.get(0).getSequence(), groups);
    }
  }
1335893
public function loadObjectStates($groupId)
    {
        $data = $this->objectStateGateway->loadObjectStateListData($groupId);

        return $this->objectStateMapper->createObjectStateListFromData($data);
    }
1064747
protected function _initialize(ObjectConfig $config)
    {
        $config->append(array(
            'users' => array($this->getObject('user')),
        ));

        parent::_initialize($config);
    }
606631
public function loadGroupByIdentifier($identifier)
    {
        $data = $this->objectStateGateway->loadObjectStateGroupDataByIdentifier($identifier);

        if (empty($data)) {
            throw new NotFoundException('ObjectStateGroup', $identifier);
        }

        return $this->objectStateMapper->createObjectStateGroupFromData($data);
    }
52254
public function setContentState($contentId, $groupId, $stateId)
    {
        $this->objectStateGateway->setContentState($contentId, $groupId, $stateId);

        return true;
    }
192889
public function deleteAction(Request $request, ObjectStateGroup $group): Response
    {
        $this->denyAccessUnlessGranted(new Attribute('state', 'administrate'));
        $form = $this->formFactory->deleteObjectStateGroup(
            new ObjectStateGroupDeleteData($group)
        );
        $form->handleRequest($request);

        if ($form->isSubmitted()) {
            $result = $this->submitHandler->handle($form, function (ObjectStateGroupDeleteData $data) {
                $group = $data->getObjectStateGroup();
                $this->objectStateService->deleteObjectStateGroup($group);

                $this->notificationHandler->success(
                    $this->translator->trans(
                        /** @Desc("Object state group '%name%' deleted.") */
                        'object_state_group.delete.success',
                        ['%name%' => $group->getName()],
                        'object_state'
                    )
                );
            });

            if ($result instanceof Response) {
                return $result;
            }
        }

        return $this->redirectToRoute('ezplatform.object_state.groups.list');
    }
1343444
public function insertGroup(Group $group)
    {
        try {
            return $this->innerGateway->insertGroup($group);
        } catch (DBALException $e) {
            throw new RuntimeException('Database error', 0, $e);
        } catch (PDOException $e) {
            throw new RuntimeException('Database error', 0, $e);
        }
    }
1238802
public function updateObjectState( $objectID, $objectStateList )
    {
        $contentObject = eZContentObject::fetch( $objectID );
        $this->addObject( $contentObject );
    }
728360
private function addGroup($group)
	{
		if($group != null)
		{
			if($this->groups == null)
				$this->groups = array();
			$this->groups[] = $group;
		}
	}
748070
public function insert(Directory_Group $postBody, $optParams = array())
  {
    $params = array('postBody' => $postBody);
    $params = array_merge($params, $optParams);
    return $this->call('insert', array($params), "Directory_Group");
  }
1013308
public function addImplicitGroupName($group)
    {
        parent::addImplicitGroupName($group);

        /** @var Constraint[] $nestedConstraints */
        $nestedConstraints = $this->{$this->getCompositeOption()};

        foreach ($nestedConstraints as $constraint) {
            $constraint->addImplicitGroupName($group);
        }
    }
1192608
private void insertInheritedGroups(final Class<?> clazz, final GroupChain chain) {
    validationGroupsMetadata.getParentsOfGroup(clazz).forEach(inheritedGroup -> {
      final Group group = new Group(inheritedGroup);
      chain.insertGroup(group);
      insertInheritedGroups(inheritedGroup, chain);
    });
  }
1152896
public function addGroup(ChildGroup $group)
    {
        if ($this->collGroups === null) {
            $this->initGroups();
        }

        if (!$this->getGroups()->contains($group)) {
            // only add it if the **same** object is not already associated
            $this->collGroups->push($group);
            $this->doAddGroup($group);
        }

        return $this;
    }