public class ChangeControlBusinessObjectPartMediatorImpl extends AbstractBusinessObjectMediatorImpl implements BusinessObjectMediator
CMMETADATA
to represent change control
information. This part mediator is used to handle the identified changeable parts of the
noun that requires separate metadata to represent the change control information.Constructor and Description |
---|
ChangeControlBusinessObjectPartMediatorImpl()
Creates an instance of the change control business object part mediator.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canHandleObjectPart(java.lang.Object noun,
java.lang.Object nounPart)
The purpose of this method is to determine whether the current part
mediator should be responsible for resolving the
CMMETADATA
that represents the change control for the specified object. |
java.lang.String |
getObjectPath()
This method returns the XPath expression that will resolve this changeable part
within the given business object.
|
void |
initializeConfig(BusinessObjectMediatorConfig aConfig,
java.util.Map properties)
This method initializes the mediator by resolving the properties specified by
the mediator.
|
boolean |
isLockDisabled()
The purpose of this method is to determine whether this part mediator has
locking disabled.
|
void |
populateManagedResourceKey(java.lang.Object noun,
java.lang.Object nounPart,
ManagedResourceKey key)
The purpose of this method is to populate the specified
ManagedResourceKey
with the appropriate information that is used to store the CMMETADATA . |
public ChangeControlBusinessObjectPartMediatorImpl()
public void populateManagedResourceKey(java.lang.Object noun, java.lang.Object nounPart, ManagedResourceKey key)
ManagedResourceKey
with the appropriate information that is used to store the CMMETADATA
.
This data is used either to retrieve the locking information or store the locking
information pertaining to the specified noun part.noun
- The business object that owns the part that requires change control information.nounPart
- The business object to calculate the change control information.key
- The managed resource key that represent the data that is stored in the
CMMETADATA
table to represent the change control information for the object.
This key will already contain the information determined by the parent mediator and this
method should add or change existing key information, such as the resource manager metadata
and add additional internal key values.public boolean canHandleObjectPart(java.lang.Object noun, java.lang.Object nounPart)
CMMETADATA
that represents the change control for the specified object.noun
- The business object that owns the part.nounPart
- The part of the business object that requires change control.true
is returned if this mediator is configured to handle the part of the business object.public boolean isLockDisabled()
true
)
will not create data in CMMETADATA
even though all configuration parameters
are specified for the lock data.true
is returned if this mediator is configured
with locks disabled.public void initializeConfig(BusinessObjectMediatorConfig aConfig, java.util.Map properties)
initializeConfig
in interface BusinessObjectMediator
initializeConfig
in class AbstractBusinessObjectMediatorImpl
aConfig
- The business object mediator configuration for this object.properties
- The configuration properties of the mediator.BusinessObjectMediator.initializeConfig(com.ibm.commerce.foundation.server.services.dataaccess.bom.config.BusinessObjectMediatorConfig, java.util.Map)
public java.lang.String getObjectPath()