Class OutboundItemDTOGroup

java.lang.Object
de.hybris.platform.outboundsync.dto.OutboundItemDTOGroup

@Immutable public class OutboundItemDTOGroup extends Object
The OutboundItemDTOGroup class encapsulates the collection of OutboundItemDTOs. It also provides some convenience accessors.
  • Method Details

    • from

      public static OutboundItemDTOGroup from(Collection<OutboundItemDTO> outboundItemDTOs, OutboundItemFactory itemFactory)
      Creates an OutboundItemDTOGroup from the given collection of OutboundItemDTO
      Parameters:
      outboundItemDTOs - Collection of OutboundItemDTOs
      itemFactory - a factory for OutboundItem
      Returns:
      new instance of this group
    • from

      public static OutboundItemDTOGroup from(Collection<OutboundItemDTO> outboundItemDTOs, OutboundItemFactory itemFactory, String changeId)
      Creates an OutboundItemDTOGroup from the given collection of OutboundItemDTO and assigns a changeId unique code.
      Parameters:
      outboundItemDTOs - Collection of OutboundItemDTOs
      itemFactory - a factory for OutboundItem
      changeId - a unique String to identify this group
      Returns:
      new instance of this group
    • getOutboundItemDTOs

      public Collection<OutboundItemDTO> getOutboundItemDTOs()
      Retrieves a copy of the collection of OutboundItemDTOs
      Returns:
      Collection of OutboundItemDTOs
    • getRootItemPk

      public Long getRootItemPk()
      Gets the root item PK. If the items in the OutboundItemDTO collection have a root, the root item PK belongs to the root. Otherwise, the root item PK is the same as the item's PK.
      Returns:
      Root item PK
    • getIntegrationObjectCode

      public String getIntegrationObjectCode()
      Gets the Integration Object's code associated with the changed item
      Returns:
      Code
    • getDestinationId

      public String getDestinationId()
      Gets the ConsumedDestination id associated with the changed item
      Returns:
      Destination id
    • getChannelConfiguration

      public OutboundChannelConfigurationModel getChannelConfiguration()
      Gets the OutboundChannelConfigurationModel associated with the changed item
      Returns:
      Channel configuration model
    • getCronJobPk

      public PK getCronJobPk()
      Gets the PK of the CronJob that was triggered
      Returns:
      CronJob's primary key
    • getItemsCount

      public int getItemsCount()
      Retrieves number of changed items in this group
      Returns:
      number of changed items related together based on the grouping condition in this group.
    • getChangeId

      public String getChangeId()
      Returns the string with a unique identifier for this group
      Returns:
      String with a unique identifier for this group
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object