com.ibm.commerce.catalog.facade.server.services.dataaccess.bom.mediator.solr

Class SolrReadAttachmentAssetViewPartMediator

  • All Implemented Interfaces:
    BusinessObjectMediator, ReadBusinessObjectPartMediator


    public class SolrReadAttachmentAssetViewPartMediator
    extends AbstractReadBusinessObjectPartMediatorImpl
    This class constructs the AttachmentAssetViewType from the search result document list. And put those attachments into the container CatalogEntryViewType

    If the catentry_id is found in the noun container, then it will put the attachment object in it.

    If the catentry_id is not found in the noun container, then it will create a new CatalogEntryViewType and put the attachment into it.

    • Constructor Detail

      • SolrReadAttachmentAssetViewPartMediator

        public SolrReadAttachmentAssetViewPartMediator()
    • Method Detail

      • buildNounPart

        public void buildNounPart(java.lang.Object aNoun,
                                  java.lang.Object physicalEntity)
        Build the /CatalogNavigationView/CatalogEntryView/Attachments portion of the CatalogNavigationView noun. If no attachment is found in the physical object, then the logical noun is unchanged by this operation.
        Parameters:
        aNoun - An object for holding the logical entity, to be populated by copying data from the physical entity. If it is null, this method will do nothing.
        physicalEntity - An object to hold the physical entity which contains the data that has to be populated in the logical entity. If it is null, this method will do nothing.
        See Also:
        ReadBusinessObjectPartMediator.buildNounPart(java.lang.Object, java.lang.Object)