wt.replication.export
Class StandardExportService

java.lang.Object
  extended bywt.services.StandardManager
      extended bywt.replication.export.StandardExportService
All Implemented Interfaces:
ExportService, ExportServiceSrv, Manager, NetFactor, Serializable

public class StandardExportService
extends StandardManager
implements ExportServiceSrv, ExportService, Serializable

Use the newStandardExportService static factory method(s), not the StandardExportService constructor, to construct instances of this class. Instances must be constructed using the static factory(s), in order to ensure proper initialization of the instance.



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private static boolean PERFORMANCE
           
private static String RESOURCE
           
private static boolean SCHEDULE_ITEM_ENABLED
           
private static boolean VERBOSE
           
 
Fields inherited from class wt.services.StandardManager
 
Fields inherited from interface wt.services.Manager
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE
 
Constructor Summary
StandardExportService()
           
 
Method Summary
protected  void dispatchVetoableEvent(String eventType, WTUnit unit)
          

Supported API: false
static void doScheduledExport(UnitExportRecord uer, Locale locale)
          Routine that can be called from the scheduler to export a unit.
static UnitExportRecord enableScheduleItem(WTUnit unit)
          This method is called by the workflow processes to allow the currently active export operation for the replication unit to proceed.
 String getConceptualClassname()
          Deprecated.  
static StandardExportService newStandardExportService()
          

Supported API: false
protected  void performStartupProcess()
          Initialization tasks performed by the engine service.
 WTUnit populateUnit(WTUnit a_unit)
          For every attached seed object like WTPart or EPMDocument adds objects from appropriate product structures to the WTUnit by navigating recursively from the seed object using the Navigator.
 void registerEvents(ManagerService manager)
          

Supported API: false
 void scheduleExportOperation(WTUnit unit, Timestamp tStamp, String sDescription, Locale locale)
          

Supported API: false
 
Methods inherited from class wt.services.StandardManager
emergencyShutdown, emergencyShutdownComplete, emergencyShuttingDown, getClassInfo, getManagerService, getManagerStatus, getName, getStartupType, init, initialize, initialize, isStarted, newStandardManager, newStandardManager, performEmergencyShutdownProcess, performShutdownProcess, setManagerService, shutdown, shutdownFailure, shutdownSuccess, shuttingDown, started, startedErrors, startingUp, startup, startupFailure, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

SCHEDULE_ITEM_ENABLED

private static boolean SCHEDULE_ITEM_ENABLED

PERFORMANCE

private static boolean PERFORMANCE

VERBOSE

private static boolean VERBOSE
Constructor Detail

StandardExportService

public StandardExportService()
Method Detail

getConceptualClassname

public String getConceptualClassname()
Deprecated.  

Returns the conceptual (modeled) name for the class.

Supported API: false

Specified by:
getConceptualClassname in interface NetFactor
Overrides:
getConceptualClassname in class StandardManager
Returns:
String

newStandardExportService

public static StandardExportService newStandardExportService()
                                                      throws WTException


Supported API: false

Returns:
StandardExportService
Throws:
WTException

performStartupProcess

protected void performStartupProcess()
                              throws ManagerException
Initialization tasks performed by the engine service. Includes queue activation and event subscription.

Supported API: false

Overrides:
performStartupProcess in class StandardManager
Throws:
ManagerException

registerEvents

public void registerEvents(ManagerService manager)


Supported API: false

Specified by:
registerEvents in interface Manager
Overrides:
registerEvents in class StandardManager
Parameters:
manager -

dispatchVetoableEvent

protected void dispatchVetoableEvent(String eventType,
                                     WTUnit unit)
                              throws WTException,
                                     WTPropertyVetoException


Supported API: false

Parameters:
eventType -
unit -
Throws:
WTException
WTPropertyVetoException

doScheduledExport

public static void doScheduledExport(UnitExportRecord uer,
                                     Locale locale)
                              throws WTPropertyVetoException,
                                     WTException
Routine that can be called from the scheduler to export a unit.

Supported API: false

Parameters:
uer -
locale -
Throws:
WTPropertyVetoException
WTException

enableScheduleItem

public static UnitExportRecord enableScheduleItem(WTUnit unit)
This method is called by the workflow processes to allow the currently active export operation for the replication unit to proceed. The arguments and return type for this method should not be changed because that will break existing workflow templates.

Supported API: false

Parameters:
unit -
Returns:
UnitExportRecord

populateUnit

public WTUnit populateUnit(WTUnit a_unit)
                    throws WTException
For every attached seed object like WTPart or EPMDocument adds objects from appropriate product structures to the WTUnit by navigating recursively from the seed object using the Navigator. All items are added within a single transaction. If iterations for the same Master of an item appear more than once in the structure, then the item iteration that was first encountered will be added to the WTUnit. The modification timestamp on the WTUnit is updated once after all items have been added. The PRE_ADD_UNIT and POST_ADD_UNIT events are emitted for each item.

Supported API: false

Specified by:
populateUnit in interface ExportService
Parameters:
a_unit -
Returns:
WTUnit
Throws:
WTException

scheduleExportOperation

public void scheduleExportOperation(WTUnit unit,
                                    Timestamp tStamp,
                                    String sDescription,
                                    Locale locale)
                             throws WTException,
                                    WTPropertyVetoException


Supported API: false

Specified by:
scheduleExportOperation in interface ExportService
Parameters:
unit -
tStamp -
sDescription -
locale -
Throws:
WTException
WTPropertyVetoException