|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
#org.openeai.moa.ActionableEnterpriseObject
public interface JmsEnterpriseObject
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).
| Method Summary | |
|---|---|
XmlEnterpriseObject |
create(PointToPointProducer producer)
Deprecated. Create message production. |
void |
createSync(PubSubProducer producer)
Deprecated. Create Sync message production. |
XmlEnterpriseObject |
delete(java.lang.String deleteAction,
PointToPointProducer producer)
Deprecated. Delete message production. |
void |
deleteSync(java.lang.String deleteAction,
PubSubProducer producer)
Deprecated. Delete Sync message production. |
java.util.List |
generate(XmlEnterpriseObject keyObject,
PointToPointProducer producer)
Deprecated. Generate message production. |
void |
generateSync(PubSubProducer producer,
XmlEnterpriseObject keyObject)
Deprecated. Generate Sync message production. |
Authentication |
getAuthentication()
Deprecated. Returns the Authentication object associated with this object. |
java.lang.String |
getCommandName()
Deprecated. Returns the Command name associated with this object. |
java.util.List |
getLastErrors()
Deprecated. Returns a List containing the last errors encountered by this object during a Request action (create, query, generate, update, delete). |
MessageId |
getMessageId()
Deprecated. Returns the MessageId object associated with this object. |
XmlEnterpriseObject |
getXmlEnterpriseObject()
Deprecated. Helper method that returns this object as an XmlEnterpriseObject. |
java.util.List |
query(XmlEnterpriseObject keyObject,
PointToPointProducer producer)
Deprecated. Query message production. |
void |
setAuthentication(Authentication auth)
Deprecated. Sets the Authentication object associated with this object. |
void |
setCommandName(java.lang.String name)
Deprecated. Sets the Command name associated with this object. |
void |
setMessageId(MessageId msgId)
Deprecated. Sets the MessageId object associated with this object. |
XmlEnterpriseObject |
update(PointToPointProducer producer)
Deprecated. Update message production. |
void |
updateSync(PubSubProducer producer)
Deprecated. Update Sync message production. |
| Method Detail |
|---|
java.util.List query(XmlEnterpriseObject keyObject,
PointToPointProducer producer)
throws EnterpriseObjectQueryException
keyObject - 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.
XmlEnterpriseObject create(PointToPointProducer producer)
throws EnterpriseObjectCreateException
producer - 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.
void createSync(PubSubProducer producer)
throws EnterpriseObjectSyncException
producer - 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.
XmlEnterpriseObject delete(java.lang.String deleteAction,
PointToPointProducer producer)
throws EnterpriseObjectDeleteException
deleteAction - 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.
void deleteSync(java.lang.String deleteAction,
PubSubProducer producer)
throws EnterpriseObjectSyncException
deleteAction - 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.
java.util.List generate(XmlEnterpriseObject keyObject,
PointToPointProducer producer)
throws EnterpriseObjectGenerateException
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).
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.
void generateSync(PubSubProducer producer,
XmlEnterpriseObject keyObject)
throws EnterpriseObjectSyncException
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).
keyObject - XmlEnterpriseObject to use as generation "seed" data
(like an UnknownPerson for an InstitutionalIdentity-Generate-Sync).
EnterpriseObjectSyncException - if any errors occur when validating
the contents of the object. Or, if any errors occur while publishing the message.
XmlEnterpriseObject update(PointToPointProducer producer)
throws EnterpriseObjectUpdateException
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).
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.
void updateSync(PubSubProducer producer)
throws EnterpriseObjectSyncException
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.java.lang.String getCommandName()
void setCommandName(java.lang.String name)
name - String the name of the command as specified in the configuration document.Authentication getAuthentication()
void setAuthentication(Authentication auth)
auth - AuthenticationMessageId getMessageId()
void setMessageId(MessageId msgId)
msgId - MessageIdXmlEnterpriseObject getXmlEnterpriseObject()
java.util.List getLastErrors()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||