metadataValue.setAuthority(authorities.get(i)); metadataValue.setConfidence(confidences == null ? Choices.CF_NOVALUE : confidences.get(i)); } else { metadataValue.setAuthority(null); metadataValue.setConfidence(confidences == null ? Choices.CF_UNSET : confidences.get(i));
/** * 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); }