public class SeriesIdResolver extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
SeriesIdResolver() |
| Modifier and Type | Method and Description |
|---|---|
static org.dataone.service.types.v1.Identifier |
getPid(org.dataone.service.types.v1.Identifier identifier)
Method to find HEAD PID for a given SID.
|
static boolean |
isSeriesId(org.dataone.service.types.v1.Identifier identifier)
Check if the given identifier is a PID or a SID
|
public static org.dataone.service.types.v1.Identifier getPid(org.dataone.service.types.v1.Identifier identifier)
throws org.dataone.service.exceptions.InvalidToken,
org.dataone.service.exceptions.ServiceFailure,
org.dataone.service.exceptions.NotAuthorized,
org.dataone.service.exceptions.NotFound,
org.dataone.service.exceptions.NotImplemented,
IOException,
org.dataone.client.exception.ClientSideException
identifier - the SID to look up (if a PID is provided it will simply be returned)org.dataone.service.exceptions.InvalidTokenorg.dataone.service.exceptions.ServiceFailureorg.dataone.service.exceptions.NotAuthorizedorg.dataone.service.exceptions.NotFoundorg.dataone.service.exceptions.NotImplementedorg.dataone.client.exception.ClientSideExceptionIOExceptionpublic static boolean isSeriesId(org.dataone.service.types.v1.Identifier identifier)
identifier - Copyright © 2022. All rights reserved.