public class BusinessObjectMediatorConfig
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
XPATH_NOUN_BASE_PART
XPath expression should be used to register a part mediator for the base part of a noun.
|
Constructor and Description |
---|
BusinessObjectMediatorConfig(java.lang.String astrComponentId)
Constructor for the mediator configuration
|
Modifier and Type | Method and Description |
---|---|
void |
addMediator(java.lang.Class interfaceName,
java.lang.Class implementationName,
java.util.Map properties)
This method adds the register mediator class for the given mediator interface.
|
void |
addPartMediator(java.lang.Class parentMediator,
java.lang.Class interfaceName,
java.lang.Class implementationName,
java.util.Map properties)
This method adds the register mediator class for the given mediator interface.
|
java.util.Map |
getChangeBusinessObjectNounMediatorAccessProfiles()
The method returns the access profile configured for the noun.
|
java.util.Map |
getChangeBusinessObjectNounPartMediatorAccessProfiles()
The method returns the access profile configured for the noun part.
|
ChangeBusinessObjectPartMediator |
getChangeBusinessObjectPartMediator(java.lang.Object aNoun,
java.lang.Object aNounPart)
Get change business object part mediator
|
java.util.Collection |
getChangeBusinessObjectPartMediators()
Get the mediators configured for the noun part
List
|
java.util.Map |
getChangeBusinessObjectPartMediatorsMap()
Get the mediators configured for the noun part
Map<
|
java.lang.String |
getComponentId()
Get the component id
|
java.lang.Class |
getMediatorClass(java.lang.Class interfaceName)
This method returns the mediator implementation for the specified interface.
|
BusinessObjectMediator |
getMediatorInstance(java.lang.Class interfaceName)
This method return an instance of the specified mediator.
|
java.util.Map |
getMediatorProperties(java.lang.Class interfaceName)
This method returns the mediator properties for the specified interface.
|
java.util.Collection |
getMediators()
This method returns a collection of mediator interfaces that have been configured
for this business object.
|
BusinessObjectAttributeMappingConfig |
getNounAttributeMapping()
Get the noun attribute mapping
|
java.lang.Class |
getNounInterfaceClass()
Get the noun interface class
|
java.util.List |
getNounPartAttributeMapping()
Return the noun part attribute mappings
|
BusinessObjectAttributeMappingConfig |
getNounPartAttributeMapping(java.lang.Object aLogicalObject,
java.lang.Object aPhysicalObject)
Get the attributes for the given logical object and physical object
|
java.util.Collection |
getPartMediatorClassAndProperties(java.lang.Class parentInterfaceName,
java.lang.Class interfaceName)
This method returns the list of part mediator class and properties for a given
mediator.
|
java.util.Collection |
getPartMediatorInstances(java.lang.Class parentInterfaceName,
java.lang.Class interfaceName)
This method will return a list of part mediator implementations that is associated with the
given parent mediator and part mediator interface.
|
java.util.Collection |
getPartMediators(java.lang.Class parentInterfaceName)
This method returns the list of part mediator interfaces for a given
mediator.
|
java.lang.Class |
getPhysicalEntityInterfaceClass()
Get the physical entity interface class
|
ReadBusinessObjectMediator |
getReadBusinessObjectMediator()
Get read mediator for physical to logical transformation
|
java.lang.Class |
getReadBusinessObjectMediatorClass()
Get read mediator class
|
java.util.List |
getReadBusinessObjectPartMediators()
Get the mediators configured for the noun part
List
|
ChangeBusinessObjectMediator |
getUpdateBusinessObjectMediator()
Get update mediator for logical to physical transformation
|
java.lang.Class |
getUpdateBusinessObjectMediatorClass()
Get update mediator class
|
void |
setChangeBusinessObjectNounMediatorAccessProfiles(java.util.Map mapUpdateNounAccessProfile)
The method set the access profile configured for the noun.
|
void |
setChangeBusinessObjectNounPartMediatorAccessProfiles(java.util.Map mapUpdateNounPartAccessProfile)
The method set the access profile configured for the noun part.
|
void |
setNounAttributeMappingConfig(BusinessObjectAttributeMappingConfig nounAttributeMapping)
Set the noun attribute mapping
|
void |
setNounInterfaceClass(java.lang.Class nounInterfaceClass)
Set the noun interface class
|
void |
setPhysicalEntityInterfaceClass(java.lang.Class physicalEntityInterfaceClass)
Set the physical entity interface class
|
void |
setReadBusinessObjectMediatorClass(java.lang.Class readBusinessObjectMediator)
Set the read business object mediator
|
void |
setReadBusinessObjectMediatorClass(java.lang.Class readBusinessObjectMediator,
java.util.Map properties)
Set the read business object mediator
|
void |
setReadNounPartMediators(java.util.List listReadNounPartTask)
Set read part mediators
|
void |
setUpdateBusinessObjectMediatorClass(java.lang.Class updateBusinessObjectMediator)
Set the change business object mediator
|
void |
setUpdateBusinessObjectMediatorClass(java.lang.Class updateBusinessObjectMediator,
java.util.Map properties)
Set the change business object mediator
|
void |
setUpdateNounPartMediators(java.util.Map mapUpdateNounPartTask)
Set the update noun part mediators
|
void |
trimToSize()
Sets the capacity of the ArrayList objects used by this object to their sizes.
|
public static final java.lang.String XPATH_NOUN_BASE_PART
public BusinessObjectMediatorConfig(java.lang.String astrComponentId)
astrComponentId
- The component id from configuration filepublic void addMediator(java.lang.Class interfaceName, java.lang.Class implementationName, java.util.Map properties)
interfaceName
- The interface name of the mediator to add.implementationName
- The implementation of the mediator to add.properties
- The properties of the mediator.public void addPartMediator(java.lang.Class parentMediator, java.lang.Class interfaceName, java.lang.Class implementationName, java.util.Map properties)
parentMediator
- The parent business object mediator that owns the part mediator implementation.interfaceName
- The interface name of the mediator to add.implementationName
- The implementation of the mediator to add.properties
- The properties of the mediator.public java.util.Collection getMediators()
public java.lang.Class getMediatorClass(java.lang.Class interfaceName)
interfaceName
- The interface name of the mediator to return.public java.util.Map getMediatorProperties(java.lang.Class interfaceName)
interfaceName
- The interface name of the mediator to return.public BusinessObjectMediator getMediatorInstance(java.lang.Class interfaceName) throws java.lang.Exception
interfaceName
- The interface name of the mediator to return.java.lang.Exception
- A problem instantiating the mediator implementation.public java.util.Collection getPartMediators(java.lang.Class parentInterfaceName)
parentInterfaceName
- The interface name of the business object mediator.public java.util.Collection getPartMediatorClassAndProperties(java.lang.Class parentInterfaceName, java.lang.Class interfaceName)
parentInterfaceName
- The interface name of the business object mediator.interfaceName
- The interface name of the business object part mediator.public java.util.Collection getPartMediatorInstances(java.lang.Class parentInterfaceName, java.lang.Class interfaceName) throws java.lang.Exception
parentInterfaceName
- The parent mediator interface that owns the part mediator.interfaceName
- The part mediator of the implementation to return.java.lang.Exception
- A problem instantiating the mediator implementation.public java.util.List getReadBusinessObjectPartMediators()
public java.util.Collection getChangeBusinessObjectPartMediators()
public java.util.Map getChangeBusinessObjectPartMediatorsMap()
public java.util.Map getChangeBusinessObjectNounPartMediatorAccessProfiles()
public java.util.Map getChangeBusinessObjectNounMediatorAccessProfiles()
public ChangeBusinessObjectPartMediator getChangeBusinessObjectPartMediator(java.lang.Object aNoun, java.lang.Object aNounPart) throws java.lang.Exception
aNoun
- The nounaNounPart
- The part within the nounjava.lang.Exception
public ReadBusinessObjectMediator getReadBusinessObjectMediator() throws java.lang.Exception
java.lang.Exception
public ChangeBusinessObjectMediator getUpdateBusinessObjectMediator() throws java.lang.Exception
java.lang.Exception
public java.lang.Class getReadBusinessObjectMediatorClass() throws java.lang.Exception
java.lang.Exception
public java.lang.Class getUpdateBusinessObjectMediatorClass() throws java.lang.Exception
java.lang.Exception
public void setReadNounPartMediators(java.util.List listReadNounPartTask)
listReadNounPartTask
- public void setUpdateNounPartMediators(java.util.Map mapUpdateNounPartTask)
mapUpdateNounPartTask
- public void setChangeBusinessObjectNounMediatorAccessProfiles(java.util.Map mapUpdateNounAccessProfile)
mapUpdateNounAccessProfile
- The change noun mediator access profiles for this nounpublic void setChangeBusinessObjectNounPartMediatorAccessProfiles(java.util.Map mapUpdateNounPartAccessProfile)
mapUpdateNounPartAccessProfile
- The change noun part mediator access profiles for this nounpublic java.lang.Class getNounInterfaceClass()
public void setNounInterfaceClass(java.lang.Class nounInterfaceClass)
nounInterfaceClass
- public java.lang.Class getPhysicalEntityInterfaceClass()
public void setPhysicalEntityInterfaceClass(java.lang.Class physicalEntityInterfaceClass)
physicalEntityInterfaceClass
- public void setReadBusinessObjectMediatorClass(java.lang.Class readBusinessObjectMediator)
readBusinessObjectMediator
- public void setReadBusinessObjectMediatorClass(java.lang.Class readBusinessObjectMediator, java.util.Map properties)
readBusinessObjectMediator
- properties
- The properties of the mediator.public void setUpdateBusinessObjectMediatorClass(java.lang.Class updateBusinessObjectMediator)
updateBusinessObjectMediator
- public void setUpdateBusinessObjectMediatorClass(java.lang.Class updateBusinessObjectMediator, java.util.Map properties)
updateBusinessObjectMediator
- properties
- The properties of the mediator.public java.util.List getNounPartAttributeMapping()
public BusinessObjectAttributeMappingConfig getNounAttributeMapping()
public void setNounAttributeMappingConfig(BusinessObjectAttributeMappingConfig nounAttributeMapping)
nounAttributeMapping
- public BusinessObjectAttributeMappingConfig getNounPartAttributeMapping(java.lang.Object aLogicalObject, java.lang.Object aPhysicalObject)
aLogicalObject
- aPhysicalObject
- public java.lang.String getComponentId()
public void trimToSize()