wt.dataops.archive
Class StandardArchiveRestoreService

java.lang.Object
  extended bywt.services.StandardManager
      extended bywt.dataops.archive.StandardArchiveRestoreService
All Implemented Interfaces:
ArchiveService, Manager, NetFactor, RestoreService, Serializable

public class StandardArchiveRestoreService
extends StandardManager
implements ArchiveService, RestoreService, Serializable

Use the newStandardArchiveRestoreService static factory method(s), not the StandardArchiveRestoreService 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

Nested Class Summary
private  class StandardArchiveRestoreService.ArchiveRecordContentListener
           
 
Field Summary
private static String CLASSNAME
           
private static String RESOURCE
           
private static boolean VERBOSE
           
private static boolean VETO_CONTAINER_MOVE
           
 
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
StandardArchiveRestoreService()
           
 
Method Summary
private  void dispatchRestoreEvent(WTCollection objects)
           
 ArchiveStatus doArchive(ArchiveRecord record, WTCollection archiveables)
          

Supported API: false
 ArchiveStatus doArchive(ArchiveRecord record, WTCollection archiveables, Locale locale)
          

Supported API: false
 ArchiveStatus doArchive(String name, String desc, CollectionCriteria criteria, RelationshipMap relationMap, WTContainerRef context)
          

Supported API: false
 RestoreStatus doRestore(Archive archive)
          

Supported API: false
 RestoreStatus doRestore(Archive archive, ConflictResolution[] resolutions)
          

Supported API: false
 RestoreStatus doRestore(Archive archive, ConflictResolution[] resolutions, Locale locale)
          

Supported API: false
 RestoreStatus doRestore(Archive archive, Locale locale)
          

Supported API: false
 RestoreStatus doRestore(RestoreRecord record)
          

Supported API: false
 RestoreStatus doRestore(RestoreRecord record, ConflictResolution[] resolutions)
          

Supported API: false
 RestoreStatus doRestore(RestoreRecord record, ConflictResolution[] resolutions, Locale locale)
          

Supported API: false
 RestoreStatus doRestore(RestoreRecord record, Locale locale)
          

Supported API: false
 QueryResult getAllArchiveRecords()
          

Supported API: false
 QueryResult getAllArchiveRecords(ArchiveStatus status)
          

Supported API: false
 QueryResult getAllRestoreRecords(RestoreStatus status)
          

Supported API: false
 String getConceptualClassname()
          Deprecated.  
private static DisplayIdentity getHolderDisplayIdentity(ArchiveInfoHolder holder)
           
 QueryResult getRecentArchives(int numLatest)
          

Supported API: false
private  QueryResult getRecentObjects(Class targetClass, int numLatest)
           
 QueryResult getRecentRestoreRecords(int numLatest)
          

Supported API: false
static StandardArchiveRestoreService newStandardArchiveRestoreService()
          Default factory for the class.
protected  void performStartupProcess()
          Dummy method to be overridden by subclasses.
private  void processContainerMoveEvent(WTCollection archiveables)
           
private  ConflictElement processOverridableConflict(Persistable object, ArchiveConflictType conflictType, ArchiveResolutionType resolutionType, WTMessage msg, boolean onlyConflictElement)
           
private  void processPostArchive(Iterated[] iterations)
           
private  void processPostArchive(WTCollection targets)
           
private  void registerListeners()
           
 void removeFailedArchiveRecords()
          

Supported API: false
 void removeInvalidArchiveRecords()
          

Supported API: false
 void removeRestoreRecords()
          

Supported API: false
private  void validateTaskEventRemove(DataMaintRecord record, TaskEvent taskEvent)
           
 
Methods inherited from class wt.services.StandardManager
emergencyShutdown, emergencyShutdownComplete, emergencyShuttingDown, getClassInfo, getManagerService, getManagerStatus, getName, getStartupType, init, initialize, initialize, isStarted, newStandardManager, newStandardManager, performEmergencyShutdownProcess, performShutdownProcess, registerEvents, 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

VERBOSE

private static final boolean VERBOSE

VETO_CONTAINER_MOVE

private static final boolean VETO_CONTAINER_MOVE
Constructor Detail

StandardArchiveRestoreService

public StandardArchiveRestoreService()
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

performStartupProcess

protected void performStartupProcess()
                              throws ManagerException
Dummy method to be overridden by subclasses. Subclasses should override this method and provide startup processing.

Supported API: false

Overrides:
performStartupProcess in class StandardManager
Throws:
ManagerException

newStandardArchiveRestoreService

public static StandardArchiveRestoreService newStandardArchiveRestoreService()
                                                                      throws WTException
Default factory for the class.

Supported API: false

Returns:
StandardArchiveRestoreService
Throws:
WTException

doArchive

public ArchiveStatus doArchive(ArchiveRecord record,
                               WTCollection archiveables,
                               Locale locale)
                        throws WTException


Supported API: false

Specified by:
doArchive in interface ArchiveService
Parameters:
record -
archiveables -
locale -
Returns:
ArchiveStatus
Throws:
WTException

doArchive

public ArchiveStatus doArchive(ArchiveRecord record,
                               WTCollection archiveables)
                        throws WTException


Supported API: false

Specified by:
doArchive in interface ArchiveService
Parameters:
record -
archiveables -
Returns:
ArchiveStatus
Throws:
WTException

doArchive

public ArchiveStatus doArchive(String name,
                               String desc,
                               CollectionCriteria criteria,
                               RelationshipMap relationMap,
                               WTContainerRef context)
                        throws WTPropertyVetoException,
                               WTException


Supported API: false

Specified by:
doArchive in interface ArchiveService
Parameters:
name -
desc -
criteria -
relationMap -
context -
Returns:
ArchiveStatus
Throws:
WTPropertyVetoException
WTException

