77582: Rename formatHandle to parseHandle & add @Override

This commit is contained in:
Yura Bondarenko
2021-03-26 16:20:11 +01:00
parent 315e29d2b1
commit a43e07f89a
5 changed files with 8 additions and 7 deletions

View File

@@ -78,7 +78,7 @@ public class VersionedHandleIdentifierProvider extends IdentifierProvider {
@Override
public boolean supports(String identifier) {
return handleService.formatHandle(identifier) != null;
return handleService.parseHandle(identifier) != null;
}
@Override
@@ -284,7 +284,7 @@ public class VersionedHandleIdentifierProvider extends IdentifierProvider {
public DSpaceObject resolve(Context context, String identifier, String... attributes) {
// We can do nothing with this, return null
try {
identifier = handleService.formatHandle(identifier);
identifier = handleService.parseHandle(identifier);
return handleService.resolveToObject(context, identifier);
} catch (IllegalStateException | SQLException e) {
log.error(LogManager.getHeader(context, "Error while resolving handle to item", "handle: " + identifier),