/** * Build a configuration from the entries * * @param description configuration description * @param entries entries to put */ public PublishedExports(String description, Iterable<Map.Entry<String, List<ExportEntry>>> entries) { this.description = description; putValues(entries); }
/** * Create an outputter for a given format * @param format format to use * @return an instance of output */ public PublishedConfigurationOutputter createOutputter(ConfigFormat format) { return PublishedConfigurationOutputter.createOutputter(format, this); } }
/** * Build a configuration from the entries * @param description configuration description * @param entries entries to put */ public PublishedConfiguration(String description, Iterable<Map.Entry<String, String>> entries) { this.description = description; putValues(entries); }
/** * This makes a copy without the nested content -so is suitable * for returning as part of the list of a parent's values * @return the copy */ public PublishedConfiguration shallowCopy() { PublishedConfiguration that = new PublishedConfiguration(); that.description = this.description; that.updated = this.updated; that.updatedTime = this.updatedTime; return that; }
public String getStringRepresentation(String setname, String config, UriInfo uriInfo, HttpServletResponse res, ConfigFormat format) throws IOException { // delegate (including init) PublishedConfiguration publishedConfig = getConfigurationInstance(setname, config, uriInfo, res); PublishedConfigurationOutputter outputter = publishedConfig.createOutputter(format); return outputter.asString(); }
@Override public String asString() throws IOException { return exports.asJson(); } }
@Override public String asString() throws IOException { return owner.asJson(); } }
/** * This makes a copy without the nested content -so is suitable for returning as part of the list of a parent's * values * * @return the copy */ public PublishedExports shallowCopy() { PublishedExports that = new PublishedExports(); that.description = this.description; that.updated = this.updated; that.updatedTime = this.updatedTime; return that; }
public XmlOutputter(PublishedConfiguration owner) { super(owner); configuration = owner.asConfiguration(); }
public PropertiesOutputter(PublishedConfiguration owner) { super(owner); properties = owner.asProperties(); }
/** * This makes a copy without the nested content -so is suitable * for returning as part of the list of a parent's values * @return the copy */ public PublishedConfiguration shallowCopy() { PublishedConfiguration that = new PublishedConfiguration(); that.description = this.description; that.updated = this.updated; that.updatedTime = this.updatedTime; return that; }
public String getStringRepresentation(String setname, String config, UriInfo uriInfo, HttpServletResponse res, ConfigFormat format) throws IOException { // delegate (including init) PublishedConfiguration publishedConfig = getConfigurationInstance(setname, config, uriInfo, res); PublishedConfigurationOutputter outputter = publishedConfig.createOutputter(format); return outputter.asString(); }
/** * Create an outputter for a given format * @param format format to use * @return an instance of output */ public PublishedConfigurationOutputter createOutputter(ConfigFormat format) { return PublishedConfigurationOutputter.createOutputter(format, this); } }
/** * Build a configuration from the entries * * @param description configuration description * @param entries entries to put */ public PublishedExports(String description, Iterable<Map.Entry<String, List<ExportEntry>>> entries) { this.description = description; putValues(entries); }
/** * Build a configuration from the entries * @param description configuration description * @param entries entries to put */ public PublishedConfiguration(String description, Iterable<Map.Entry<String, String>> entries) { this.description = description; putValues(entries); }
@Override public String asString() throws IOException { return exports.asJson(); } }
@Override public String asString() throws IOException { return owner.asJson(); } }
/** * This makes a copy without the nested content -so is suitable for returning as part of the list of a parent's * values * * @return the copy */ public PublishedExports shallowCopy() { PublishedExports that = new PublishedExports(); that.description = this.description; that.updated = this.updated; that.updatedTime = this.updatedTime; return that; }
public XmlOutputter(PublishedConfiguration owner) { super(owner); configuration = owner.asConfiguration(); }
public PropertiesOutputter(PublishedConfiguration owner) { super(owner); properties = owner.asProperties(); }