removeInvalidArchiveRecords

public void removeInvalidArchiveRecords()
                                 throws WTException


Supported API: false

Specified by:
removeInvalidArchiveRecords in interface ArchiveService
Throws:
WTException

removeFailedArchiveRecords

public void removeFailedArchiveRecords()
                                throws WTException


Supported API: false

Specified by:
removeFailedArchiveRecords in interface ArchiveService
Throws:
WTException

getAllArchiveRecords

public QueryResult getAllArchiveRecords()
                                 throws WTException


Supported API: false

Specified by:
getAllArchiveRecords in interface ArchiveService
Returns:
QueryResult
Throws:
WTException

getAllArchiveRecords

public QueryResult getAllArchiveRecords(ArchiveStatus status)
                                 throws WTException


Supported API: false

Specified by:
getAllArchiveRecords in interface ArchiveService
Parameters:
status -
Returns:
QueryResult
Throws:
WTException

getRecentArchives

public QueryResult getRecentArchives(int numLatest)
                              throws WTException


Supported API: false

Specified by:
getRecentArchives in interface ArchiveService
Parameters:
numLatest -
Returns:
QueryResult
Throws:
WTException

doRestore

public RestoreStatus doRestore(RestoreRecord record)
                        throws WTException


Supported API: false

Specified by:
doRestore in interface RestoreService
Parameters:
record -
Returns:
RestoreStatus
Throws:
WTException

doRestore

public RestoreStatus doRestore(RestoreRecord record,
                               ConflictResolution[] resolutions)
                        throws WTException


Supported API: false

Specified by:
doRestore in interface RestoreService
Parameters:
record -
resolutions -
Returns:
RestoreStatus
Throws:
WTException

doRestore

public RestoreStatus doRestore(Archive archive)
                        throws WTPropertyVetoException,
                               WTException


Supported API: false

Specified by:
doRestore in interface RestoreService
Parameters:
archive -
Returns:
RestoreStatus
Throws:
WTPropertyVetoException
WTException

doRestore

public RestoreStatus doRestore(Archive archive,
                               ConflictResolution[] resolutions)
                        throws WTPropertyVetoException,
                               WTException


Supported API: false

Specified by:
doRestore in interface RestoreService
Parameters:
archive -
resolutions -
Returns:
RestoreStatus
Throws:
WTPropertyVetoException
WTException

doRestore

public RestoreStatus doRestore(Archive archive,
                               Locale locale)
                        throws WTPropertyVetoException,
                               WTException


Supported API: false

Specified by:
doRestore in interface RestoreService
Parameters:
archive -
locale -
Returns:
RestoreStatus
Throws:
WTPropertyVetoException
WTException

doRestore

public RestoreStatus doRestore(Archive archive,
                               ConflictResolution[] resolutions,
                               Locale locale)
                        throws WTPropertyVetoException,
                               WTException


Supported API: false

Specified by:
doRestore in interface RestoreService
Parameters:
archive -
resolutions -
locale -
Returns:
RestoreStatus
Throws:
WTPropertyVetoException
WTException

doRestore

public RestoreStatus doRestore(RestoreRecord record,
                               Locale locale)
                        throws WTException


Supported API: false

Specified by:
doRestore in interface RestoreService
Parameters:
record -
locale -
Returns:
RestoreStatus
Throws:
WTException

doRestore

public RestoreStatus doRestore(RestoreRecord record,
                               ConflictResolution[] resolutions,
                               Locale locale)
                        throws WTException


Supported API: false

Specified by:
doRestore in interface RestoreService
Parameters:
record -
resolutions -
locale -
Returns:
RestoreStatus
Throws:
WTException

removeRestoreRecords

public void removeRestoreRecords()
                          throws WTException


Supported API: false

Specified by:
removeRestoreRecords in interface RestoreService
Throws:
WTException

getAllRestoreRecords

public QueryResult getAllRestoreRecords(RestoreStatus status)
                                 throws WTException


Supported API: false

Specified by:
getAllRestoreRecords in interface RestoreService
Parameters:
status -
Returns:
QueryResult
Throws:
WTException

getRecentRestoreRecords

public QueryResult getRecentRestoreRecords(int numLatest)
                                    throws WTException


Supported API: false

Specified by:
getRecentRestoreRecords in interface RestoreService
Parameters:
numLatest -
Returns:
QueryResult
Throws:
WTException

registerListeners

private void registerListeners()

processPostArchive

private void processPostArchive(WTCollection targets)
                         throws WTException
Throws:
WTException

processPostArchive

private void processPostArchive(Iterated[] iterations)
                         throws WTException
Throws:
WTException

processContainerMoveEvent

private void processContainerMoveEvent(WTCollection archiveables)
                                throws WTException
Throws:
WTException

processOverridableConflict

private ConflictElement processOverridableConflict(Persistable object,
                                                   ArchiveConflictType conflictType,
                                                   ArchiveResolutionType resolutionType,
                                                   WTMessage msg,
                                                   boolean onlyConflictElement)
                                            throws WTException
Throws:
WTException

getRecentObjects

private QueryResult getRecentObjects(Class targetClass,
                                     int numLatest)
                              throws WTException
Throws:
WTException

validateTaskEventRemove

private void validateTaskEventRemove(DataMaintRecord record,
                                     TaskEvent taskEvent)
                              throws WTException
Throws:
WTException

getHolderDisplayIdentity

private static DisplayIdentity getHolderDisplayIdentity(ArchiveInfoHolder holder)
                                                 throws WTException
Throws:
WTException

dispatchRestoreEvent

private void dispatchRestoreEvent(WTCollection objects)
                           throws WTException
Throws:
WTException