|
Daisy Open Source CMS | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.outerj.daisy.workflow.WfVersionKey
public class WfVersionKey
A pointer to a specific version of a document variant.
This object is immutable.
| Constructor Summary | |
|---|---|
WfVersionKey(String documentId,
long branchId,
long languageId,
String version)
|
|
| Method Summary | |
|---|---|
int |
compareTo(Object o)
|
boolean |
equals(Object obj)
|
static WfVersionKey |
get(Document document,
String version)
Convenience method to construct a WfVersionKey object from the given document and version string. |
long |
getBranchId()
|
String |
getDocumentId()
|
long |
getLanguageId()
|
VariantKey |
getVariantKey()
Gets a VariantKey equivalent to this WfVersionKey (missing the version information of course). |
String |
getVersion()
Version (number or live/last), can be null. |
Version |
getVersion(Repository repository)
Retrieve the document version pointed to by this key from the given repository. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WfVersionKey(String documentId,
long branchId,
long languageId,
String version)
version - a version number, or the strings live/LIVE or last/LAST| Method Detail |
|---|
public String getDocumentId()
public long getBranchId()
public long getLanguageId()
public String getVersion()
public int compareTo(Object o)
compareTo in interface Comparablepublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic VariantKey getVariantKey()
public Version getVersion(Repository repository)
throws RepositoryException
RepositoryException
public static WfVersionKey get(Document document,
String version)
|
Daisy Open Source CMS | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||