wt.replication.unit
Class UnitConfigSpecOperation

java.lang.Object
  extended bywt.replication.unit.UnitOperation
      extended bywt.replication.unit.UnitConfigSpecOperation

class UnitConfigSpecOperation
extends UnitOperation


Field Summary
private static String CLASSNAME
           
private  int mode
           
private  ConfigSpec newConfigSpec
           
protected static int REMEPMDOCCS
           
protected static int REMWTDOCCS
           
protected static int REMWTPARTCS
           
private static String RESOURCE
           
protected static int SETEPMDOCCS
           
protected static int SETWTDOCCS
           
protected static int SETWTPARTCS
           
 
Fields inherited from class wt.replication.unit.UnitOperation
theUnit
 
Constructor Summary
(package private) UnitConfigSpecOperation(ConfigSpec a_configSpec, WTUnit a_unit, int a_mode)
           
 
Method Summary
private static void copyEPMDocConfigSpec(EPMDocConfigSpec fromCS, EPMDocConfigSpec toCS)
           
private static void copyWTDocConfigSpec(WTDocumentConfigSpec fromCS, WTDocumentConfigSpec toCS)
           
private static void copyWTPartConfigSpec(WTPartConfigSpec fromCS, WTPartConfigSpec toCS)
           
 WTUnit execute()
          This method sets WTPartConfigSpec,EPMDocConfigSpec or WTDocumentConfigSpec to theWTUnit.
protected static UnitEPMDocCSLink findUnitEPMDocCSLink(WTUnit a_unit)
           
protected static UnitWTDocCSLink findUnitWTDocCSLink(WTUnit a_unit)
           
protected static UnitWTPartCSLink findUnitWTPartCSLink(WTUnit a_unit)
           
protected static EPMDocConfigSpec getUnitEPMDocConfigSpec(WTUnit a_unit)
           
protected static WTDocumentConfigSpec getUnitWTDocumentConfigSpec(WTUnit a_unit)
           
protected static WTPartConfigSpec getUnitWTPartConfigSpec(WTUnit a_unit)
           
protected static void removeUnitEPMDocConfigSpec(WTUnit a_unit)
           
protected static void removeUnitWTDocumentConfigSpec(WTUnit a_unit)
           
protected static void removeUnitWTPartConfigSpec(WTUnit a_unit)
           
private  WTUnit setUnitEPMDocConfigSpec(WTUnit a_unit)
           
protected static WTUnit setUnitEPMDocConfigSpec(WTUnit a_unit, EPMDocConfigSpec a_EPMDocConfigSpec)
           
private  WTUnit setUnitWTDocumentConfigSpec(WTUnit a_unit)
           
protected static WTUnit setUnitWTDocumentConfigSpec(WTUnit a_unit, WTDocumentConfigSpec a_WTDocumentConfigSpec)
           
private  WTUnit setUnitWTPartConfigSpec(WTUnit a_unit)
           
protected static WTUnit setUnitWTPartConfigSpec(WTUnit a_unit, WTPartConfigSpec a_WTPartConfigSpec)
           
 
Methods inherited from class wt.replication.unit.UnitOperation
executeLockingTransaction, executeTransaction, executeTransaction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

SETWTPARTCS

protected static final int SETWTPARTCS
See Also:
Constant Field Values

SETEPMDOCCS

protected static final int SETEPMDOCCS
See Also:
Constant Field Values

SETWTDOCCS

protected static final int SETWTDOCCS
See Also:
Constant Field Values

REMWTPARTCS

protected static final int REMWTPARTCS
See Also:
Constant Field Values

REMEPMDOCCS

protected static final int REMEPMDOCCS
See Also:
Constant Field Values

REMWTDOCCS

protected static final int REMWTDOCCS
See Also:
Constant Field Values

mode

private int mode

newConfigSpec

private ConfigSpec newConfigSpec
Constructor Detail

UnitConfigSpecOperation

UnitConfigSpecOperation(ConfigSpec a_configSpec,
                        WTUnit a_unit,
                        int a_mode)
                  throws WTException
Method Detail

execute

public WTUnit execute()
               throws WTException
This method sets WTPartConfigSpec,EPMDocConfigSpec or WTDocumentConfigSpec to theWTUnit. If the ConfigSpec has been set, then the WTUnit modification timestamp is updated.

Specified by:
execute in class UnitOperation
Returns:
WTUnit that the operation was performed on
Throws:
WTException

getUnitWTPartConfigSpec

protected static WTPartConfigSpec getUnitWTPartConfigSpec(WTUnit a_unit)
                                                   throws WTException
Throws:
WTException

findUnitWTPartCSLink

protected static UnitWTPartCSLink findUnitWTPartCSLink(WTUnit a_unit)
                                                throws WTException
Throws:
WTException

removeUnitWTPartConfigSpec

protected static void removeUnitWTPartConfigSpec(WTUnit a_unit)
                                          throws WTException
Throws:
WTException

setUnitWTPartConfigSpec

private WTUnit setUnitWTPartConfigSpec(WTUnit a_unit)
                                throws WTException,
                                       WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

setUnitWTPartConfigSpec

protected static WTUnit setUnitWTPartConfigSpec(WTUnit a_unit,
                                                WTPartConfigSpec a_WTPartConfigSpec)
                                         throws WTException,
                                                WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

copyWTPartConfigSpec

private static void copyWTPartConfigSpec(WTPartConfigSpec fromCS,
                                         WTPartConfigSpec toCS)
                                  throws WTException
Throws:
WTException

getUnitEPMDocConfigSpec

protected static EPMDocConfigSpec getUnitEPMDocConfigSpec(WTUnit a_unit)
                                                   throws WTException
Throws:
WTException

findUnitEPMDocCSLink

protected static UnitEPMDocCSLink findUnitEPMDocCSLink(WTUnit a_unit)
                                                throws WTException
Throws:
WTException

removeUnitEPMDocConfigSpec

protected static void removeUnitEPMDocConfigSpec(WTUnit a_unit)
                                          throws WTException
Throws:
WTException

setUnitEPMDocConfigSpec

private WTUnit setUnitEPMDocConfigSpec(WTUnit a_unit)
                                throws WTException,
                                       WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

setUnitEPMDocConfigSpec

protected static WTUnit setUnitEPMDocConfigSpec(WTUnit a_unit,
                                                EPMDocConfigSpec a_EPMDocConfigSpec)
                                         throws WTException,
                                                WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

copyEPMDocConfigSpec

private static void copyEPMDocConfigSpec(EPMDocConfigSpec fromCS,
                                         EPMDocConfigSpec toCS)
                                  throws WTException
Throws:
WTException

getUnitWTDocumentConfigSpec

protected static WTDocumentConfigSpec getUnitWTDocumentConfigSpec(WTUnit a_unit)
                                                           throws WTException
Throws:
WTException

findUnitWTDocCSLink

protected static UnitWTDocCSLink findUnitWTDocCSLink(WTUnit a_unit)
                                              throws WTException
Throws:
WTException

removeUnitWTDocumentConfigSpec

protected static void removeUnitWTDocumentConfigSpec(WTUnit a_unit)
                                              throws WTException
Throws:
WTException

setUnitWTDocumentConfigSpec

private WTUnit setUnitWTDocumentConfigSpec(WTUnit a_unit)
                                    throws WTException,
                                           WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

setUnitWTDocumentConfigSpec

protected static WTUnit setUnitWTDocumentConfigSpec(WTUnit a_unit,
                                                    WTDocumentConfigSpec a_WTDocumentConfigSpec)
                                             throws WTException,
                                                    WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

copyWTDocConfigSpec

private static void copyWTDocConfigSpec(WTDocumentConfigSpec fromCS,
                                        WTDocumentConfigSpec toCS)
                                 throws WTException
Throws:
WTException