public class ObsoletesChain extends Object
Constructor and Description |
---|
ObsoletesChain(Identifier pid) |
Modifier and Type | Method and Description |
---|---|
void |
addObject(Identifier pid,
Date publishDate,
Identifier obsoletes,
Identifier obsoletedBy,
Boolean isArchived) |
Identifier |
getByPosition(int index) |
Identifier |
getLatestVersion() |
Identifier |
getOriginalVersion() |
Date |
getPublishDate(Identifier pid) |
Identifier |
getStartingPoint() |
Identifier |
getVersionAsOf(Date asOfDate) |
Boolean |
isArchived(Identifier pid) |
boolean |
isComplete()
An ObsoletesChain is complete when the earliest and latest links have
no obsoletedBy and obsoletes, respectively.
|
boolean |
isLatestVersion(Identifier pid) |
Boolean |
latestIsArchived() |
Identifier |
nextVersion(Identifier pid) |
Identifier |
previousVersion(Identifier pid) |
int |
size()
returns the size of the chain (count of the number of items)
|
public ObsoletesChain(Identifier pid)
public Identifier getStartingPoint()
public void addObject(Identifier pid, Date publishDate, Identifier obsoletes, Identifier obsoletedBy, Boolean isArchived)
public Identifier getVersionAsOf(Date asOfDate)
public Identifier nextVersion(Identifier pid)
public Identifier previousVersion(Identifier pid)
public Identifier getLatestVersion()
public Identifier getOriginalVersion()
public Identifier getByPosition(int index)
public int size()
public boolean isComplete()
public Boolean isArchived(Identifier pid)
public Boolean latestIsArchived()
public Date getPublishDate(Identifier pid)
public boolean isLatestVersion(Identifier pid)
Copyright © 2016. All Rights Reserved.