Examples of toMap()


Examples of anvil.core.Any.toMap()

    SearchControls controls = new SearchControls();
    int n = parameters.length;
    for(int i=0; i<n; i++) {
      Any property = parameters[i];
      if (property.isMap()) {
        AnyMap map = property.toMap();
        String key = map.getLeft().toString();
        if (key.equalsIgnoreCase("scope")) {
          controls.setSearchScope(map.getRight().toInt());
        } else if (key.equalsIgnoreCase("countlimit")) {
          controls.setCountLimit(map.getRight().toInt());
View Full Code Here

Examples of anvil.core.Any.toMap()

      }
    }
    for(; i<n; i++) {
      Any value = values[i];
      if (value.isMap()) {
        AnyMap map = value.toMap();
        attrs.put(map.getLeft().toString(), map.getRight().toObject());
      } else if (value instanceof AnyAttribute) {
        attrs.put((Attribute)value.toObject());
      }
    }
View Full Code Here

Examples of com.alibaba.druid.wall.WallProviderStatValue.toMap()

    public Map<String, Object> getWallStatMap() {
        WallProviderStatValue wallStatValue = getWallStatValue(false);

        if (wallStatValue != null) {
            return wallStatValue.toMap();
        }

        return null;
    }
View Full Code Here

Examples of com.couchbase.client.java.document.json.JsonObject.toMap()

    public static DesignDocument from(final String name, final JsonObject raw) {
        final List<View> views = new ArrayList<View>();
        JsonObject rawViews = raw.getObject("views");
        if (rawViews != null) {
           for(Map.Entry<String, Object> entry : rawViews.toMap().entrySet()) {
               String viewName = entry.getKey();
               JsonObject viewContent = (JsonObject) entry.getValue();
               String map = viewContent.getString("map");
               String reduce = viewContent.getString("reduce");
               views.add(DefaultView.create(viewName, map, reduce));
View Full Code Here

Examples of com.dotmarketing.business.Layout.toMap()

    newLayout.setTabOrder(order);
    layoutAPI.saveLayout(newLayout);

    layoutAPI.setPortletIdsToLayout(newLayout, portletIds);

    Map<String, Object> layoutMap =  newLayout.toMap();
    layoutMap.put("portletTitles", getPorletTitlesFromLayout(newLayout));
    return layoutMap;

  }
View Full Code Here

Examples of com.dotmarketing.business.Role.toMap()

        taskMap.put("host", host.getMap());
      }
      Role role = roleAPI.loadRoleById(roleId);
      if(role == null)
        continue;
      taskMap.put("role", role.toMap());
      scheduled.add(taskMap);
    }
    return scheduled;
  }
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.netty.channel.ChannelPipeline.toMap()

    public Map<String, ChannelHandler> getPipelineAsMap() {
        ChannelPipeline pipeline = this.pipeline;
        if (pipeline == null) {
            throw new IllegalStateException("pipelineFactory in use");
        }
        return pipeline.toMap();
    }

    /**
     * Dependency injection friendly convenience method for
     * {@link #setPipeline(ChannelPipeline)} which sets the default pipeline of
View Full Code Here

Examples of com.liferay.portal.model.Address.toMap()

    } catch (DotSecurityException e) {
      Logger.error(this, e.getMessage(), e);
      throw new DotDataException(e.getMessage(), e);
    }

    return ad.toMap();

  }

  public Map<String, String> saveUserAddress(String userId, String addressId, String addressDescription, String street1, String street2, String city, String state,
      String zip, String country, String phone, String fax, String cell) throws DotDataException {
View Full Code Here

Examples of com.mongodb.BasicDBList.toMap()

    BasicDBList each = getAsDBList(values, "$each");

    assertThat(push.get("_class"), nullValue());
    assertThat(values.get("_class"), nullValue());

    assertThat(each.toMap(), (Matcher) allOf(hasValue("spring"), hasValue("data"), hasValue("mongodb")));
  }

  /**
   * @see DATAMONGO-812
   */
 
View Full Code Here

Examples of com.mongodb.BasicDBObject.toMap()

        if (o == null) {
            throw new NotFoundException();
        }

        return new DashboardImpl((ObjectId) o.get("_id"), o.toMap());
    }

    @Override
    public List<Dashboard> all() {
        List<Dashboard> dashboards = Lists.newArrayList();
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.