|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.openeai.OpenEaiObject
|
+--org.openeai.moa.EnterpriseObjectBase
|
+--org.openeai.moa.XmlEnterpriseObjectImpl
|
+--org.openeai.moa.jmsobjects.JmsEnterpriseObjectBase
This is the ancestor of all "message aware" enterprise objects. This is where the functionality for querying, creating, updating and deleting is. This is a specific layer used for producing requests and consuming the replies via JMS. It is also the layer which produces sync messages. Clients use this layer when they call the "message actions" on a given message aware Enterprise Object.
For example, when a client makes a call to BasicPerson.update(), this is the layer performing that function. In some cases, some of the methods used to generate the XML associated with a given message will be re-implemented by a lower class (like InstitutionalId.generate()) This will only be necessary when that lower class doesn't use the same information in its message (the DataArea portion is different).
| Field Summary |
| Fields inherited from class org.openeai.moa.XmlEnterpriseObjectImpl |
ENTERPRISE_FIELDS, XML_LAYOUT_MANAGER |
| Fields inherited from class org.openeai.OpenEaiObject |
logger |
| Constructor Summary | |
JmsEnterpriseObjectBase()
Constructor. |
|
| Method Summary | |
protected void |
buildCreateMessage(org.jdom.Document createDoc)
Using the current contents of the object along with the 'primed' XML document this method builds the acutal Enterprise Message. |
protected void |
buildDeleteMessage(java.lang.String deleteAction,
org.jdom.Document deleteDoc)
Using the current contents of the object along with the 'primed' XML document this method builds the acutal Enterprise Message. |
protected abstract void |
buildGenerateMessage(org.jdom.Document generateDoc,
XmlEnterpriseObject keyObject)
|
protected void |
buildQueryMessage(org.jdom.Document queryDoc,
XmlEnterpriseObject keyObject)
Using the current contents of the 'keyObject' passed in along with the 'primed' XML document this method builds the acutal Enterprise Message. |
protected void |
buildUpdateMessage(org.jdom.Document updateDoc)
Using the current contents of the object along with the 'primed' XML document this method builds the acutal Enterprise Message. |
XmlEnterpriseObject |
create(PointToPointProducer producer)
Create message production. |
void |
createSync(PubSubProducer producer)
Create Sync message production. |
XmlEnterpriseObject |
delete(java.lang.String deleteAction,
PointToPointProducer producer)
Delete message production. |
void |
deleteSync(java.lang.String deleteAction,
PubSubProducer producer)
Delete Sync message production. |
java.util.List |
generate(XmlEnterpriseObject keyObject,
PointToPointProducer producer)
Generate message production. |
void |
generateSync(PubSubProducer producer,
XmlEnterpriseObject keyObject)
Generate Sync message production. |
Authentication |
getAuthentication()
Returns the Authentication object associated with this object. |
java.lang.String |
getCommandName()
Returns the Command name associated with this object. |
protected java.lang.String |
getElementName()
Abstract method that must be implemented by decendants so this object will know what element it's dealing with when building Xml documents. |
java.util.List |
getLastErrors()
Returns a List containing the last errors encountered by this object during a Request action (create, query, generate, update, delete). |
MessageId |
getMessageId()
Returns the MessageId object associated with this object. |
XmlEnterpriseObject |
getXmlEnterpriseObject()
Helper method that returns this object as an XmlEnterpriseObject. |
void |
init(MessageObjectConfig mConfig)
Object initialization. |
protected XmlEnterpriseObject |
instantiate(java.lang.String className)
|
java.util.List |
query(XmlEnterpriseObject keyObject,
PointToPointProducer producer)
Query message production. |
protected void |
restoreLayoutManagers()
|
protected void |
saveLayoutManagers()
|
void |
setAuthentication(Authentication auth)
Sets the Authentication object associated with this object. |
void |
setCommandName(java.lang.String name)
Sets the Command name associated with this object. |
protected org.jdom.Element |
setControlArea(org.jdom.Element controlArea)
|
void |
setMessageId(MessageId msgId)
Sets the MessageId object associated with this object. |
XmlEnterpriseObject |
update(PointToPointProducer producer)
Update message production. |
void |
updateSync(PubSubProducer producer)
Update Sync message production. |
| Methods inherited from class org.openeai.OpenEaiObject |
addLog4jProperty, getAppName, getDebug, getFromAddr, getLog4jProperties, getMailHost, getMailService, getProperties, getToAddr, initializeLog4j, initializeLog4j, initializeLog4j, setAppName, setDebug, setFromAddr, setMailHost, setMailService, setProperties, setToAddr |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public JmsEnterpriseObjectBase()
All "message-aware" objects inherit from this object. It provides most of the foundation methods that those objects need to be "message-aware".
| Method Detail |
public XmlEnterpriseObject getXmlEnterpriseObject()
getXmlEnterpriseObject in interface JmsEnterpriseObjectprotected void saveLayoutManagers()
protected void restoreLayoutManagers()
public final void setCommandName(java.lang.String name)
setCommandName in interface JmsEnterpriseObjectpublic final java.lang.String getCommandName()
getCommandName in interface JmsEnterpriseObjectpublic final void setMessageId(MessageId msgId)
setMessageId in interface JmsEnterpriseObjectpublic final MessageId getMessageId()
getMessageId in interface JmsEnterpriseObjectpublic final void setAuthentication(Authentication auth)
setAuthentication in interface JmsEnterpriseObjectpublic final Authentication getAuthentication()
getAuthentication in interface JmsEnterpriseObjectprotected java.lang.String getElementName()
protected void buildCreateMessage(org.jdom.Document createDoc)
throws org.jdom.JDOMException,
EnterpriseObjectCreateException
EnterpriseObjectCreateException - if errors serializing the object as an Xml Element.
org.jdom.JDOMException - if errors occur manipulating the document.
protected void buildDeleteMessage(java.lang.String deleteAction,
org.jdom.Document deleteDoc)
throws org.jdom.JDOMException,
EnterpriseObjectDeleteException
EnterpriseObjectDeleteException - if errors serializing the object as an Xml Element.
org.jdom.JDOMException - if errors occur manipulating the document.
protected void buildUpdateMessage(org.jdom.Document updateDoc)
throws org.jdom.JDOMException,
EnterpriseObjectUpdateException
EnterpriseObjectUpdateException - if errors serializing the object as an Xml Element.
org.jdom.JDOMException - if errors occur manipulating the document.
protected void buildQueryMessage(org.jdom.Document queryDoc,
XmlEnterpriseObject keyObject)
throws org.jdom.JDOMException,
EnterpriseObjectQueryException
This method may be overridden by ancestors of JmsEnterpriseObject if they require a different 'keyObject' in the Query. (e.g. - InstituitonalIdentity requires an UnknownPerson instead of a LightweightPerson).
EnterpriseObjectQueryException - if errors serializing the object as an Xml Element.
org.jdom.JDOMException - if errors occur manipulating the document.
protected abstract void buildGenerateMessage(org.jdom.Document generateDoc,
XmlEnterpriseObject keyObject)
throws org.jdom.JDOMException,
EnterpriseObjectGenerateException
org.jdom.JDOMException
EnterpriseObjectGenerateException
protected org.jdom.Element setControlArea(org.jdom.Element controlArea)
throws EnterpriseObjectException
EnterpriseObjectException
public void init(MessageObjectConfig mConfig)
throws EnterpriseObjectException
init in class XmlEnterpriseObjectImplmConfig - MessageObjectConfig object loaded with all configuration information
relative to this object built from the configuration document.
EnterpriseObjectException - if errors occur initializing the current MessageObject.MessageObjectConfig,
EnterpriseFields
public final void generateSync(PubSubProducer producer,
XmlEnterpriseObject keyObject)
throws EnterpriseObjectSyncException
generateSync in interface JmsEnterpriseObjectEnterpriseObjectSyncException - if any errors occur when validating
the contents of the object. Or, if any errors occur while publishing the message.
public final void createSync(PubSubProducer producer)
throws EnterpriseObjectSyncException
createSync in interface JmsEnterpriseObjectproducer - org.openeai.jms.producer.PubSubProducer to
use to publish the message.
EnterpriseObjectSyncException - if any errors occur when validating
the contents of the object. Or, if any errors occur while publishing the message.
public final void deleteSync(java.lang.String deleteAction,
PubSubProducer producer)
throws EnterpriseObjectSyncException
deleteSync in interface JmsEnterpriseObjectEnterpriseObjectSyncException - if any errors occur when validating
the contents of the object. Or, if any errors occur while publishing the message.
public final void updateSync(PubSubProducer producer)
throws EnterpriseObjectSyncException
updateSync in interface JmsEnterpriseObjectEnterpriseObjectSyncException - if any errors occur when validating
the contents of the object. Or, if any errors occur while publishing the message.
public final XmlEnterpriseObject create(PointToPointProducer producer)
throws EnterpriseObjectCreateException
create in interface JmsEnterpriseObject
EnterpriseObjectCreateException - if any errors occur when validating
the contents of the object, if any errors occur while producing the request
or if the object doesn't support the create action. This exception will also
be thrown if the contents of the reply document contains an error. That is, if
the consuming application had errors processing the request. This exception will
include the Result information containing the error that occurred.
public final XmlEnterpriseObject delete(java.lang.String deleteAction,
PointToPointProducer producer)
throws EnterpriseObjectDeleteException
delete in interface JmsEnterpriseObject
EnterpriseObjectDeleteException - if any errors occur when validating
the contents of the object, if any errors occur while producing the request
or if the object doesn't support the create action. This exception will also
be thrown if the contents of the reply document contains an error. That is, if
the consuming application had errors processing the request. This exception will
include the Result information containing the error that occurred.
public final XmlEnterpriseObject update(PointToPointProducer producer)
throws EnterpriseObjectUpdateException
update in interface JmsEnterpriseObject
EnterpriseObjectUpdateException - if any errors occur when validating
the contents of the object, if any errors occur while producing the request
or if the object doesn't support the create action. This exception will also
be thrown if the contents of the reply document contains an error. That is, if
the consuming application had errors processing the request. This exception will
include the Result information containing the error that occurred.
public final java.util.List generate(XmlEnterpriseObject keyObject,
PointToPointProducer producer)
throws EnterpriseObjectGenerateException
generate in interface JmsEnterpriseObject
EnterpriseObjectGenerateException - if any errors occur when validating
the contents of the object, if any errors occur while producing the request
or if the object doesn't support the create action. This exception will also
be thrown if the contents of the reply document contains an error. That is, if
the consuming application had errors processing the request. This exception will
include the Result information containing the error that occurred.
public final java.util.List query(XmlEnterpriseObject keyObject,
PointToPointProducer producer)
throws EnterpriseObjectQueryException
query in interface JmsEnterpriseObject
EnterpriseObjectQueryException - if any errors occur when validating
the contents of the object, if any errors occur while producing the request
or if the object doesn't support the create action. This exception will also
be thrown if the contents of the reply document contains an error. That is, if
the consuming application had errors processing the request. This exception will
include the Result information containing the error that occurred.public java.util.List getLastErrors()
getLastErrors in interface JmsEnterpriseObject
protected XmlEnterpriseObject instantiate(java.lang.String className)
throws java.lang.InstantiationException
java.lang.InstantiationException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||