Load the organization from the given organization id
556772
protected function loadOrganization()
    {
        if (!$this->organizationId) {
            $this->loadOrganizationId();
        }
        $this->organization = $this->loader->getOrganization($this->organizationId);
    }
436053
def organization_create(self, data, **kwargs):
        ""
        api_path = "/api/v2/organizations.json"
        return self.call(api_path, method="POST", data=data, **kwargs)
724462
def get_organizations(self, permission='read'):
        # type: (str) -> List['Organization']
        
        success, result = self._read_from_hdx('user', self.data['name'], 'id', self.actions()['listorgs'],
                                              permission=permission)
        organizations = list()
        if success:
            for organizationdict in result:
                organization = hdx.data.organization.Organization.read_from_hdx(organizationdict['id'])
                organizations.append(organization)
        return organizations
333133
public function findOrganizationPage($organizationId, $pageId)
    {
        list($response) = $this->findOrganizationPageWithHttpInfo($organizationId, $pageId);
        return $response;
    }
966418
def organization_requests(self, id, **kwargs):
        ""
        api_path = "/api/v2/organizations/{id}/requests.json"
        api_path = api_path.format(id=id)
        return self.call(api_path, **kwargs)
837575
@GET
    @Produces({MediaType.TEXT_HTML, MediaType.APPLICATION_JSON})
    @Path("/{name}" + ServerAPI.GET_CORPORATE_GROUPIDS)
    public Response getCorporateGroupIdPrefix(@PathParam("name") final String organizationId){
        LOG.info("Got a get corporate groupId prefix request for organization " + organizationId +".");

        final ListView view = new ListView("Organization " + organizationId, "Corporate GroupId Prefix");
        final List<String> corporateGroupIds = getOrganizationHandler().getCorporateGroupIds(organizationId);
        view.addAll(corporateGroupIds);

        return Response.ok(view).build();
    }
740361
@Override
	public List<CommerceAccountOrganizationRel> findByOrganizationId(
		long organizationId) {
		return findByOrganizationId(organizationId, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
79998
def organization_membership_show(self, id, **kwargs):
        ""
        api_path = "/api/v2/organization_memberships/{id}.json"
        api_path = api_path.format(id=id)
        return self.call(api_path, **kwargs)
563561
protected function loadData($id)
    {
        if (\Gems_User_UserLoader::SYSTEM_NO_ORG === $id) {
            $data = false;
        } else {
            try {
                $sql = "SELECT * FROM gems__organizations WHERE gor_id_organization = ? LIMIT 1";
                $data = $this->db->fetchRow($sql, intval($id));
            } catch (\Exception $e) {
                $data = false;
            }
        }

        if ($data) {
            try {
                $dbOrgId = $this->db->quote($id, \Zend_Db::INT_TYPE);
                $sql = "SELECT gor_id_organization, gor_name
                    FROM gems__organizations
                    WHERE gor_active = 1 AND
                        (
                          gor_id_organization = $dbOrgId OR
                          gor_accessible_by LIKE '%:$dbOrgId:%'
                        )
                    ORDER BY gor_name";
                $data['can_access'] = $this->db->fetchPairs($sql);
                natsort($data['can_access']);
            } catch (\Exception $e) {
                $data['can_access'] = array();
            }

            // \MUtil_Echo::track($sql, $data['can_access']);

            if (array_key_exists('gor_url_base', $data) && $baseUrls = explode(' ', $data['gor_url_base'])) {
                $data['base_url'] = reset($baseUrls);
            }
        } else {
            $data = $this->_noOrganization;
            $data['gor_id_organization'] = $id;
        }

        return $data;
    }
444193
function readTeam ({ id, organizationId }, cb) {
      const job = {
        team: {}
      }

      let promise = null
      if (typeof cb !== 'function') [promise, cb] = asyncify()

      async.applyEachSeries([
        (job, next) => {
          Joi.validate({ id, organizationId }, validationRules.readTeam, (err) => {
            if (err) return next(Boom.badRequest(err))
            next()
          })
        },
        (job, next) => {
          job.client = db
          job.id = id
          job.organizationId = organizationId
          next()
        },
        loadTeams,
        loadTeamUsers,
        loadTeamPolicies
      ], job, (err) => {
        if (err) return cb(err)
        return cb(null, job.team)
      })

      return promise
    }
212901
public OvhIpv4Org ipOrganisation_organisationId_GET(String organisationId) throws IOException {
		String qPath = "/me/ipOrganisation/{organisationId}";
		StringBuilder sb = path(qPath, organisationId);
		String resp = exec(qPath, "GET", sb.toString(), null);
		return convertTo(resp, OvhIpv4Org.class);
	}
747299
def organization_tickets(self, organization_id, external_id=None, **kwargs):
        ""
        api_path = "/api/v2/organizations/{organization_id}/tickets.json"
        api_path = api_path.format(organization_id=organization_id)
        api_query = {}
        if "query" in kwargs.keys():
            api_query.update(kwargs["query"])
            del kwargs["query"]
        if external_id:
            api_query.update({
                "external_id": external_id,
            })
        return self.call(api_path, query=api_query, **kwargs)
787681
def create_membership(organization_id, params)
      http.post(membership_endpoint(organization_id), body: params) do |response|
        response.parsed_body
      end
    end
36922
public Organization getOrganization(long id) {
        return complete(submit(req("GET", tmpl("/organizations/{id}.json").set("id", id)),
                handle(Organization.class, "organization")));
    }
1130486
function loadPlugin(id) {
    var plugin = PLUGINS[id];
    plugin.exec.load(plugin.id, {
        id: plugin.id
    });
}
286558
@Override
    public List<Board> getOrganizationBoards(String organizationId, Argument... args) {
        return asList(() -> get(createUrl(GET_ORGANIZATION_BOARD).params(args).asString(), Board[].class, organizationId));
    }
767340
def loadNetworkbyID(self, id, callback=None, errback=None):
        
        import ns1.ipam
        network = ns1.ipam.Network(self.config, id=id)
        return network.load(callback=callback, errback=errback)