wt.inf.template.ix
Class ContainerTemplateHandler

java.lang.Object
  extended bywt.ixb.handlers.netmarkets.NMHandler
      extended bywt.inf.template.ix.ContainerTemplateHandler
All Implemented Interfaces:
ApplicationExpImportHandler, ApplicationImportHandler

public class ContainerTemplateHandler
extends NMHandler
implements ApplicationImportHandler


Field Summary
 
Fields inherited from class wt.ixb.handlers.netmarkets.NMHandler
IX_PROJECT_LOAD_STATUS
 
Fields inherited from interface wt.ixb.publicforapps.ApplicationExpImportHandler
IMPORTANCE_LEVEL_DEFAULT
 
Constructor Summary
ContainerTemplateHandler()
           
ContainerTemplateHandler(DefaultWTContainerTemplate tmpl)
           
 
Method Summary
 void finalizeImportObjectNotification(Object object)
          Notifies application about objects after being persisted.
 ApplicationData getContentAsApplicationData(String contentId)
          Returns ApplicationData representing input information for import process.
 InputStream getContentAsInputStream(String contentId)
          The XML files use this method must store their content ids as the string form of their object identifier.
 void importObjectNotification(Object object, boolean created, IxbElement fileXML)
          Notifies application about objects, that are created in import process.
 void storeLogMessage(String resourceBundle, String messageKey, Object[] textInserts, int importanceLevel)
          Supplies the localized log message for the application.
 
Methods inherited from class wt.ixb.handlers.netmarkets.NMHandler
finalizeHandler, getContentAsStreamed, getObjectIdentifier, getRuleName, setObjectIdentifier, setRuleName, setTmpId, storeLogMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerTemplateHandler

public ContainerTemplateHandler(DefaultWTContainerTemplate tmpl)

ContainerTemplateHandler

public ContainerTemplateHandler()
Method Detail

storeLogMessage

public void storeLogMessage(String resourceBundle,
                            String messageKey,
                            Object[] textInserts,
                            int importanceLevel)
                     throws WTException
Description copied from interface: ApplicationExpImportHandler
Supplies the localized log message for the application.

Supported API: true

Specified by:
storeLogMessage in interface ApplicationExpImportHandler
Overrides:
storeLogMessage in class NMHandler
Throws:
WTException

getContentAsInputStream

public InputStream getContentAsInputStream(String contentId)
                                    throws WTException
The XML files use this method must store their content ids as the string form of their object identifier.

Specified by:
getContentAsInputStream in interface ApplicationImportHandler
Overrides:
getContentAsInputStream in class NMHandler
Throws:
WTException

getContentAsApplicationData

public ApplicationData getContentAsApplicationData(String contentId)
Description copied from interface: ApplicationImportHandler
Returns ApplicationData representing input information for import process. Import application does not have really implement this method. It can simple return null.

Supported API: true

Specified by:
getContentAsApplicationData in interface ApplicationImportHandler
Overrides:
getContentAsApplicationData in class NMHandler

importObjectNotification

public void importObjectNotification(Object object,
                                     boolean created,
                                     IxbElement fileXML)
                              throws WTException
Description copied from interface: ApplicationImportHandler
Notifies application about objects, that are created in import process.

Supported API: true

Specified by:
importObjectNotification in interface ApplicationImportHandler
Overrides:
importObjectNotification in class NMHandler
Throws:
WTException

finalizeImportObjectNotification

public void finalizeImportObjectNotification(Object object)
                                      throws WTException
Description copied from interface: ApplicationImportHandler
Notifies application about objects after being persisted.

Supported API: true

Specified by:
finalizeImportObjectNotification in interface ApplicationImportHandler
Overrides:
finalizeImportObjectNotification in class NMHandler
Throws:
WTException