wt.replication.unit
Class WTUnitHelper

java.lang.Object
  extended bywt.replication.unit.WTUnitHelper
All Implemented Interfaces:
Externalizable, Serializable

public class WTUnitHelper
extends Object
implements Externalizable



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
static long EXTERNALIZATION_VERSION_UID
           
protected static long OLD_FORMAT_VERSION_UID
           
private static String prevClassName
           
private static ReplicationProductStruct repProdStruct
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
static WTUnitService service
          

Supported API: false
 
Constructor Summary
WTUnitHelper()
           
 
Method Summary
static WTUnit createWTUnit(String a_Number, String a_Name, String a_Description, String a_FolderPath, String a_LCTemplate, String a_LCState, String a_fullTeamTemplateName, UnitReplicationStatus a_ReceiverStatus, UnitReplicationStatus a_ExportStatus, UnitReplicationStatus a_ImportStatus)
          

Supported API: false
static WTUnit createWTUnitLatestVersion(String a_Number, String a_Name, String a_Description, String a_FolderPath, String a_LCTemplate, String a_LCState, String a_fullTeamTemplateName, UnitReplicationStatus a_ReceiverStatus, UnitReplicationStatus a_ExportStatus, UnitReplicationStatus a_ImportStatus)
          

Supported API: false
static WTUnit createWTUnitWithGeneratedNumber(String a_Name, String a_Description, String a_FolderPath, String a_LCTemplate, String a_LCState, String a_fullTeamTemplateName, UnitReplicationStatus a_ReceiverStatus, UnitReplicationStatus a_ExportStatus, UnitReplicationStatus a_ImportStatus)
          

Supported API: false
static void ExportEmpty(WTUnit wtUnit)
           
static void ExportFailed(UnitExportRecord uer)
           
static void ExportNotApplicable(UnitExportRecord uer)
           
static void ExportScheduled(UnitExportRecord uer)
           
static void ExportStarted(UnitExportRecord uer)
           
static void ExportSuccessful(UnitExportRecord uer)
           
static void findAllUnitsByName(String unitName)
          

Supported API: false
static Enumeration findAllUnitVersions(String unitNumber)
          

Supported API: false
static String getLifeCycleState(WTUnit unit)
          

Supported API: false
static ReplicationProductStruct getReplicationProdStructClass(WTUnit wtUnit)
           
static WTUnit getUnitByNumber(String unitNumber)
          

Supported API: false
static WTUnitMaster getUnitMasterByNumber(String unitNumber)
          

Supported API: false
static String getUnitNumber()
           
static void ImportEmpty(WTUnit wtUnit)
           
static void ImportFailed(UnitImportRecord uir)
           
static void ImportNotApplicable(UnitImportRecord uir)
           
static void ImportScheduled(UnitImportRecord uir)
           
static void ImportStarted(UnitImportRecord uir)
           
static void ImportSuccessful(UnitImportRecord uir)
           
static boolean isUnitInPersonalCabinet(WTUnit unit)
           
 void readExternal(ObjectInput input)
          Reads the non-transient fields of this class from an external source.
