Returns the default viewDataTable ID to use when determining which visualization to use.

@param Report $report
@param string $apiAction

@return bool|string
508818
private static function getDefaultViewTypeForReport($report, $apiAction)
    {
        if (!empty($report) && $report->isEnabled()) {
            return $report->getDefaultTypeViewDataTable();
        }

        return false;
    }
135229
private void selectFormExecutionType(final PortletExecutionReportForm report) {
        if (!report.getExecutionTypeNames().isEmpty()) {
            // Already execution types set, do nothing
            return;
        }

        report.getExecutionTypeNames().add(ExecutionType.RENDER.name());
    }
711013
@Override
    public final Boolean getReportNAN() {
        Boolean value = (Boolean) getApi().getField(JsApiAccess.REPORTNAN_VALUE);
        return (value == null) ? Boolean.FALSE : value;
    }
988104
public function notify(Report $report, callable $callback = null)
    {
        $this->pipeline->execute($report, function ($report) use ($callback) {
            if ($callback) {
                $resolvedReport = null;

                $bridge = new CallbackBridge($callback);
                $bridge($report, function ($report) use (&$resolvedReport) {
                    $resolvedReport = $report;
                });
                if ($resolvedReport) {
                    $report = $resolvedReport;
                } else {
                    return;
                }
            }

            $this->http->queue($report);
        });

        $this->leaveBreadcrumb($report->getName(), Breadcrumb::ERROR_TYPE, $report->getSummary());

        if (!$this->config->isBatchSending()) {
            $this->flush();
        }
    }
1197113
public static MchBaseResult payitilReport(Report report,String key){
		Map<String,String> map = MapUtil.objectToMap(report);
		String sign = SignatureUtil.generateSign(map,report.getSign_type(),key);
		report.setSign(sign);
		String shorturlXML = XMLConverUtil.convertToXML(report);
		HttpUriRequest httpUriRequest = RequestBuilder.post()
				.setHeader(xmlHeader)
				.setUri(baseURI()+ "/payitil/report")
				.setEntity(new StringEntity(shorturlXML,Charset.forName("utf-8")))
				.build();
		return LocalHttpClient.executeXmlResult(httpUriRequest,MchBaseResult.class);
	}
916746
protected function getMDApiEndpoint($apiName, $operation, $api, $method)
    {
        $anchor = $this->applyFilter('DocMDApiExternalLink', 'API DOC');
        $description = $api['request']['description'];
        $matched = preg_match('/\[' . $anchor . '\]\([^)]+\)/', $description, $apiDocUrl);
        $docApiEndpoint = " \[{$operation['httpMethod']}\] /{$operation['uri']} ";
        if (!empty($matched) && isset($apiDocUrl[0])) {
            $docApiEndpoint = str_replace($anchor, $docApiEndpoint, $apiDocUrl[0]);
        }
        $docApiEndpoint = $this->applyFilter('DocMDEndpoint', $docApiEndpoint, compact('operation', 'api', 'method'));
        return $docApiEndpoint;
    }
421430
protected UUID getRequestIdFrom(Request request, Response response) {
        return optUuid(response.getHeader(OTHeaders.REQUEST_ID));
    }
152186
public JSONObject report(JSONArray reportData) {
        AipRequest request = new AipRequest();
        preOperation(request);
        request.addBody("feedback", reportData);
        request.setUri(ContentCensorConsts.REPORT_URL);
        request.setBodyFormat(EBodyFormat.RAW_JSON);
        request.addHeader(Headers.CONTENT_TYPE, HttpContentType.JSON_DATA);
        postOperation(request);
        return requestServer(request);
    }
1369034
public I_CmsDefaultAction getDefaultAction(
        I_CmsDialogContext context,
        I_CmsContextMenuItemProvider menuItemProvider) {

        I_CmsDefaultAction result = null;
        int resultRank = -1;
        if (context.getResources().size() == 1) {
            for (I_CmsContextMenuItem menuItem : menuItemProvider.getMenuItems()) {
                if ((menuItem instanceof CmsContextMenuActionItem)
                    && (((CmsContextMenuActionItem)menuItem).getWorkplaceAction() instanceof I_CmsDefaultAction)) {
                    I_CmsDefaultAction action = (I_CmsDefaultAction)((CmsContextMenuActionItem)menuItem).getWorkplaceAction();
                    if (action.getVisibility(context).isActive()) {
                        if (result == null) {
                            result = action;
                            resultRank = action.getDefaultActionRank(context);
                        } else {
                            int rank = action.getDefaultActionRank(context);
                            if (rank > resultRank) {
                                result = action;
                                resultRank = rank;
                            }
                        }
                    }
                }
            }
        }
        return result;
    }
437789
public function getMetadata($apiModule, $apiAction, $apiParameters = [], array $optional = [])
    {
        return $this->_request('API.getMetadata', [
            'apiModule' => $apiModule,
            'apiAction' => $apiAction,
            'apiParameters' => $apiParameters,
        ], $optional);
    }
