|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.ixb.handlers.netmarkets.NMHandler
Title NMHandler NMHandler is a class that is used to import xml files from a local file system into a netmarkets system. The design intent is to allow for the loading of administrative objects. It assumes that all content files are located in a path relative to $(wt.home)/loadXMLFiles/content It is designed for working with JSPFeedback. If important events happen during import it checks the MethodContext variable IX_PROJECT_LOG_LEVEL. If the importance of the method is greater than the log_level it will update the MethodContext variable IX_PROJECT_LOAD_STATUS with a WTMessage object.
Field Summary | |
private static String |
_rb
|
private String |
_tmpId
|
static String |
IX_PROJECT_LOAD_STATUS
|
private Map |
localIdToOIDMap
|
private static NMProjectConstants.ObjectIDInfo |
objIdTags
|
private Map |
realRuleNameMap
|
Fields inherited from interface wt.ixb.publicforapps.ApplicationExpImportHandler |
IMPORTANCE_LEVEL_DEFAULT |
Constructor Summary | |
NMHandler()
|
Method Summary | |
void |
finalizeHandler()
|
void |
finalizeImportObjectNotification(Object object)
Notifies application about objects after being persisted. |
ApplicationData |
getContentAsApplicationData(String aString)
Returns ApplicationData representing input information for import process. |
InputStream |
getContentAsInputStream(String contentId)
All loaded content files must be relative to the specified content path. |
Streamed |
getContentAsStreamed(String contentId)
|
String |
getObjectIdentifier(String key)
This method gets a stored object reference string. |
String |
getRuleName(String xmlRuleName)
|
void |
importObjectNotification(Object obj,
boolean created,
IxbElement fileXML)
Notifies application about objects, that are created in import process. |
private boolean |
keyOnNotify(Object obj)
|
void |
setObjectIdentifier(String localId,
String oid)
Store a ReferenceString of an object. |
void |
setRuleName(String xmlRuleName,
String realRuleName)
|
void |
setTmpId(String tmpId)
|
void |
storeLogMessage(String resourceBundle,
String messageKey,
Object[] textInserts)
|
void |
storeLogMessage(String rb,
String key,
Object[] inserts,
int level)
Supplies the localized log message for the application. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private Map localIdToOIDMap
private Map realRuleNameMap
public static String IX_PROJECT_LOAD_STATUS
private static final NMProjectConstants.ObjectIDInfo objIdTags
private String _tmpId
private static final String _rb
Constructor Detail |
public NMHandler()
Method Detail |
public void finalizeHandler()
private boolean keyOnNotify(Object obj)
public String getObjectIdentifier(String key)
public void setObjectIdentifier(String localId, String oid)
public void setTmpId(String tmpId) throws WTException
WTException
public void setRuleName(String xmlRuleName, String realRuleName)
public String getRuleName(String xmlRuleName)
public InputStream getContentAsInputStream(String contentId) throws WTException
getContentAsInputStream
in interface ApplicationImportHandler
contentId
- The unique id to identify the content data, such as the file name (including the path) in a jar file.
WTException
public Streamed getContentAsStreamed(String contentId) throws WTException
WTException
public void importObjectNotification(Object obj, boolean created, IxbElement fileXML) throws WTException
ApplicationImportHandler
importObjectNotification
in interface ApplicationImportHandler
obj
- created
- "true" if import process creates new object and "false" otherwise.fileXML
-
WTException
public void storeLogMessage(String resourceBundle, String messageKey, Object[] textInserts) throws WTException
WTException
public void storeLogMessage(String rb, String key, Object[] inserts, int level) throws WTException
ApplicationExpImportHandler
storeLogMessage
in interface ApplicationExpImportHandler
rb
- key
- inserts
- level
-
WTException
public ApplicationData getContentAsApplicationData(String aString)
ApplicationImportHandler
null
.
getContentAsApplicationData
in interface ApplicationImportHandler
aString
- The unique id to identify the content data, such as the file name (including the path) in a jar file.
public void finalizeImportObjectNotification(Object object) throws WTException
ApplicationImportHandler
finalizeImportObjectNotification
in interface ApplicationImportHandler
object
-
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |