|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.silverpeas.attachment.model.SimpleDocument
org.silverpeas.attachment.model.SimpleDocumentVersion
public class SimpleDocumentVersion
This class represents one version in the history of a versioned simple document.
The identifier of the component instance provided by this class is the one of the head version. It is the same thing for the provided foreign identifier information. To retrieve the real historised values of the version, please use methods for which the name prefix is getRealVersion...
Field Summary |
---|
Fields inherited from class org.silverpeas.attachment.model.SimpleDocument |
---|
ATTACHMENT_PREFIX, DOCUMENT_PREFIX, FILE_PREFIX, VERSION_PREFIX, WEBDAV_FOLDER |
Constructor Summary | |
---|---|
SimpleDocumentVersion(SimpleDocument documentVersion,
HistorisedDocument masterVersion)
The default constructor of a simple document version. |
Method Summary | |
---|---|
String |
getAttachmentURL()
Returns the attachment URL. |
SimpleDocument |
getLastPublicVersion()
Returns the more recent public version of this document - null if none exists. |
String |
getOnlineURL()
|
SimpleDocumentVersion |
getPreviousVersion()
|
String |
getRealVersionForeignId()
Gets the real value of the foreign identifier of the version and not the one of the head version. |
SimpleDocumentPK |
getRealVersionPk()
Gets the real value of the PK of the version and not the one of the head version. |
String |
getUniversalURL()
|
HistorisedDocument |
getVersionMaster()
Returns the master of versioned document. |
String |
getWebdavUrl()
|
boolean |
isVersioned()
|
void |
setPreviousVersion(SimpleDocumentVersion previousVersion)
|
void |
setVersionMaster(SimpleDocument versionMaster)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SimpleDocumentVersion(SimpleDocument documentVersion, HistorisedDocument masterVersion)
documentVersion
- the original version.masterVersion
- Method Detail |
---|
public HistorisedDocument getVersionMaster()
SimpleDocument
getVersionMaster
in class SimpleDocument
public void setVersionMaster(SimpleDocument versionMaster)
setVersionMaster
in class SimpleDocument
public SimpleDocumentVersion getPreviousVersion()
public void setPreviousVersion(SimpleDocumentVersion previousVersion)
public SimpleDocumentPK getRealVersionPk()
public String getRealVersionForeignId()
public boolean isVersioned()
isVersioned
in class SimpleDocument
public SimpleDocument getLastPublicVersion()
SimpleDocument
getLastPublicVersion
in class SimpleDocument
public String getWebdavUrl()
getWebdavUrl
in class SimpleDocument
public String getOnlineURL()
getOnlineURL
in class SimpleDocument
public String getAttachmentURL()
SimpleDocument
getAttachmentURL
in class SimpleDocument
public String getUniversalURL()
getUniversalURL
in class SimpleDocument
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |