Examples of OutputType


Examples of com.coherentlogic.fred.client.core.domain.OutputType

    }

    @Override
    public Object fromString(String value) {

        OutputType result = null;

        if (OutputType.observationsByRealTimePeriod.toString().equals(value))
            result = OutputType.observationsByRealTimePeriod;
        else if (OutputType
            .observationsByVintageDateAllObservations
View Full Code Here

Examples of com.coherentlogic.fred.client.core.domain.OutputType

    }

    @Override
    public Object fromString(String value) {

        OutputType result = null;

        if (OutputType.observationsByRealTimePeriod.toString().equals(value))
            result = OutputType.observationsByRealTimePeriod;
        else if (OutputType
            .observationsByVintageDateAllObservations
View Full Code Here

Examples of com.eclipsesource.tabris.print.PrintOptions.OutputType

  @Test
  public void testDefaultOutputTypeIsColor() {
    PrintOptions printOptions = new PrintOptions();

    OutputType outputType = printOptions.getOutputType();

    assertEquals( OutputType.COLOR, outputType );
  }
View Full Code Here

Examples of com.google.visualization.datasource.base.OutputType

   */
  public static void verifyAccessApproved(DataSourceRequest req) throws DataSourceException {
    // The library requires the request to be same origin for JSON and JSONP.
    // Check for (!csv && !html && !tsv-excel) to make sure any output type
    // added in the future will be restricted to the same domain by default.
    OutputType outType = req.getDataSourceParameters().getOutputType();
    if (outType != OutputType.CSV && outType != OutputType.TSV_EXCEL
        && outType != OutputType.HTML && !req.isSameOrigin()) {
      throw new DataSourceException(ReasonType.ACCESS_DENIED,
          "Unauthorized request. Cross domain requests are not supported.");
    }
View Full Code Here

Examples of com.google.visualization.datasource.base.OutputType

   *
   * @throws IOException In case of a I/O error.
   */
  public static void setServletResponse(String responseMessage,
      DataSourceParameters dataSourceParameters, HttpServletResponse res) throws IOException {
    OutputType type = dataSourceParameters.getOutputType();
    switch (type) {
      case CSV:
        setServletResponseCSV(dataSourceParameters, res);
        writeServletResponse(responseMessage, res);
        break;
View Full Code Here

Examples of com.google.visualization.datasource.base.OutputType

     */
    protected void verifyAccessApproved(DataSourceRequest req) throws DataSourceException {
        // The library requires the request to be same origin for JSON and JSONP.
        // Check for (!csv && !html && !tsv-excel) to make sure any output type
        // added in the future will be restricted to the same domain by default.
        OutputType outType = req.getDataSourceParameters().getOutputType();
        if(outType != OutputType.CSV && outType != OutputType.TSV_EXCEL
                && outType != OutputType.HTML && !req.isSameOrigin()) {
            throw new DataSourceException(ReasonType.ACCESS_DENIED,
                    "Unauthorized request. Cross domain requests are not supported.");
        }
View Full Code Here

Examples of com.google.visualization.datasource.base.OutputType

   *
   * @throws IOException In case of a I/O error.
   */
  public static void setServletResponse(String responseMessage,
      DataSourceParameters dataSourceParameters, HttpServletResponse res) throws IOException {
    OutputType type = dataSourceParameters.getOutputType();
    switch (type) {
      case CSV:
        setServletResponseCSV(responseMessage, dataSourceParameters, res);
        break;
      case TSV_EXCEL:
View Full Code Here

Examples of com.google.visualization.datasource.base.OutputType

   */
  public static void verifyAccessApproved(DataSourceRequest req) throws DataSourceException {
    // The library requires the request to be same origin for JSON and JSONP.
    // Check for (!csv && !html && !tsv-excel) to make sure any output type
    // added in the future will be restricted to the same domain by default.
    OutputType outType = req.getDataSourceParameters().getOutputType();
    if (outType != OutputType.CSV && outType != OutputType.TSV_EXCEL
        && outType != OutputType.HTML && !req.isSameOrigin()) {
      throw new DataSourceException(ReasonType.ACCESS_DENIED,
          "Unauthorized request. Cross domain requests are not supported.");
    }
View Full Code Here

Examples of com.mongodb.MapReduceCommand.OutputType

        final DBCollection col = getCollectionNode().getCollection();
        String map = getStringFieldValue(Item.mrMap);
        String reduce = getStringFieldValue(Item.mrReduce);
        String finalize = getStringFieldValue(Item.mrFinalize);
        String stype = getStringFieldValue(Item.mrType);
        final OutputType type = OutputType.valueOf(stype.toUpperCase());
        String out = getStringFieldValue(Item.mrOut);
        if (type != OutputType.INLINE && (out.isEmpty())) {
            new InfoDialog(id, null, null, "Output collection cannot be empty if type is not inline.").show();
            return;
        }
View Full Code Here

Examples of com.mongodb.MapReduceCommand.OutputType

        if (q.getOffset() != 0 || q.getFieldsObject() != null)
            throw new QueryException("mapReduce does not allow the offset/retrievedFields query options.");


        OutputType outType = OutputType.REPLACE;
        switch (type) {
            case REDUCE:
                outType = OutputType.REDUCE;
                break;
            case MERGE:
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.