173303
public void setProfileReport(final long reportId, final long[] _currentTimes) {
		id = reportId;
		System.arraycopy(_currentTimes, 0, currentTimes, 0, NUM_EVENTS);
	}
721075
public PowerFormsFormDataResponse getPowerFormData(String accountId, String powerFormId) throws ApiException {
    return getPowerFormData(accountId, powerFormId, null);
  }
546776
private ApiDoc getApiDoc(Class<?> controller, MethodDisplay displayMethodAs) {
		log.debug("Getting JSONDoc for class: " + controller.getName());
		ApiDoc apiDoc = initApiDoc(controller);

		apiDoc.setSupportedversions(JSONDocApiVersionDocBuilder.build(controller));
		apiDoc.setAuth(JSONDocApiAuthDocBuilder.getApiAuthDocForController(controller));
		apiDoc.setMethods(getApiMethodDocs(controller, displayMethodAs));
		
		if(controller.isAnnotationPresent(Api.class)) {
			apiDoc = mergeApiDoc(controller, apiDoc);
		}
		
		return apiDoc;
	}
1330811
public Map<String, Serializable> getReportUserParametersForEdit(Report report) throws Exception {
        Map<String, Serializable> result = new LinkedHashMap<String, Serializable>();
        JasperReport jr = getJasperReport(report);
        Map<String, Serializable> map = JasperReportsUtil.getJasperReportUserParameters(jr);
        for (String key : map.keySet()) {
            JasperParameter jp = (JasperParameter) map.get(key);            
            JasperParameterSource sp = getParameterSources(report, jp);
            // this parameter is not defined inside the file
            if (sp == null) {
                sp = new JasperParameterSource(jp.getName());
                sp.setValueClassName(JasperReportsUtil.getValueClassName(storageService, report.getDataSource(), jp));
            }
            result.put(sp.getName(), sp);
        }
        return result;
    }
36737
public function renderReport(Report $report)
    {
        foreach ($report->getRuleViolations() as $violation) {
            $fileName = $violation->getFileName();
            $this->cache->remove($fileName, null);
        }
    }
188505
public function calendarMultiGetReport($report)
    {
        $needsJson = 'application/calendar+json' === $report->contentType;

        $timeZones = [];
        $propertyList = [];

        $paths = array_map(
            [$this->server, 'calculateUri'],
            $report->hrefs
        );

        foreach ($this->server->getPropertiesForMultiplePaths($paths, $report->properties) as $uri => $objProps) {
            if (($needsJson || $report->expand) && isset($objProps[200]['{'.self::NS_CALDAV.'}calendar-data'])) {
                $vObject = VObject\Reader::read($objProps[200]['{'.self::NS_CALDAV.'}calendar-data']);

                if ($report->expand) {
                    // We're expanding, and for that we need to figure out the
                    // calendar's timezone.
                    list($calendarPath) = Uri\split($uri);
                    if (!isset($timeZones[$calendarPath])) {
                        // Checking the calendar-timezone property.
                        $tzProp = '{'.self::NS_CALDAV.'}calendar-timezone';
                        $tzResult = $this->server->getProperties($calendarPath, [$tzProp]);
                        if (isset($tzResult[$tzProp])) {
                            // This property contains a VCALENDAR with a single
                            // VTIMEZONE.
                            $vtimezoneObj = VObject\Reader::read($tzResult[$tzProp]);
                            $timeZone = $vtimezoneObj->VTIMEZONE->getTimeZone();
                        } else {
                            // Defaulting to UTC.
                            $timeZone = new DateTimeZone('UTC');
                        }
                        $timeZones[$calendarPath] = $timeZone;
                    }

                    $vObject = $vObject->expand($report->expand['start'], $report->expand['end'], $timeZones[$calendarPath]);
                }
                if ($needsJson) {
                    $objProps[200]['{'.self::NS_CALDAV.'}calendar-data'] = json_encode($vObject->jsonSerialize());
                } else {
                    $objProps[200]['{'.self::NS_CALDAV.'}calendar-data'] = $vObject->serialize();
                }
                // Destroy circular references so PHP will garbage collect the
                // object.
                $vObject->destroy();
            }

            $propertyList[] = $objProps;
        }

        $prefer = $this->server->getHTTPPrefer();

        $this->server->httpResponse->setStatus(207);
        $this->server->httpResponse->setHeader('Content-Type', 'application/xml; charset=utf-8');
        $this->server->httpResponse->setHeader('Vary', 'Brief,Prefer');
        $this->server->httpResponse->setBody($this->server->generateMultiStatus($propertyList, 'minimal' === $prefer['return']));
    }
443515
protected function getMDApiName($apiName, $operation, $api, $method)
    {
        $docApiName = $apiName . "(" . (empty($operation['parameters']) ? '' : 'array') . ")";
        $docApiName = $this->applyFilter('DocMDName', $docApiName, compact('apiName', 'operation',
            'api', 'method'));
        return $docApiName;
    }