Package com.dianping.cat.configuration.app.entity

Examples of com.dianping.cat.configuration.app.entity.ConfigItem


      return new ArrayList<Command>();
    }
  }

  public Map<Integer, Item> queryConfigItem(String name) {
    ConfigItem config = m_config.findConfigItem(name);

    if (config != null) {
      return config.getItems();
    } else {
      return new LinkedHashMap<Integer, Item>();
    }
  }
View Full Code Here


      return new LinkedHashMap<Integer, Item>();
    }
  }

  public Collection<Item> queryConfigItems(String key) {
    ConfigItem configs = m_config.findConfigItem(key);

    if (configs != null) {
      return configs.getItems().values();
    } else {
      return new ArrayList<Item>();
    }
  }
View Full Code Here

      commandMap.put(c.getName(), c.getId());
    }
    m_commands = commandMap;

    Map<String, Integer> cityMap = new HashMap<String, Integer>();
    ConfigItem cities = m_config.findConfigItem(CITY);

    for (Item item : cities.getItems().values()) {
      cityMap.put(item.getName(), item.getId());
    }
    m_cities = cityMap;

    Map<String, Integer> operatorMap = new HashMap<String, Integer>();
    ConfigItem operations = m_config.findConfigItem(OPERATOR);

    for (Item item : operations.getItems().values()) {
      operatorMap.put(item.getName(), item.getId());
    }
    m_operators = operatorMap;
  }
View Full Code Here

TOP

Related Classes of com.dianping.cat.configuration.app.entity.ConfigItem

Copyright © 2018 www.massapicom. 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.