Package org.sonatype.nexus.configuration.model

Examples of org.sonatype.nexus.configuration.model.CProps


   * {@link Map} to {@link List} of {@link CProps} converter, to ease handling of these thingies.
   */
  public static List<CProps> getConfigListFromMap(final Map<String, String> map) {
    final List<CProps> result = Lists.newArrayListWithExpectedSize(map.size());
    for (Map.Entry<String, String> entry : map.entrySet()) {
      final CProps cprop = new CProps();
      cprop.setKey(entry.getKey());
      cprop.setValue(entry.getValue());
      result.add(cprop);
    }
    return result;
  }
View Full Code Here


    if (task.getNextRun() != null) {
      storeableTask.setNextRun(task.getNextRun().getTime());
    }

    for (String key : task.getTaskParams().keySet()) {
      CProps props = new CProps();
      props.setKey(key);
      props.setValue(task.getTaskParams().get(key));

      storeableTask.addProperty(props);
    }

    Schedule schedule = task.getSchedule();
View Full Code Here

TOP

Related Classes of org.sonatype.nexus.configuration.model.CProps

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.