Class OutboundItemDTOGroup
java.lang.Object
de.hybris.platform.outboundsync.dto.OutboundItemDTOGroup
The
OutboundItemDTOGroup class encapsulates the collection of OutboundItemDTOs.
It also provides some convenience accessors.-
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic OutboundItemDTOGroupfrom(Collection<OutboundItemDTO> outboundItemDTOs, OutboundItemFactory itemFactory) Creates anOutboundItemDTOGroupfrom the given collection ofOutboundItemDTOGets theOutboundChannelConfigurationModelassociated with the changed itemGets the PK of the CronJob that was triggeredGets the ConsumedDestination id associated with the changed itemGets the Integration Object's code associated with the changed itemintRetrieves number of changed items in this groupRetrieves a copy of the collection of OutboundItemDTOsGets the root item PK.inthashCode()toString()
-
Method Details
-
from
public static OutboundItemDTOGroup from(Collection<OutboundItemDTO> outboundItemDTOs, OutboundItemFactory itemFactory) Creates anOutboundItemDTOGroupfrom the given collection ofOutboundItemDTO- Parameters:
outboundItemDTOs- Collection of OutboundItemDTOsitemFactory- a factory forOutboundItem- Returns:
- new instance of this group
-
getOutboundItemDTOs
Retrieves a copy of the collection of OutboundItemDTOs- Returns:
- Collection of OutboundItemDTOs
-
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
Gets the Integration Object's code associated with the changed item- Returns:
- Code
-
getDestinationId
Gets the ConsumedDestination id associated with the changed item- Returns:
- Destination id
-
getChannelConfiguration
Gets theOutboundChannelConfigurationModelassociated with the changed item- Returns:
- Channel configuration model
-
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.
-
toString
-
equals
-
hashCode
public int hashCode()
-