wt.ixb.conflictFramework
Class StandardConflictFrameworkService

java.lang.Object
  extended bywt.services.StandardManager
      extended bywt.ixb.conflictFramework.StandardConflictFrameworkService
All Implemented Interfaces:
ConflictFrameworkService, Manager, NetFactor, Serializable

public class StandardConflictFrameworkService
extends StandardManager
implements ConflictFrameworkService, Serializable

Use the newStandardConflictFrameworkService static factory method(s), not the StandardConflictFrameworkService 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 StandardConflictFrameworkService.ImportHandler
           
 
Field Summary
private static String CLASSNAME
           
private static boolean DEBUG
           
private static String NAME_IS_TAG
           
private static String RESOURCE
           
 
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
StandardConflictFrameworkService()
           
 
Method Summary
private  void cleanup(File tempDir)
           
 ImportSession doImportPreview(ImportSession session)
          This method performs Import Preview for existing (persisted) Import session.
 ImportSession doImportPreview(String name, String description, String cabinetName, Boolean overrideConflicts, String jarFileName, String rulesFileName)
          Deprecated. Additional parameter WTContainerRef is required for 7.0
 ImportSession doImportPreview(WTContainerRef container, String name, String description, String cabinetName, Boolean overrideConflicts, String jarFileName, String rulesFileName)
          

Supported API: false
 ImportSession doRealImport(ImportSession session)
          This method actually imports objects into the system.
private  IxbDocument finalizeDoImport(ImportSession session, IxbDocument doc)
           
 String getConceptualClassname()
          Deprecated.  
static StandardConflictFrameworkService newStandardConflictFrameworkService()
          Default factory for the class.
protected  void performStartupProcess()
          

Supported API: false
private  void PP(String s)
           
private  void printStackTrace(Exception e)
           
 ElementImportInfo saveElementImportInfo(ImportSession session, ElementImportInfo elementImportInfo)
          Clients should call this method to update ElementImportInfo with user-defined information.
 
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

NAME_IS_TAG

private static final String NAME_IS_TAG
See Also:
Constant Field Values

DEBUG

private static boolean DEBUG
Constructor Detail

StandardConflictFrameworkService

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


Supported API: false

Overrides:
performStartupProcess in class StandardManager
Throws:
ManagerException

newStandardConflictFrameworkService

public static StandardConflictFrameworkService newStandardConflictFrameworkService()
                                                                            throws WTException
Default factory for the class.

Supported API: false

Returns:
StandardConflictFrameworkService
Throws:
WTException

doImportPreview

public ImportSession doImportPreview(String name,
                                     String description,
                                     String cabinetName,
                                     Boolean overrideConflicts,
                                     String jarFileName,
                                     String rulesFileName)
                              throws WTException
Deprecated. Additional parameter WTContainerRef is required for 7.0



Supported API: false

Specified by:
doImportPreview in interface ConflictFrameworkService
Parameters:
name -
description -
cabinetName -
overrideConflicts -
jarFileName -
rulesFileName -
Returns:
ImportSession
Throws:
WTException

doImportPreview

public ImportSession doImportPreview(WTContainerRef container,
                                     String name,
                                     String description,
                                     String cabinetName,
                                     Boolean overrideConflicts,
                                     String jarFileName,
                                     String rulesFileName)
                              throws WTException


Supported API: false

Specified by:
doImportPreview in interface ConflictFrameworkService
Parameters:
container - Target container for import
name - name of the new Import session
description - description of the new Import session
cabinetName -
overrideConflicts - indicates whether overridable conflicts against environment (e.g. there is no Folder with such name) should be overridden (e.g. Folder should be created)
jarFileName - the name of jar file with data for Import. FILE SHOULD BE STORED ON SERVER!!!
rulesFileName - the name of mapping rules file (can be null). FILE SHOULD BE STORED ON SERVER!!!
Returns:
ImportSession ImportSession newly created Import session, containing preview information (ImportSessionInfo)
Throws:
WTException
See Also:
wt.ixb.ConflictFramework.ImportSessionInfo

doImportPreview

public ImportSession doImportPreview(ImportSession session)
                              throws WTException
This method performs Import Preview for existing (persisted) Import session. The session is updated with preview information gathered during conflict check and default Import actions obtained from Import policy file. NO ACTUAL IMPORT IS DONE HERE.

Supported API: false

Specified by:
doImportPreview in interface ConflictFrameworkService
Parameters:
session - existing Import session
Returns:
ImportSession Import session, containing preview information (ImportSessionInfo)
Throws:
WTException
See Also:
wt.ixb.ConflictFramework.ImportSessionInfo

doRealImport

public ImportSession doRealImport(ImportSession session)
                           throws WTException
This method actually imports objects into the system. Import is performed depending on Import actions which were previously set and saved in ImportSessionInfo. Normally, real Import should be done after the user reviews the list of objects for import and matching objects in the system and changes Import actions, if necessary.

Supported API: false

Specified by:
doRealImport in interface ConflictFrameworkService
Parameters:
session - Import session
Returns:
ImportSession Import session updated with Import result (success/failure)
Throws:
IxbInapplicableActionException - thrown if the selected Import action cannot be applied for some object
WTException
See Also:
ImportSessionStatus

saveElementImportInfo

public ElementImportInfo saveElementImportInfo(ImportSession session,
                                               ElementImportInfo elementImportInfo)
                                        throws WTException
Clients should call this method to update ElementImportInfo with user-defined information.

Supported API: false

Specified by:
saveElementImportInfo in interface ConflictFrameworkService
Parameters:
session - current Import session
elementImportInfo -
Returns:
ElementImportInfo
Throws:
WTException

finalizeDoImport

private IxbDocument finalizeDoImport(ImportSession session,
                                     IxbDocument doc)
                              throws WTException
Throws:
WTException

cleanup

private void cleanup(File tempDir)

PP

private void PP(String s)

printStackTrace

private void printStackTrace(Exception e)