|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral
wt.ixb.publicforhandlers.ClassExporterImporterTemplate
wt.ixb.handlers.netmarkets.NMDomainIXHandler
Nested Class Summary |
Nested classes inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate |
ClassExporterImporterTemplate.ContentHolderCommitListener |
Field Summary | |
private static String |
_rb
|
private static NMProjectConstants.OrgStructureInfo |
orgTags
|
Fields inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate |
|
Fields inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral |
CONFLICT_RESOURCE |
Constructor Summary | |
NMDomainIXHandler()
|
Method Summary | |
private boolean |
checkTag(IxbElement elem)
|
Object |
createObject(IxbElement elem,
Importer imp)
This method expects to recieve an OrgDomain tag. |
private boolean |
domainExists(String domain,
AdminDomainRef parentRef,
WTContainerRef contRef)
|
static void |
exportContainerDomains(Exporter exp)
This is used to export the domains of a container as a standalone unit. |
static void |
exportContainerDomains(IxbElement elem,
Exporter exp)
This method should be called when exporting into composition objects such as ProjectTemplates or Organization Templates |
private static void |
exportDomainAndChildren(IxbElement elem,
AdminDomainRef parent,
Exporter exp)
|
void |
exportObject(Object obj,
Exporter exp)
Exports the specified object in context given by parameter exporter. |
private static void |
exportSingleDomain(IxbElement elem,
AdminDomainRef parent)
|
Object |
findAmongExistingObjects(IxbElement elem,
Importer imp)
Checks to see if the domain already exists, if so a message is emitted, and the reference to the object is returned. |
private QueryResult |
findExistingDomains(Importer imp)
|
static AdministrativeDomain |
findParentDomain(String parentName,
WTContainerRef contRef)
|
private QueryResult |
getAllDomains(WTContainerRef contRef)
|
private static AdminDomainRef |
getChildDomain(String domainName,
AdminDomainRef parentRef,
WTContainerRef contRef)
|
private static Vector |
getChildDomains(AdminDomainRef parent)
|
static AdminDomainRef |
getChildFromParent(String childName,
WTContainerRef contRef,
AdminDomainRef parentRef)
|
static AdministrativeDomain |
getDomainInContainer(String parentName,
WTContainerRef contRef)
|
private AdminDomainRef |
getExistingDomain(String domain,
WTContainerRef contRef)
|
int |
getImportPriority()
Return the import priority of the object type represented by this import handler. |
Object |
importElement(IxbElement elem,
Importer imp)
Imports XML element in context given by importer parameter. |
private AdministrativeDomain |
lookupParentDomain(WTContainerRef contRef,
String parentName)
|
private void |
processDomainLevel(IxbElement elem,
AdminDomainRef parentRef,
WTContainerRef contRef)
|
private Object |
processLegacyTag(IxbElement elem,
Importer imp)
Legacy domains assume that the top level domain is always the the Default domain for the container in question. |
Object |
storeObject(Object domain,
IxbElement elem,
Importer imp)
That is the general template how to store object. |
Methods inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate |
createFileXMLOnExport, exportAttributes, finalizeImportObject, getRootTag, importObjectAttributes, importObjectAttributesAfterStore, isObjectIgnored, isObjectNew, outputLog, rememberNewObInfo, setObjectIgnored, setObjectIsNew, storeAdditionalInfo, storeElement |
Methods inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral |
checkConflicts, finalizeCheckConflicts, finalizeExport, finalizeImport, getAdditionalImportPriority, getObjectDisplayID, prepareForCheckConflicts, prepareForImport, previewElement |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String _rb
private static final NMProjectConstants.OrgStructureInfo orgTags
Constructor Detail |
public NMDomainIXHandler()
Method Detail |
public void exportObject(Object obj, Exporter exp) throws WTException
ClassExporterImporterTemplate
createFileXMLOnExport(Exporter exporter)
, which
create an IxbDocument
with the root tag. See getRootTag()
;
exportAttributes (Object object, IxbElement fileXML,
Exporter exporter)
which will export the attributes according
to the DTD. The parameter fileXML is the returned vlue from createFileXMLOnExport(Exporter
exporter)
.
storeElement(Object object, IxbElement fileXML, Exporter
exporter)
which will store the fileXML into an xml-file.
wt.ixb.tuner.ExportActionHelper.performPreExportAction ()
and
wt.ixb.tuner.ExportActionHelper.performPostExportAction ()
will be called before and after th above three protected methods,
respectively.
exportObject
in interface ClassExporter
exportObject
in class ClassExporterImporterTemplate
obj
- exp
- The Exporter
instance that represents the context of the export operation.
WTException
public static void exportContainerDomains(Exporter exp) throws WTException
WTException
public static void exportContainerDomains(IxbElement elem, Exporter exp) throws WTException
WTException
private static void exportSingleDomain(IxbElement elem, AdminDomainRef parent) throws WTException
WTException
private static Vector getChildDomains(AdminDomainRef parent) throws WTException
WTException
private static void exportDomainAndChildren(IxbElement elem, AdminDomainRef parent, Exporter exp) throws WTException
WTException
public Object createObject(IxbElement elem, Importer imp) throws WTException
createObject
in class ClassExporterImporterTemplate
elem
- imp
-
WTException
private void processDomainLevel(IxbElement elem, AdminDomainRef parentRef, WTContainerRef contRef) throws WTException
WTException
private AdminDomainRef getExistingDomain(String domain, WTContainerRef contRef) throws WTException
WTException
private static AdminDomainRef getChildDomain(String domainName, AdminDomainRef parentRef, WTContainerRef contRef) throws WTException
WTException
public static AdminDomainRef getChildFromParent(String childName, WTContainerRef contRef, AdminDomainRef parentRef) throws WTException
WTException
private boolean domainExists(String domain, AdminDomainRef parentRef, WTContainerRef contRef) throws WTException
WTException
private Object processLegacyTag(IxbElement elem, Importer imp) throws WTException
WTException
private boolean checkTag(IxbElement elem) throws WTException
WTException
public int getImportPriority() throws WTException
ClassExporterImporterTemplateGeneral
getImportPriority
in interface ElementImporter
getImportPriority
in class ClassExporterImporterTemplateGeneral
WTException
public Object findAmongExistingObjects(IxbElement elem, Importer imp) throws WTException
findAmongExistingObjects
in class ClassExporterImporterTemplate
elem
- imp
-
WTException
public Object importElement(IxbElement elem, Importer imp) throws WTException
ClassExporterImporterTemplate
importElement
in interface ElementImporter
importElement
in class ClassExporterImporterTemplate
elem
- imp
- The Importer
instance that represents the context of the import operation.
WTException
public Object storeObject(Object domain, IxbElement elem, Importer imp) throws WTException
ClassExporterImporterTemplate
storeObject
in class ClassExporterImporterTemplate
domain
- : Object The object to be stored.elem
- : IxbElement reference to the element being imported.imp
- : Importer reference to the application
WTException
public static AdministrativeDomain getDomainInContainer(String parentName, WTContainerRef contRef) throws WTException
WTException
public static AdministrativeDomain findParentDomain(String parentName, WTContainerRef contRef) throws WTException
WTException
private AdministrativeDomain lookupParentDomain(WTContainerRef contRef, String parentName) throws WTException
WTException
private QueryResult findExistingDomains(Importer imp) throws WTException
WTException
private QueryResult getAllDomains(WTContainerRef contRef) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |