/** * {@inheritDoc} */ @Override public Object getValueAt(final int rowIndex, final int columnIndex) { final Quattro<TL, TR, BL, BR> row = getData().get(rowIndex); switch (columnIndex) { case 0 : return row.getTopLeft(); case 1 : return row.getTopRight(); case 2 : return row.getBottomLeft(); case 3 : return row.getBottomRight(); default : return null; } }
/** * Update the given {@link Properties} object to the underlying database with the given owner * and the given baseName and the given {@link Locale} object that are encapsulated in the * {@link Quattro} object. * * @param quattro * the owner * @return the updated {@link BundleName} object */ @Override public Response updateProperties(Quattro<Properties, String, String, Locale> quattro) { Properties properties = quattro.getTopLeft(); String bundleappname = quattro.getTopRight(); String baseName = quattro.getBottomLeft(); Locale locale = quattro.getBottomRight(); final BundleApplication bundleApplication = getDomainService().find(bundleappname); BundleName bundleName = getDomainService().updateProperties(bundleApplication, properties, baseName, locale); return Response.ok(bundleName).build(); }