metadataValue .setValue(metadataValue.getValue().replace(handlePrefix + oldH, handlePrefix + newH)); metadataValueService.update(context, metadataValue, true); context.uncacheEntity(metadataValue); updMeta++;
/** * Replace an item's DCValue with this authority * * @param context context * @param value metadata value * @param currentItem item * @throws SQLException if database error * @throws AuthorizeException if authorization error */ public void updateItem(Context context, Item currentItem, MetadataValue value) throws SQLException, AuthorizeException { value.setValue(getValue()); value.setAuthority(getId()); ContentServiceFactory.getInstance().getMetadataValueService().update(context, value, true); }