Skip to content

Commit

Permalink
Used the new method to get the system metadata.
Browse files Browse the repository at this point in the history
  • Loading branch information
taojing2002 committed Jun 25, 2024
1 parent 847b986 commit e1e354f
Showing 1 changed file with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,19 +100,12 @@ public static boolean isSeriesId(Identifier identifier)
InstantiationException, IllegalAccessException, IOException, MarshallingException {

// if we have system metadata available via HZ map, then it's a PID
String relativeObjPath = null;//we don't know the path
SystemMetadata systemMetadata =
ObjectManager.getInstance().getSystemMetadata(identifier.getValue(), relativeObjPath);
org.dataone.service.types.v1.SystemMetadata systemMetadata = ObjectManager.getInstance()
.getSystemMetadata(identifier.getValue());
if (systemMetadata != null) {
return false;
}

//TODO: check that it's not just bogus value by looking up the pid?
// Identifier pid = getPid(identifier);
// if (pid.equals(identifier)) {
// return false;
// }

// okay, it's a SID
return true;

Expand Down

0 comments on commit e1e354f

Please sign in to comment.