private  boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source, which is not the current version.
protected  boolean readVersion(WTUnitHelper thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
static void ReceiveEmpty(WTUnit wtUnit)
           
static void ReceiveFailed(WTUnit wtUnit)
           
static void ReceiveNotApplicable(WTUnit wtUnit)
           
static void ReceiveScheduled(UnitReceiveRecord urr)
           
static void ReceiveStarted(WTUnit wtUnit)
           
static void ReceiveSuccessful(UnitReceiveRecord urr)
           
static void SendEmpty(UnitSendRecord rec)
           
static void SendFailed(UnitSendRecord rec)
           
static void SendNotApplicable(UnitSendRecord rec)
           
static void SendScheduled(UnitSendRecord rec)
           
static void SendStarted(UnitSendRecord rec)
           
static void SendSuccessful(UnitSendRecord rec)
           
static void setStatus(UnitOperationRecord uor, SchedStatusInfo status, Timestamp complTime)
           
private static WTUnit setUnitAttributes(WTUnit a_unit, String a_Description, String a_FolderPath, String a_LCTemplate, String a_LCState, String a_fullTeamTemplateName)
           
private static WTUnit setUnitStatuses(WTUnit a_unit, UnitReplicationStatus a_ReceiverStatus, UnitReplicationStatus a_ExportStatus, UnitReplicationStatus a_ImportStatus)
           
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
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

service

public static final WTUnitService service


Supported API: false


serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
See Also:
Constant Field Values

repProdStruct

private static ReplicationProductStruct repProdStruct

prevClassName

private static String prevClassName
Constructor Detail

WTUnitHelper

public WTUnitHelper()
Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(WTUnitHelper thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Parameters:
thisObject -
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

createWTUnit

public static WTUnit createWTUnit(String a_Number,
                                  String a_Name,
                                  String a_Description,
                                  String a_FolderPath,
                                  String a_LCTemplate,
                                  String a_LCState,
                                  String a_fullTeamTemplateName,
                                  UnitReplicationStatus a_ReceiverStatus,
                                  UnitReplicationStatus a_ExportStatus,
                                  UnitReplicationStatus a_ImportStatus)
                           throws WTException,
                                  WTPropertyVetoException


Supported API: false

Parameters:
a_Number -
a_Name -
a_Description -
a_FolderPath -
a_LCTemplate -
a_LCState -
a_fullTeamTemplateName -
a_ReceiverStatus -
a_ExportStatus -
a_ImportStatus -
Returns:
WTUnit
Throws:
WTException
WTPropertyVetoException

createWTUnitLatestVersion

public static WTUnit createWTUnitLatestVersion(String a_Number,
                                               String a_Name,
                                               String a_Description,
                                               String a_FolderPath,
                                               String a_LCTemplate,
                                               String a_LCState,
                                               String a_fullTeamTemplateName,
                                               UnitReplicationStatus a_ReceiverStatus,
                                               UnitReplicationStatus a_ExportStatus,
                                               UnitReplicationStatus a_ImportStatus)
                                        throws WTException,
                                               WTPropertyVetoException


Supported API: false

Parameters:
a_Number -
a_Name -
a_Description -
a_FolderPath -
a_LCTemplate -
a_LCState -
a_fullTeamTemplateName -
a_ReceiverStatus -
a_ExportStatus -
a_ImportStatus -
Returns:
WTUnit
Throws:
WTException
WTPropertyVetoException

createWTUnitWithGeneratedNumber

public static WTUnit createWTUnitWithGeneratedNumber(String a_Name,
                                                     String a_Description,
                                                     String a_FolderPath,
                                                     String a_LCTemplate,
                                                     String a_LCState,
                                                     String a_fullTeamTemplateName,
                                                     UnitReplicationStatus a_ReceiverStatus,
                                                     UnitReplicationStatus a_ExportStatus,
                                                     UnitReplicationStatus a_ImportStatus)
                                              throws WTException,
                                                     WTPropertyVetoException


Supported API: false

Parameters:
a_Name -
a_Description -
a_FolderPath -
a_LCTemplate -
a_LCState -
a_fullTeamTemplateName -
a_ReceiverStatus -
a_ExportStatus -
a_ImportStatus -
Returns:
WTUnit
Throws:
WTException
WTPropertyVetoException

findAllUnitsByName

public static void findAllUnitsByName(String unitName)
                               throws WTException


Supported API: false

Parameters:
unitName -
Throws:
WTException

findAllUnitVersions

public static Enumeration findAllUnitVersions(String unitNumber)
                                       throws WTException


Supported API: false

Parameters:
unitNumber -
Returns:
Enumeration
Throws:
WTException

getLifeCycleState

public static String getLifeCycleState(WTUnit unit)
                                throws WTException


Supported API: false

Parameters:
unit -
Returns:
String
Throws:
WTException

getUnitByNumber

public static WTUnit getUnitByNumber(String unitNumber)
                              throws WTException


Supported API: false

Parameters:
unitNumber -
Returns:
WTUnit
Throws:
WTException

getUnitMasterByNumber

public static WTUnitMaster getUnitMasterByNumber(String unitNumber)
                                          throws WTException


Supported API: false

Parameters:
unitNumber -
Returns:
WTUnitMaster
Throws:
WTException

getUnitNumber

public static String getUnitNumber()

setUnitStatuses

private static WTUnit setUnitStatuses(WTUnit a_unit,
                                      UnitReplicationStatus a_ReceiverStatus,
                                      UnitReplicationStatus a_ExportStatus,
                                      UnitReplicationStatus a_ImportStatus)
                               throws WTException
Throws:
WTException

setUnitAttributes

private static WTUnit setUnitAttributes(WTUnit a_unit,
                                        String a_Description,
                                        String a_FolderPath,
                                        String a_LCTemplate,
                                        String a_LCState,
                                        String a_fullTeamTemplateName)
                                 throws WTException,
                                        WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

ExportSuccessful

public static void ExportSuccessful(UnitExportRecord uer)
                             throws WTException,
                                    WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

SendSuccessful

public static void SendSuccessful(UnitSendRecord rec)
                           throws WTException,
                                  WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

ReceiveSuccessful

public static void ReceiveSuccessful(UnitReceiveRecord urr)
                              throws WTException,
                                     WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

ImportSuccessful

public static void ImportSuccessful(UnitImportRecord uir)
                             throws WTException,
                                    WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

ExportEmpty

public static void ExportEmpty(WTUnit wtUnit)
                        throws WTException
Throws:
WTException

SendEmpty

public static void SendEmpty(UnitSendRecord rec)
                      throws WTException,
                             WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

ReceiveEmpty

public static void ReceiveEmpty(WTUnit wtUnit)
                         throws WTException
Throws:
WTException

ImportEmpty

public static void ImportEmpty(WTUnit wtUnit)
                        throws WTException
Throws:
WTException

ExportFailed

public static void ExportFailed(UnitExportRecord uer)
                         throws WTException,
                                WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

SendFailed

public static void SendFailed(UnitSendRecord rec)
                       throws WTException,
                              WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

ReceiveFailed

public static void ReceiveFailed(WTUnit wtUnit)
                          throws WTException
Throws:
WTException

ImportFailed

public static void ImportFailed(UnitImportRecord uir)
                         throws WTException,
                                WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

ExportStarted

public static void ExportStarted(UnitExportRecord uer)
                          throws WTException,
                                 WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

SendStarted

public static void SendStarted(UnitSendRecord rec)
                        throws WTException,
                               WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

ReceiveStarted

public static void ReceiveStarted(WTUnit wtUnit)
                           throws WTException
Throws:
WTException

ImportStarted

public static void ImportStarted(UnitImportRecord uir)
                          throws WTException,
                                 WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

ExportNotApplicable

public static void ExportNotApplicable(UnitExportRecord uer)
                                throws WTException,
                                       WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

SendNotApplicable

public static void SendNotApplicable(UnitSendRecord rec)
                              throws WTException,
                                     WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

ReceiveNotApplicable

public static void ReceiveNotApplicable(WTUnit wtUnit)
                                 throws WTException
Throws:
WTException

ImportNotApplicable

public static void ImportNotApplicable(UnitImportRecord uir)
                                throws WTException,
                                       WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

ExportScheduled

public static void ExportScheduled(UnitExportRecord uer)
                            throws WTException,
                                   WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

SendScheduled

public static void SendScheduled(UnitSendRecord rec)
                          throws WTException,
                                 WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

ReceiveScheduled

public static void ReceiveScheduled(UnitReceiveRecord urr)
                             throws WTException,
                                    WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

ImportScheduled

public static void ImportScheduled(UnitImportRecord uir)
                            throws WTException,
                                   WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

setStatus

public static void setStatus(UnitOperationRecord uor,
                             SchedStatusInfo status,
                             Timestamp complTime)
                      throws WTReplicationException,
                             WTPropertyVetoException,
                             WTException
Throws:
WTReplicationException
WTPropertyVetoException
WTException

getReplicationProdStructClass

public static ReplicationProductStruct getReplicationProdStructClass(WTUnit wtUnit)
                                                              throws WTException
Throws:
WTException

isUnitInPersonalCabinet

public static boolean isUnitInPersonalCabinet(WTUnit unit)
                                       throws WTException
Throws:
WTException