wt.ixb.handlers.forattributes
Class ExpImpForDomainFolderAttr

java.lang.Object
  extended bywt.ixb.publicforhandlers.AttributeExporterImporterTemplate
      extended bywt.ixb.handlers.forattributes.ExpImpForDomainFolderAttr
All Implemented Interfaces:
AttributeExporterImporter

public class ExpImpForDomainFolderAttr
extends AttributeExporterImporterTemplate


Field Summary
(package private)  Hashtable CabinetInfos
           
(package private)  Hashtable DomainInfos
           
(package private)  Hashtable FolderInfos
           
 
Fields inherited from class wt.ixb.publicforhandlers.AttributeExporterImporterTemplate
CONFLICT_RESOURCE
 
Constructor Summary
ExpImpForDomainFolderAttr()
           
 
Method Summary
private  boolean checkCabinetConflict(String cabinetName, WTContainerRef containerRef)
           
 void checkConflictForAttribute(Object existingOb, IxbElement fileXML, Importer importer)
          Checks conflicts that can arise while import process for the given attribute and object.
private  boolean checkDomainConflict(String domainPath, WTContainerRef containerRef)
           
private  boolean checkFolderConflict(String domainName, String folderPath, WTContainerRef targetContainer)
           
 void exportAttribute(Object ob, IxbElement fileXML, Exporter exporter)
          

Supported API: true
 void finalizeCheckConflicts(Importer importer)
          Called in the end of conflict check process.
private static AdministrativeDomain findDomain(String domainPath, WTContainerRef containerRef)
           
private  String getCabinetSubstring(String folderPath)
           
private static AdministrativeDomain getDomain(String domainPath, WTContainerRef containerRef)
           
private  String getDomainPath(DomainAdministered obj)
           
static AdminDomainRef getDomainRef(String domainPath, WTContainerRef container)
           
private  String getFolderPath(Foldered obj)
           
private  String getSubFolderSubstring(String folderPath)
           
 Object importAttribute(Object ob, IxbElement fileXML, Importer importer)
          

Supported API: true
private  void importFolderInfo(Foldered ob, String domainPath, String folderPath, WTContainerRef container)
           
private  void importFolderInfoRestore(Foldered ob, String domainPath, String folderPath, WTContainerRef container, IxbElement fileXML, Importer importer)
           
private static void PP(String s)
           
private  String replaceCabinet(String folderPath)
           
 
Methods inherited from class wt.ixb.publicforhandlers.AttributeExporterImporterTemplate
finalizeExport, finalizeImport, prepareForCheckConflicts, prepareForImport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CabinetInfos

Hashtable CabinetInfos

FolderInfos

Hashtable FolderInfos

DomainInfos

Hashtable DomainInfos
Constructor Detail

ExpImpForDomainFolderAttr

public ExpImpForDomainFolderAttr()
Method Detail

exportAttribute

public void exportAttribute(Object ob,
                            IxbElement fileXML,
                            Exporter exporter)
                     throws WTException
Description copied from class: AttributeExporterImporterTemplate


Supported API: true

Specified by:
exportAttribute in interface AttributeExporterImporter
Specified by:
exportAttribute in class AttributeExporterImporterTemplate
Parameters:
ob -
fileXML -
exporter -
Throws:
WTException

getFolderPath

private String getFolderPath(Foldered obj)
                      throws WTException
Throws:
WTException

getDomainPath

private String getDomainPath(DomainAdministered obj)
                      throws WTException
Throws:
WTException

checkConflictForAttribute

public void checkConflictForAttribute(Object existingOb,
                                      IxbElement fileXML,
                                      Importer importer)
                               throws WTException
Description copied from class: AttributeExporterImporterTemplate
Checks conflicts that can arise while import process for the given attribute and object.

Supported API: true

Specified by:
checkConflictForAttribute in interface AttributeExporterImporter
Overrides:
checkConflictForAttribute in class AttributeExporterImporterTemplate
Parameters:
existingOb -
fileXML - the IxbElement of the XML file to be imported.
importer - The Importer instance that represents the context of the import operation.
Throws:
WTException

checkDomainConflict

private boolean checkDomainConflict(String domainPath,
                                    WTContainerRef containerRef)
                             throws WTException
Throws:
WTException

getDomain

private static AdministrativeDomain getDomain(String domainPath,
                                              WTContainerRef containerRef)

findDomain

private static AdministrativeDomain findDomain(String domainPath,
                                               WTContainerRef containerRef)
                                        throws WTException
Throws:
WTException

checkCabinetConflict

private boolean checkCabinetConflict(String cabinetName,
                                     WTContainerRef containerRef)
                              throws WTException
Throws:
WTException

checkFolderConflict

private boolean checkFolderConflict(String domainName,
                                    String folderPath,
                                    WTContainerRef targetContainer)
                             throws WTException
Throws:
WTException

getDomainRef

public static AdminDomainRef getDomainRef(String domainPath,
                                          WTContainerRef container)
                                   throws WTException
Throws:
WTException

importAttribute

public Object importAttribute(Object ob,
                              IxbElement fileXML,
                              Importer importer)
                       throws WTException
Description copied from class: AttributeExporterImporterTemplate


Supported API: true

Specified by:
importAttribute in interface AttributeExporterImporter
Specified by:
importAttribute in class AttributeExporterImporterTemplate
Parameters:
ob -
fileXML -
importer -
Returns:
Object
Throws:
WTException

importFolderInfo

private void importFolderInfo(Foldered ob,
                              String domainPath,
                              String folderPath,
                              WTContainerRef container)
                       throws WTException
Throws:
WTException

importFolderInfoRestore

private void importFolderInfoRestore(Foldered ob,
                                     String domainPath,
                                     String folderPath,
                                     WTContainerRef container,
                                     IxbElement fileXML,
                                     Importer importer)
                              throws WTException
Throws:
WTException

getSubFolderSubstring

private String getSubFolderSubstring(String folderPath)
                              throws WTException
Throws:
WTException

getCabinetSubstring

private String getCabinetSubstring(String folderPath)
                            throws WTException
Throws:
WTException

replaceCabinet

private String replaceCabinet(String folderPath)
                       throws WTException
Throws:
WTException

PP

private static void PP(String s)

finalizeCheckConflicts

public void finalizeCheckConflicts(Importer importer)
                            throws WTException
Description copied from class: AttributeExporterImporterTemplate
Called in the end of conflict check process.

Supported API: true

Specified by:
finalizeCheckConflicts in interface AttributeExporterImporter
Overrides:
finalizeCheckConflicts in class AttributeExporterImporterTemplate
Parameters:
importer - The Importer instance that represents the context of the import operation.
Throws:
WTException