mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-13 21:13:19 +00:00
Replace deprecated setMetadata() that uses removed field names. #2956
Once upon a time, DSOs had dedicated fields for some metadata. These were moved into the Metadatavalue table long ago, but there were still methods which used the old field names instead of proper MetadataField triplets.
This commit is contained in:
@@ -549,7 +549,7 @@ public class EPersonServiceImpl extends DSpaceObjectServiceImpl<EPerson> impleme
|
||||
|
||||
@Override
|
||||
public List<String> getDeleteConstraints(Context context, EPerson ePerson) throws SQLException {
|
||||
List<String> tableList = new ArrayList<String>();
|
||||
List<String> tableList = new ArrayList<>();
|
||||
|
||||
// check for eperson in item table
|
||||
Iterator<Item> itemsBySubmitter = itemService.findBySubmitter(context, ePerson, true);
|
||||
@@ -603,12 +603,6 @@ public class EPersonServiceImpl extends DSpaceObjectServiceImpl<EPerson> impleme
|
||||
return getMetadataFirstValue(dso, MDValue[0], MDValue[1], MDValue[2], Item.ANY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setMetadata(Context context, EPerson ePerson, String field, String value) throws SQLException {
|
||||
String[] MDValue = getMDValueByLegacyField(field);
|
||||
setMetadataSingleValue(context, ePerson, MDValue[0], MDValue[1], MDValue[2], null, value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<EPerson> findUnsalted(Context context) throws SQLException {
|
||||
return ePersonDAO.findWithPasswordWithoutDigestAlgorithm(context);
|
||||
|
Reference in New Issue
Block a user