|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.clients.vc.VersionTaskLogic
Class VersionTaskLogic
is a utility class which provides
static
methods for manipulating Versioned
objects. These methods encapsulate the necessary server-side processing
Supported API: false
Extendable: false
wt.vc.version.Versioned
Nested Class Summary | |
static class |
VersionTaskLogic.Server
Inner class that acts a lightweight service which executes methods on the server to reduce unnecessary client to server traffic and data transfer. |
Field Summary | |
private static String |
MESSAGES_RESOURCE
|
private static String |
SERVER_CLASS
|
private static String |
versionID
|
Constructor Summary | |
VersionTaskLogic()
|
Method Summary | |
static QueryResult |
getAllVersions(Mastered master)
Returns all versions which correspond to the given Mastered
object. |
static Timestamp |
getCreationDate(Versionable versionable)
Returns the create stamp for the given versionable object. |
static Timestamp |
getCreationDate(Versioned versioned)
Returns the create stamp for the given versionable object. |
static WTPrincipal |
getCreator(Versioned versioned)
Returns the WTPrincipal which created the given
Versioned object. |
static String |
getCurrentIterationIdentifier(Versioned versioned)
Returns a String representation of the iteration identifier
of the current Iteration of the given Versioned
object. |
static WTPrincipal |
getUpdater(Versioned versioned)
Returns the WTPrincipal which most recently updated the given
Versioned object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String versionID
private static String MESSAGES_RESOURCE
private static final String SERVER_CLASS
Constructor Detail |
public VersionTaskLogic()
Method Detail |
public static QueryResult getAllVersions(Mastered master) throws WTException
Mastered
object.
master
- the Mastered
object for which all versions
are to be returned
QueryResult
containing all Versioned
objects which are versions of the given master
WTException
- if an error occurs retrieving all versions of the
given masterwt.vc.version.Mastered
,
wt.vc.version.Versioned
public static String getCurrentIterationIdentifier(Versioned versioned) throws VersionControlException, WTPropertyVetoException, WTException
String
representation of the iteration identifier
of the current Iteration
of the given Versioned
object.
versioned
- the Versioned
object for which the
iteration identifier is returned
Version
in String
format
VersionException
- if an error occurs retrieving the iteration
identifier
WTPropertyVetoException
- if an error occurs retrieving the iteration
identifier
WTException
- if an error occurs retrieving the iteration
identifier
VersionControlException
public static WTPrincipal getCreator(Versioned versioned) throws VersionControlException, WTException
WTPrincipal
which created the given
Versioned
object. If no creator is found, null
is returned.
versioned
- the Versioned
object for which the
creator is returned
WTPrincipal
which created the given
Versioned
object; returns null
if no
creator is found
VersionException
- if an error occurs retrieving the creator
WTException
- if an error occurs retrieving the creator
VersionControlException
wt.vc.version.Versioned
public static WTPrincipal getUpdater(Versioned versioned) throws VersionControlException, WTException
WTPrincipal
which most recently updated the given
Versioned
object. If no updater is found, null
is
returned.
versioned
- the Versioned
object for which the
updater is returned
WTPrincipal
which updated the given
Versioned
object; returns null
if
no updater is found
VersionException
- if an error occurs retrieving the updater
WTException
- if an error occurs retrieving the updater
VersionControlException
wt.vc.version.Versioned
public static Timestamp getCreationDate(Versionable versionable) throws WTException
WTException
public static Timestamp getCreationDate(Versioned versioned) throws WTException
versioned
- the Versionable object whose create stamp is returned
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |