|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mycore.datamodel.ifs2.MCRMetadataVersion
public class MCRMetadataVersion
Provides information about a stored version of metadata and allows to retrieve that version from SVN
| Field Summary | |
|---|---|
static char |
CREATED
A version that was created in store |
static char |
DELETED
A version that was deleted in store |
static char |
UPDATED
A version that was updated in store |
| Constructor Summary | |
|---|---|
MCRMetadataVersion(MCRVersionedMetadata vm,
org.tmatesoft.svn.core.SVNLogEntry logEntry,
char type)
Creates a new metadata version info object |
|
| Method Summary | |
|---|---|
Date |
getDate()
Returns the date and time this version was created |
MCRVersionedMetadata |
getMetadataObject()
Returns the metadata object this version belongs to |
long |
getRevision()
Returns the SVN revision number of this version |
char |
getType()
Returns the type of operation this version comes from |
String |
getUser()
Returns the user that created this version |
void |
restore()
Replaces the current version of the metadata object with this version, which means that a new version is created that is identical to this old version. |
MCRContent |
retrieve()
Retrieves this version of the metadata |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final char CREATED
public static final char UPDATED
public static final char DELETED
| Constructor Detail |
|---|
MCRMetadataVersion(MCRVersionedMetadata vm,
org.tmatesoft.svn.core.SVNLogEntry logEntry,
char type)
vm - the metadata document this version belongs tologEntry - the log entry from SVN holding data on this versiontype - the type of commit| Method Detail |
|---|
public MCRVersionedMetadata getMetadataObject()
public char getType()
CREATED,
UPDATED,
DELETEDpublic long getRevision()
public String getUser()
public Date getDate()
public MCRContent retrieve()
throws Exception
MCRUsageException - if this is a deleted version, which can not be retrieved
Exception
public void restore()
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||