Gets the system admin Organization

@return OrganizationInterface
484395
public function getAdminOwner()
    {
        $repo = $this->dm->getRepository($this->organizationClass);

        return $repo->findOneBy([
            'adminOwner' => true
        ]);
    }
714705
public function getCurrentOrganizationId()
    {
        $userLoader = $this->loader->getUserLoader();

        // Url determines organization first.
        if ($orgId = $userLoader->getOrganizationIdByUrl()) {
            $this->_organizationFromUrl = true;
            $userLoader->getCurrentUser()->setCurrentOrganization($orgId);
            return $orgId;
        }

        $request = $this->getRequest();
        if ($request->isPost() && ($orgId = $request->getParam($this->organizationFieldName))) {
            return $orgId;
        }

        return $userLoader->getCurrentUser()->getCurrentOrganizationId();
    }
776702
protected function getSystemConfigDir()
    {
        if (null === $this->systemConfigDir) {
            $reflector = new \ReflectionClass($this);
            $rootDir = dirname($reflector->getFileName());
            $this->systemConfigDir = $rootDir . '/Resources/config/';
        }

        return($this->systemConfigDir);
    }
1000968
static public function getOrganizationRoleChoices()
    {
        return array(
            self::ORG_ROLE_AUTHOR =>                'Author',
            self::ORG_ROLE_CUSTODIAN =>             'Custodian',
            self::ORG_ROLE_DISTRIBUTOR =>           'Distributor',
            self::ORG_ROLE_ORIGINATOR =>            'Originator',
            self::ORG_ROLE_OWNER =>                 'Owner',
            self::ORG_ROLE_POINTOFCONTACT =>        'Point of Contact',
            self::ORG_ROLE_PRINCIPALINVESTIGATOR => 'Principal Investigator',
            self::ORG_ROLE_PROCESSOR =>             'Processor',
            self::ORG_ROLE_PUBLISHER =>             'Publisher',
            self::ORG_ROLE_RESOURCEPROVIDER =>      'Resource Provider',
            self::ORG_ROLE_USER =>                  'User'
        );
    }
1277637
public function getOperatingSystem()
    {
        foreach ($this::$operatingSystems as $os => $UA) {
            $is_os = 'is'.$os;
            if ($this->$is_os()) {
                return $os;
            }
        }
        return '';
    }
1291846
protected static function getSecurityIdentityForCurrentOrganization(
        OrganizationalContextInterface $context,
        $roleHierarchy = null
    ) {
        $sids = [];
        $org = $context->getCurrentOrganization();
        $userOrg = $context->getCurrentOrganizationUser();
        $orgRoles = [];

        if ($org) {
            $sids[] = self::fromAccount($org);
        }

        if (null !== $userOrg) {
            $sids = array_merge($sids, static::getOrganizationGroups($userOrg));
            $orgRoles = static::getOrganizationUserRoles($userOrg, $roleHierarchy);
        } elseif ($org && $org->isUserOrganization()) {
            $orgRoles = static::getOrganizationRoles($org, $roleHierarchy);
        }

        foreach ($orgRoles as $role) {
            $sids[] = RoleSecurityIdentity::fromAccount($role);
        }

        return $sids;
    }
1263220
protected function getOrganizationName($organization = null)
    {
        $org = (empty($organization)) ? $this->defaultOrganization : $organization;
        if (null === $org) {
            throw new \RuntimeException('Organization is empty');
        }

        return $org;
    }
1131282
public function getConfiguration(){
        $rest = $this->getService( self::API_NETWORK_SHARE_SAMBA);
        $rest->GET();

        return $rest->getResult( models\NetworkShare\SambaConfig::class);
    }
1121574
public function getActiveOrganizations()
    {
        $sql = "SELECT gor_id_organization, gor_name
                    FROM gems__organizations
                    WHERE (gor_active = 1 AND
                            gor_id_organization IN (SELECT gr2o_id_organization FROM gems__respondent2org)) OR
                        gor_id_organization = ?
                    ORDER BY gor_name";

        $orgId = $this->loader->getCurrentUser()->getCurrentOrganizationId();

        return $this->_getSelectPairsCached(__FUNCTION__ . '_' . $orgId, $sql, $orgId, 'organizations', 'natsort');
    }
1237431
public function getConfiguration(){
        $rest = $this->getService( self::API_SYSTEM);
        $rest->GET();

        return $rest->getResult( models\SystemConfig::class);
    }
693080
public function getMenu()
    {
        return (new AdminMenuBuilder($this))
            ->nodeRoute('menu_node_filemanager', 'cloud_upload', 'admin/storage/index')
            ->node('menu_node_system', 'settings_applications')
                ->group('menu_group_access')
                    ->itemApi('menu_access_item_user', 'admin/user/index', 'person', 'api-admin-user')
                    ->itemApi('menu_access_item_apiuser', 'admin/api-user/index', 'device_hub', 'api-admin-apiuser')
                    ->itemApi('menu_access_item_group', 'admin/group/index', 'group', 'api-admin-group')
                ->group('menu_group_system')
                    ->itemApi('menu_system_item_config', 'admin/config/index', 'storage', 'api-admin-config')
                    ->itemApi('menu_system_item_language', 'admin/lang/index', 'language', 'api-admin-lang')
                    ->itemApi('menu_system_item_tags', 'admin/tag/index', 'view_list', 'api-admin-tag')
                    ->itemApi('menu_system_logger', 'admin/logger/index', 'notifications', 'api-admin-logger')
                    ->itemApi('Queue', 'admin/queue-log/index', 'schedule', 'api-admin-queuelog')
                ->group('menu_group_images')
                    ->itemApi('menu_images_item_effects', 'admin/effect/index', 'blur_circular', 'api-admin-effect')
                    ->itemApi('menu_images_item_filters', 'admin/filter/index', 'adjust', 'api-admin-filter')
                ->group('menu_group_contentproxy')
                    ->itemApi('menu_group_contentproxy_machines', 'admin/proxy-machine/index', 'devices', 'api-admin-proxymachine')
                    ->itemApi('menu_group_contentproxy_builds', 'admin/proxy-build/index', 'import_export', 'api-admin-proxybuild');
    }
283476
public function getGroup()
    {
        if (-1 === $this->index || !$this->valid()) {
            return null;
        }

        return $this->processors[$this->index][1]['group'] ?? null;
    }
603363
public function getAuthority()
    {
        $authority = $this->getHost();
        if ($authority === null) {
            return '';
        }

        if ($this->getUserInfo() !== '') {
            $authority = $this->getUserInfo() . '@' . $authority;
        }

        if ($this->port !== null && self::isStandardPort($this->port, $this->scheme, $this->host) === false) {
            $authority .= ':' . $this->port;
        }

        return $authority;
    }
433747
public function getOrganizationRole($user, $organization)
    {
        return $this->dm->getRepository('WobbleCodeUserBundle:Role')->findOneBy(
            [
                'organization.$id' => new \MongoId($organization->getId()),
                'user.$id' => new \MongoId($user->getId())
            ]
        );
    }
371531
protected function getGroupAndSortingDefinition()
    {
        /** @var Contao2BackendViewDefinitionInterface $view */
        $view = $this->getEnvironment()
            ->getDataDefinition()
            ->getDefinition(Contao2BackendViewDefinitionInterface::NAME);

        return $view
            ->getListingConfig()
            ->getGroupAndSortingDefinition();
    }
223604
public function getCurrentOrganizationId()
    {
        $orgId = $this->_getVar('user_organization_id');

        //If not set, read it from the cookie
        if ($this->isCurrentUser() && ((null === $orgId) || (\Gems_User_UserLoader::SYSTEM_NO_ORG === $orgId))) {
            $request = $this->getRequest();
            if ($request) {
                $orgId = \Gems_Cookies::getOrganization($this->getRequest());
            }
            if (! $orgId) {
                $orgId = 0;
            }
            $this->_setVar('user_organization_id', $orgId);
        }
        return $orgId;
    }
689961
public function getOrganization($id)
	{
		$url = self::makeUrl($id);
		$data = $this->service->prepAndSend($url, array(200, 204), 'GET', null, true, 'application/json', 'application/json');
		$org = json_decode($data);
		return @new Organization(
				$org->alias,
                $org->id,
                $org->parentId,
                $org->tenantName,
                $org->theme,
                $org->tenantDesc,
                $org->tenantFolderUri,
                $org->tenantNote,
                $org->tenantUri
			    );
	}