|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openeai.OpenEaiObject
org.openeai.moa.EnterpriseObjectBase
org.openeai.moa.XmlEnterpriseObjectImpl
org.openeai.moa.ActionableEnterpriseObjectBase
public abstract class ActionableEnterpriseObjectBase
| 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 | |
|---|---|
ActionableEnterpriseObjectBase()
|
|
| 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(RequestService producer)
Create message production. |
void |
createSync(SyncService producer)
Create Sync message production. |
XmlEnterpriseObject |
delete(java.lang.String deleteAction,
RequestService producer)
Delete message production. |
void |
deleteSync(java.lang.String deleteAction,
SyncService producer)
Delete Sync message production. |
java.util.List |
generate(XmlEnterpriseObject keyObject,
RequestService producer)
Generate 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. |
java.util.List |
query(XmlEnterpriseObject keyObject,
RequestService producer)
Query message production. |
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(RequestService producer)
Update message production. |
void |
updateSync(SyncService producer)
Update Sync message production. |
| Methods inherited from class org.openeai.OpenEaiObject |
|---|
getAppName, getDebug, getFromAddr, 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 ActionableEnterpriseObjectBase()
| Method Detail |
|---|
public XmlEnterpriseObject getXmlEnterpriseObject()
getXmlEnterpriseObject in interface ActionableEnterpriseObject
public final XmlEnterpriseObject create(RequestService producer)
throws EnterpriseObjectCreateException
create in interface ActionableEnterpriseObjectproducer - PointToPointProducer a pre-configured and started PointToPointProducer
which will be used to send the create-request message to the appropriate destination
and return the reply to this method (via the PointToPointProducer.produceRequest method).
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 void createSync(SyncService producer)
throws EnterpriseObjectSyncException
createSync in interface ActionableEnterpriseObjectproducer - 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.
protected void buildCreateMessage(org.jdom.Document createDoc)
throws org.jdom.JDOMException,
EnterpriseObjectCreateException
createDoc - Document the 'primed' xml document for this action. (e.g. - a sample BasicPerson-Create-Request.xml document).
EnterpriseObjectCreateException - if errors serializing the object as an Xml Element.
org.jdom.JDOMException - if errors occur manipulating the document.
public final XmlEnterpriseObject update(RequestService producer)
throws EnterpriseObjectUpdateException
update in interface ActionableEnterpriseObjectproducer - PointToPointProducer a pre-configured and started PointToPointProducer
which will be used to send the update-request message to the appropriate destination
and return the reply to this method (via the PointToPointProducer.produceRequest method).
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 void updateSync(SyncService producer)
throws EnterpriseObjectSyncException
updateSync in interface ActionableEnterpriseObjectproducer - PubSubProducer a pre-configured and started PubSubProducer
which will be used to send the delete-sync message to the appropriate destination
(via the PubSubProducer.publishMessage method).
EnterpriseObjectSyncException - if any errors occur when validating
the contents of the object. Or, if any errors occur while publishing the message.
protected void buildUpdateMessage(org.jdom.Document updateDoc)
throws org.jdom.JDOMException,
EnterpriseObjectUpdateException
updateDoc - Document the 'primed' xml document for this action. (e.g. - a sample BasicPerson-Create-Request.xml document).
EnterpriseObjectUpdateException - if errors serializing the object as an Xml Element.
org.jdom.JDOMException - if errors occur manipulating the document.
public final XmlEnterpriseObject delete(java.lang.String deleteAction,
RequestService producer)
throws EnterpriseObjectDeleteException
delete in interface ActionableEnterpriseObjectdeleteAction - String the delete action ('delete' or 'purge')
producer - PointToPointProducer a pre-configured and started PointToPointProducer
which will be used to send the delete-request message to the appropriate destination
and return the reply to this method (via the PointToPointProducer.produceRequest method).
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 void deleteSync(java.lang.String deleteAction,
SyncService producer)
throws EnterpriseObjectSyncException
deleteSync in interface ActionableEnterpriseObjectdeleteAction - String delete action ('purge' or 'delete')
producer - PubSubProducer a pre-configured and started PubSubProducer
which will be used to send the delete-sync message to the appropriate destination
(via the PubSubProducer.publishMessage method).
EnterpriseObjectSyncException - if any errors occur when validating
the contents of the object. Or, if any errors occur while publishing the message.
protected void buildDeleteMessage(java.lang.String deleteAction,
org.jdom.Document deleteDoc)
throws org.jdom.JDOMException,
EnterpriseObjectDeleteException
deleteDoc - Document the 'primed' xml document for this action. (e.g. - a sample BasicPerson-Create-Request.xml document).
EnterpriseObjectDeleteException - if errors serializing the object as an Xml Element.
org.jdom.JDOMException - if errors occur manipulating the document.
public final java.util.List query(XmlEnterpriseObject keyObject,
RequestService producer)
throws EnterpriseObjectQueryException
query in interface ActionableEnterpriseObjectkeyObject - XmlEnterpriseObject to use as retreival arguments in the Query.
The contents of this object are inserted into the Query document prior to
sending the query request. Under normal conditions, this object is
actually a LightweightPerson object since that's the most common query object used.
NOTE: This method should be over-ridden by lower level classes if the keyObject isn't a LightweightPerson.
producer - PointToPointProducer a pre-configured and started PointToPointProducer
which will be used to send the update-request message to the appropriate destination
and return the reply to this method (via the PointToPointProducer.produceRequest method).
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.
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).
keyObject - XmlEnterpriseObject the 'keyObject' to be used in the Query. (e.g. - LightweightPerson)queryDoc - Document the 'primed' xml document for this action. (e.g. - a sample BasicPerson-Create-Request.xml document).
EnterpriseObjectQueryException - if errors serializing the object as an Xml Element.
org.jdom.JDOMException - if errors occur manipulating the document.
public final java.util.List generate(XmlEnterpriseObject keyObject,
RequestService producer)
throws EnterpriseObjectGenerateException
generate in interface ActionableEnterpriseObjectproducer - PointToPointProducer a pre-configured and started PointToPointProducer
which will be used to send the update-request message to the appropriate destination
and return the reply to this method (via the PointToPointProducer.produceRequest method).
keyObject - XmlEnterpriseObject to use as generation "seed" data
(like an UnknownPerson for an InstitutionalIdentity-Generate-Request).
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.
protected abstract void buildGenerateMessage(org.jdom.Document generateDoc,
XmlEnterpriseObject keyObject)
throws org.jdom.JDOMException,
EnterpriseObjectGenerateException
org.jdom.JDOMException
EnterpriseObjectGenerateExceptionpublic java.util.List getLastErrors()
getLastErrors in interface ActionableEnterpriseObject
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,
EnterpriseFieldsprotected java.lang.String getElementName()
public final void setMessageId(MessageId msgId)
setMessageId in interface ActionableEnterpriseObjectmsgId - MessageIdpublic final MessageId getMessageId()
getMessageId in interface ActionableEnterpriseObjectpublic final void setAuthentication(Authentication auth)
setAuthentication in interface ActionableEnterpriseObjectauth - Authenticationpublic final Authentication getAuthentication()
getAuthentication in interface ActionableEnterpriseObjectpublic final void setCommandName(java.lang.String name)
setCommandName in interface ActionableEnterpriseObjectname - String the name of the command as specified in the configuration document.public final java.lang.String getCommandName()
getCommandName in interface ActionableEnterpriseObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||