com.ibm.commerce.foundation.server.command.bod.bom

Class InsertMoreNounChangeControlMetaDataCmdImpl

  • All Implemented Interfaces:
    AbstractInsertMoreNounDataCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    public class InsertMoreNounChangeControlMetaDataCmdImpl
    extends AbstractInsertMoreNounDataCmdImpl
    implements AbstractInsertMoreNounDataCmd

    This generic command inserts the change control metadata that is returned as part of the Get request. Any BOD service module can use this command directly to populate the change control metadata in the Show verb of the response.

    This command uses the change control business object mediator to resolve the change control information for the returned business objects.

    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String CANMODIFY_PROPERTY
      The property name to use to mark whether the object is read only or not.
      static java.lang.String METADATA_USAGE
      The usage name of the metadata that is populated.
      • Fields inherited from class com.ibm.websphere.command.TargetableCommandImpl

        LOCAL
      • Fields inherited from interface com.ibm.websphere.command.Command

        serialVersionUID
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void performExecute()
      This method uses the change control business object mediator to include the change control metadata for each noun that is returned.
      • Methods inherited from class com.ibm.websphere.command.CacheableCommandImpl

        execute, executeFromCache, getCaller, getEntryInfo, getId, getObjectSize, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
      • Methods inherited from class com.ibm.websphere.command.TargetableCommandImpl

        getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.ibm.websphere.command.Command

        execute, isReadyToCallExecute, reset
      • Methods inherited from interface com.ibm.websphere.command.TargetableCommand

        getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
    • Field Detail

      • CANMODIFY_PROPERTY

        public static final java.lang.String CANMODIFY_PROPERTY
        The property name to use to mark whether the object is read only or not.
        See Also:
        Constant Field Values
      • METADATA_USAGE

        public static final java.lang.String METADATA_USAGE
        The usage name of the metadata that is populated. For this command, the metadata usage is "changeControl".
        See Also:
        Constant Field Values
    • Constructor Detail

      • InsertMoreNounChangeControlMetaDataCmdImpl

        public InsertMoreNounChangeControlMetaDataCmdImpl()
        Creates an instance of the insert more change control data for nouns command.
    • Method Detail

      • performExecute

        public void performExecute()
                            throws java.lang.Exception
        This method uses the change control business object mediator to include the change control metadata for each noun that is returned. Along with the metadata, an additional CANMODIFY_PROPERTY is included to determine whether the client can edit the object or not. If there is no change control metadata found, a metadata entry is still created and only has one metadata property with a name of CANMODIFY_PROPERTY. The building of the metadata is done by calling the buildMetadata() method. This method is responsible for resolving the mediator and identifying the objects to return change control information for.
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Specified by:
        performExecute in class com.ibm.websphere.command.TargetableCommandImpl
        Throws:
        java.lang.Exception
        See Also:
        TargetableCommand.performExecute()