wt.epm.workspaces
Class DeleteHandler

java.lang.Object
  extended bywt.epm.workspaces.DeleteHandler

class DeleteHandler
extends Object

DeleteHandler

Supported API: false

Extendable: false


Field Summary
private static Object SUBSTITUTES_FOR_VERSIONS
           
 
Constructor Summary
(package private) DeleteHandler()
           
 
Method Summary
private static WTCollection filterOnLatest(WTCollection objects, boolean returnLatest)
           
static WTValuedMap findSubstitutes(WTCollection objects)
          For each document iteration in the given list of to-be-deleted objects, find the appropriate iteration (if any) to use as a substitute in all as-stored configs that it participates in.
private static WTValuedMap findSubstitutesForVersions(WTCollection documents)
          Deleting the latest iteration of a version will trigger the deletion of all iterations of that version.
private static ObjectIdentifier getPredecessorId(ControlBranch version)
           
private static ObjectIdentifier getPredecessorId(Iterated object)
           
private static WTValuedMap getSubstitutesForVersions()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUBSTITUTES_FOR_VERSIONS

private static Object SUBSTITUTES_FOR_VERSIONS
Constructor Detail

DeleteHandler

DeleteHandler()
Method Detail

findSubstitutes

public static WTValuedMap findSubstitutes(WTCollection objects)
                                   throws WTException
For each document iteration in the given list of to-be-deleted objects, find the appropriate iteration (if any) to use as a substitute in all as-stored configs that it participates in.

Throws:
WTException

findSubstitutesForVersions

private static WTValuedMap findSubstitutesForVersions(WTCollection documents)
                                               throws WTException
Deleting the latest iteration of a version will trigger the deletion of all iterations of that version. Find the appropriate iteration of an earlier version (if any) to use as a substitute for all iterations of a to-be-deleted version.

Throws:
WTException

filterOnLatest

private static WTCollection filterOnLatest(WTCollection objects,
                                           boolean returnLatest)
                                    throws WTException
Throws:
WTException

getPredecessorId

private static ObjectIdentifier getPredecessorId(ControlBranch version)

getPredecessorId

private static ObjectIdentifier getPredecessorId(Iterated object)

getSubstitutesForVersions

private static WTValuedMap getSubstitutesForVersions()
                                              throws WTException
Throws:
WTException