|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object toolbox.services.util.header.beans.ServiceHeader
public class ServiceHeader
An attempt to define a general header structure for service implementations.
ServiceHeader bean generated by the Toolbox Bean Generator.
This bean implements the DaoBean interface that allows it to be persisted by sub-class instances of the toolbox.services.dao.DaoService class.
Constructor Summary | |
---|---|
ServiceHeader()
Default constructor to initialise the internal Map for storing bean properties. |
Method Summary | |
---|---|
static ServiceHeader |
create(java.util.Map map)
Create a new ServiceHeader bean instance using the properties in the given Map as the values of the bean properties. |
java.lang.String |
getCommonEntityKey()
Return the commonEntityKey property. |
java.lang.String |
getCorrelationId()
Return the correlationId property. |
java.util.Date |
getCreationTime()
Return the creationTime property. |
java.lang.String |
getDocumentId()
Return the documentId property. |
java.util.Map |
getMap()
Return the Map containing the bean properties. |
java.lang.String |
getMapping(java.lang.String prop)
Return the mapped value for the provided property name. |
java.util.Map |
getMappings()
Return the Map containing the property mappings. |
java.lang.String |
getReferenceId()
Return the referenceId property. |
java.lang.String |
getReferenceParameter1()
Return the referenceParameter1 property. |
java.lang.String |
getReferenceParameter2()
Return the referenceParameter2 property. |
java.lang.String |
getReferenceParameter3()
Return the referenceParameter3 property. |
java.lang.String |
getReferenceParameter4()
Return the referenceParameter4 property. |
java.lang.String |
getReferenceParameter5()
Return the referenceParameter5 property. |
java.lang.String |
getRelease()
Return the release property. |
java.lang.String |
getServiceInterface()
Return the serviceInterface property. |
java.lang.String |
getServiceOperation()
Return the serviceOperation property. |
java.lang.String |
getSourceEntityKey()
Return the sourceEntityKey property. |
java.lang.String |
getSourceInterface()
Return the sourceInterface property. |
java.lang.String |
getSourceOperation()
Return the sourceOperation property. |
java.lang.String |
getSourceSystem()
Return the sourceSystem property. |
java.lang.String |
getSystemEnvironment()
Return the systemEnvironment property. |
java.lang.String |
getTargetEntityKey()
Return the targetEntityKey property. |
java.lang.String |
getTargetInterface()
Return the targetInterface property. |
java.lang.String |
getTargetOperation()
Return the targetOperation property. |
java.lang.String |
getTargetRelease()
Return the targetRelease property. |
java.lang.String |
getTargetSystem()
Return the targetSystem property. |
java.lang.String |
getVersion()
Return the version property. |
void |
setCommonEntityKey(java.lang.String commonEntityKey)
Set the commonEntityKey property. |
void |
setCorrelationId(java.lang.String correlationId)
Set the correlationId property. |
void |
setCreationTime(java.util.Date creationTime)
Set the creationTime property. |
void |
setDocumentId(java.lang.String documentId)
Set the documentId property. |
void |
setMap(java.util.Map map)
Set the Map containing the bean properties. |
void |
setReferenceId(java.lang.String referenceId)
Set the referenceId property. |
void |
setReferenceParameter1(java.lang.String referenceParameter1)
Set the referenceParameter1 property. |
void |
setReferenceParameter2(java.lang.String referenceParameter2)
Set the referenceParameter2 property. |
void |
setReferenceParameter3(java.lang.String referenceParameter3)
Set the referenceParameter3 property. |
void |
setReferenceParameter4(java.lang.String referenceParameter4)
Set the referenceParameter4 property. |
void |
setReferenceParameter5(java.lang.String referenceParameter5)
Set the referenceParameter5 property. |
void |
setRelease(java.lang.String release)
Set the release property. |
void |
setServiceInterface(java.lang.String serviceInterface)
Set the serviceInterface property. |
void |
setServiceOperation(java.lang.String serviceOperation)
Set the serviceOperation property. |
void |
setSourceEntityKey(java.lang.String sourceEntityKey)
Set the sourceEntityKey property. |
void |
setSourceInterface(java.lang.String sourceInterface)
Set the sourceInterface property. |
void |
setSourceOperation(java.lang.String sourceOperation)
Set the sourceOperation property. |
void |
setSourceSystem(java.lang.String sourceSystem)
Set the sourceSystem property. |
void |
setSystemEnvironment(java.lang.String systemEnvironment)
Set the systemEnvironment property. |
void |
setTargetEntityKey(java.lang.String targetEntityKey)
Set the targetEntityKey property. |
void |
setTargetInterface(java.lang.String targetInterface)
Set the targetInterface property. |
void |
setTargetOperation(java.lang.String targetOperation)
Set the targetOperation property. |
void |
setTargetRelease(java.lang.String targetRelease)
Set the targetRelease property. |
void |
setTargetSystem(java.lang.String targetSystem)
Set the targetSystem property. |
void |
setVersion(java.lang.String version)
Set the version property. |
java.lang.String |
toString()
Return a String representation of this DaoBean instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ServiceHeader()
Method Detail |
---|
public void setSourceSystem(java.lang.String sourceSystem)
The source system where the service call originated from
sourceSystem
- New value of the
sourceSystem property.public java.lang.String getSourceSystem()
The source system where the service call originated from
public void setSourceInterface(java.lang.String sourceInterface)
The interface (or component) on the source system.
sourceInterface
- New value of the
sourceInterface property.public java.lang.String getSourceInterface()
The interface (or component) on the source system.
public void setSourceOperation(java.lang.String sourceOperation)
The operation on the source interface (or component) that generated the service call.
sourceOperation
- New value of the
sourceOperation property.public java.lang.String getSourceOperation()
The operation on the source interface (or component) that generated the service call.
public void setSourceEntityKey(java.lang.String sourceEntityKey)
The primary key of the entity on the source system. This can help to facilitate cross referencing.
sourceEntityKey
- New value of the
sourceEntityKey property.public java.lang.String getSourceEntityKey()
The primary key of the entity on the source system. This can help to facilitate cross referencing.
public void setServiceInterface(java.lang.String serviceInterface)
The name of an intermediary that represents a source and target agnostic integration interface. This can help to facilitate cross referencing.
serviceInterface
- New value of the
serviceInterface property.public java.lang.String getServiceInterface()
The name of an intermediary that represents a source and target agnostic integration interface. This can help to facilitate cross referencing.
public void setServiceOperation(java.lang.String serviceOperation)
The operation invoked on the serviceInterface.
serviceOperation
- New value of the
serviceOperation property.public java.lang.String getServiceOperation()
The operation invoked on the serviceInterface.
public void setTargetSystem(java.lang.String targetSystem)
The target system that must be invoked.
targetSystem
- New value of the
targetSystem property.public java.lang.String getTargetSystem()
The target system that must be invoked.
public void setTargetInterface(java.lang.String targetInterface)
The interface on the target system that must be invoked.
targetInterface
- New value of the
targetInterface property.public java.lang.String getTargetInterface()
The interface on the target system that must be invoked.
public void setTargetOperation(java.lang.String targetOperation)
The operation on the target interface that must be invoked.
targetOperation
- New value of the
targetOperation property.public java.lang.String getTargetOperation()
The operation on the target interface that must be invoked.
public void setTargetEntityKey(java.lang.String targetEntityKey)
The primary key of the entity on the target system. This can help to facilitate cross referencing.
targetEntityKey
- New value of the
targetEntityKey property.public java.lang.String getTargetEntityKey()
The primary key of the entity on the target system. This can help to facilitate cross referencing.
public void setTargetRelease(java.lang.String targetRelease)
The release of the target interface that must be invoked.
targetRelease
- New value of the
targetRelease property.public java.lang.String getTargetRelease()
The release of the target interface that must be invoked.
public void setCommonEntityKey(java.lang.String commonEntityKey)
A common key that can be used to identify an entity in an application agnostic manner. This can help to facilitate cross referencing.
commonEntityKey
- New value of the
commonEntityKey property.public java.lang.String getCommonEntityKey()
A common key that can be used to identify an entity in an application agnostic manner. This can help to facilitate cross referencing.
public void setReferenceId(java.lang.String referenceId)
A unique ID provided by the client that generated the service call. This ID can help the client to track the message.
referenceId
- New value of the
referenceId property.public java.lang.String getReferenceId()
A unique ID provided by the client that generated the service call. This ID can help the client to track the message.
public void setReferenceParameter1(java.lang.String referenceParameter1)
Optional reference parameter 1. This can help the client to track the message.
referenceParameter1
- New value of the
referenceParameter1 property.public java.lang.String getReferenceParameter1()
Optional reference parameter 1. This can help the client to track the message.
public void setReferenceParameter2(java.lang.String referenceParameter2)
Optional reference parameter 2. This can help the client to track the message.
referenceParameter2
- New value of the
referenceParameter2 property.public java.lang.String getReferenceParameter2()
Optional reference parameter 2. This can help the client to track the message.
public void setReferenceParameter3(java.lang.String referenceParameter3)
Optional reference parameter 3. This can help the client to track the message.
referenceParameter3
- New value of the
referenceParameter3 property.public java.lang.String getReferenceParameter3()
Optional reference parameter 3. This can help the client to track the message.
public void setReferenceParameter4(java.lang.String referenceParameter4)
Optional reference parameter 4. This can help the client to track the message.
referenceParameter4
- New value of the
referenceParameter4 property.public java.lang.String getReferenceParameter4()
Optional reference parameter 4. This can help the client to track the message.
public void setReferenceParameter5(java.lang.String referenceParameter5)
Optional reference parameter 5. This can help the client to track the message.
referenceParameter5
- New value of the
referenceParameter5 property.public java.lang.String getReferenceParameter5()
Optional reference parameter 5. This can help the client to track the message.
public void setDocumentId(java.lang.String documentId)
A unique ID to identify this document across distributed systems. This ID is generated when the service call enters the service infrastructure and stays with the payload document until processing completes.
documentId
- New value of the
documentId property.public java.lang.String getDocumentId()
A unique ID to identify this document across distributed systems. This ID is generated when the service call enters the service infrastructure and stays with the payload document until processing completes.
public void setCorrelationId(java.lang.String correlationId)
The documentId of a previously received message. This will enable the sender of the original (asynchronous) message to correlate asynchronous interactions.
correlationId
- New value of the
correlationId property.public java.lang.String getCorrelationId()
The documentId of a previously received message. This will enable the sender of the original (asynchronous) message to correlate asynchronous interactions.
public void setCreationTime(java.util.Date creationTime)
A date and time to indicate when the call was made.
creationTime
- New value of the
creationTime property.public java.util.Date getCreationTime()
A date and time to indicate when the call was made.
public void setRelease(java.lang.String release)
A release number associated with the service infrastructure.
release
- New value of the
release property.public java.lang.String getRelease()
A release number associated with the service infrastructure.
public void setVersion(java.lang.String version)
A version number associated with the service infrastructure.
version
- New value of the
version property.public java.lang.String getVersion()
A version number associated with the service infrastructure.
public void setSystemEnvironment(java.lang.String systemEnvironment)
A code that can be used to distinguish between production ready and test service calls.
systemEnvironment
- New value of the
systemEnvironment property.public java.lang.String getSystemEnvironment()
A code that can be used to distinguish between production ready and test service calls.
public void setMap(java.util.Map map)
setMap
in interface DaoBean
map
- Map containing bean properties.public java.util.Map getMap()
getMap
in interface DaoBean
public java.lang.String getMapping(java.lang.String prop)
getMapping
in interface DaoBean
prop
- Return the mapping for this property.
public java.util.Map getMappings()
getMappings
in interface DaoBean
public static ServiceHeader create(java.util.Map map) throws java.lang.Exception
Property mappings are done using Java Reflection and is performed as follows:
The keys in the Map are used as the names of the bean properties. If the Map contains a key with the value name it will be translated into a method call that will invoke the setName(...) method on the target bean using the value associated with the key in the Map.
map
- Map containing bean properties.
java.lang.Exception
- if the bean cannot be created.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |