Use a more explicit name for the storeAuthorityInMetadata method

This commit is contained in:
Andrea Bollini
2020-07-02 21:11:56 +02:00
parent 18bc3e1fcb
commit 675c975d29
4 changed files with 4 additions and 4 deletions

View File

@@ -156,7 +156,7 @@ public interface ChoiceAuthority extends NameAwarePlugin {
* @return <code>true</code> if the authority provided in any choice of this
* authority should be stored in the metadata value
*/
default public boolean storeAuthority() {
default public boolean storeAuthorityInMetadata() {
return true;
}
}

View File

@@ -55,7 +55,7 @@ public class DCInputAuthority extends SelfNamedPlugin implements ChoiceAuthority
}
@Override
public boolean storeAuthority() {
public boolean storeAuthorityInMetadata() {
// For backward compatibility value pairs don't store authority in
// the metadatavalue
return false;

View File

@@ -79,7 +79,7 @@ public class DSpaceControlledVocabulary extends SelfNamedPlugin implements Hiera
}
@Override
public boolean storeAuthority() {
public boolean storeAuthorityInMetadata() {
// For backward compatibility controlled vocabularies don't store the node id in
// the metadatavalue
return false;

View File

@@ -88,7 +88,7 @@ public class VocabularyEntryLinkRepository extends AbstractDSpaceRestRepository
choices = ca.getMatches(filter, Math.toIntExact(pageable.getOffset()),
pageable.getPageSize(), context.getCurrentLocale().toString());
}
boolean storeAuthority = ca.storeAuthority();
boolean storeAuthority = ca.storeAuthorityInMetadata();
for (Choice value : choices.values) {
results.add(authorityUtils.convertEntry(value, name, storeAuthority, projection));
}