Operation findOrganizationFile

Finds organizations file

@param string $organizationId Organization id (required)
@param string $fileId file id (required)
@return \KuntaAPI\Model\FileDef
@throws \KuntaAPI\ApiException on non-2xx response
542217
public function findOrganizationFile($organizationId, $fileId)
    {
        list($response) = $this->findOrganizationFileWithHttpInfo($organizationId, $fileId);
        return $response;
    }
669710
protected function addOrgSelect(array &$elements, $data, $elementId = 'gto_id_organzation')
    {
        $orgs = $this->currentUser->getRespondentOrganizations();

        if (count($orgs) > 1) {
            if ($this->orgIsMultiCheckbox) {
                $elements[$elementId] = $this->_createMultiCheckBoxElements($elementId, $orgs, ' ');
            } else {
                $elements[$elementId] = $this->_createSelectElement($elementId, $orgs, $this->_('(all organizations)'));
            }
        }
    }
826321
public function getCurrentSettingConfiguration($organizationId = null, $databaseConnectionName = null)
  {
    if(empty($organizationId))
    {
      $organizationId = $this->AuthenticationManager->getCurrentUserOrganizationId();
    }

    return $this->Setting->byOrganization($organizationId, $databaseConnectionName)->first()->toArray();
  }
329482
func (s *OrganizationService) FindOrganizationByID(ctx context.Context, id platform.ID) (*platform.Organization, error) {
	return s.FindOrganizationByIDF(ctx, id)
}
233900
public function findByFolderId($folderId)
    {
        $qb = $this->createQueryBuilder();

        $qb->field('mediaFolder.id')->equals($folderId);

        return $qb->getQuery()->execute();
    }
1147503
public function getMembership($userId, $organization = '')
    {
        $contents = $this
            ->call('GET', implode('/', [self::ORGANIZATION_RESOURCE, $this->getOrganizationName($organization), 'memberships', $userId]))
            ->getBody()
            ->getContents();

        return $this->getSingleMemberShipFromJsonResponse($contents);
    }
1261549
public function deleteOrganizationSetting($organizationId, $settingId)
    {
        list($response) = $this->deleteOrganizationSettingWithHttpInfo($organizationId, $settingId);
        return $response;
    }
697074
def organization_delete(self, id, **kwargs):
        ""
        api_path = "/api/v2/organizations/{id}.json"
        api_path = api_path.format(id=id)
        return self.call(api_path, method="DELETE", **kwargs)
861059
func (s *OrganizationService) FindOrganization(ctx context.Context, filter platform.OrganizationFilter) (*platform.Organization, error) {
	return s.FindOrganizationF(ctx, filter)
}
1313521
public static Organization unserializeOrganization(final String organization) throws IOException {
        final ObjectMapper mapper = new ObjectMapper();
        mapper.disable(MapperFeature.USE_GETTERS_AS_SETTERS);
        return mapper.readValue(organization, Organization.class);
    }
381621
public DbOrganization getOrganization(final String organizationId) {
        final DbOrganization dbOrganization = repositoryHandler.getOrganization(organizationId);

        if(dbOrganization == null){
            throw new WebApplicationException(Response.status(Response.Status.NOT_FOUND)
                    .entity("Organization " + organizationId + " does not exist.").build());
        }

        return dbOrganization;
    }
1061641
public function findOrganizationEvent($organizationId, $eventId)
    {
        list($response) = $this->findOrganizationEventWithHttpInfo($organizationId, $eventId);
        return $response;
    }
1153797
public function byParentId($id, $organizationId, $databaseConnectionName = null)
  {
    if(empty($databaseConnectionName))
    {
      $databaseConnectionName = $this->databaseConnectionName;
    }

    return $this->File->setConnection($databaseConnectionName)
      ->where('parent_file_id', '=', $id)
      ->where('organization_id', '=', $organizationId)
      ->get();
  }
255509
public function findOrganizationJob($organizationId, $jobId)
    {
        list($response) = $this->findOrganizationJobWithHttpInfo($organizationId, $jobId);
        return $response;
    }
229042
public function getOrganizationById($orgId)
    {
        $response = $this->doRequest(
            self::RESOURCE_GET_ORGANIZATION,
            [
                'orgId' => $orgId
            ]
        );

        return Organization::fromStream($response);
    }
1034128
public function getFilesArrayItem($fileId)
    {
        return isset($this->filesArray[$fileId]) ? $this->filesArray[$fileId] : false;
    }
836766
private static String id(String organizationId, String entityId, String version) {
        return organizationId + ':' + entityId + ':' + version;
    }