com.ibm.commerce.context.content.locking

Class ChangeControlBusinessObjectPartMediatorImpl

  • All Implemented Interfaces:
    BusinessObjectMediator


    public class ChangeControlBusinessObjectPartMediatorImpl
    extends AbstractBusinessObjectMediatorImpl
    implements BusinessObjectMediator
    The purpose of this change control part mediator is to be used only with the change control mediator that uses 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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ChangeControlBusinessObjectPartMediatorImpl

        public ChangeControlBusinessObjectPartMediatorImpl()
        Creates an instance of the change control business object part mediator.
    • Method Detail

      • populateManagedResourceKey

        public 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. This data is used either to retrieve the locking information or store the locking information pertaining to the specified noun part.
        Parameters:
        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.
      • canHandleObjectPart

        public 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.
        Parameters:
        noun - The business object that owns the part.
        nounPart - The part of the business object that requires change control.
        Returns:
        A value of true is returned if this mediator is configured to handle the part of the business object.
      • isLockDisabled

        public boolean isLockDisabled()
        The purpose of this method is to determine whether this part mediator has locking disabled. A change control mediator for a part may disable locking such that any actions on this part does not lock the parent object or a sub object. A part mediator that is disabled for locking (return true) will not create data in CMMETADATA even though all configuration parameters are specified for the lock data.
        Returns:
        A value of true is returned if this mediator is configured with locks disabled.
      • getObjectPath

        public java.lang.String getObjectPath()
        This method returns the XPath expression that will resolve this changeable part within the given business object.
        Returns:
        The path indicating where the business object is located within the noun.