Class ItemFactoryImpl

java.lang.Object
com.skava.subscription.factoryimpl.ItemFactoryImpl
All Implemented Interfaces:
ItemFactory

@Component public class ItemFactoryImpl extends Object implements ItemFactory

Class ItemFactoryImpl

Class provides the implementation for ItemFactory

Author:
Infosys Equinox
  • Constructor Details

    • ItemFactoryImpl

      public ItemFactoryImpl()
  • Method Details

    • createItemDomainFromRequest

      public List<ItemDomain> createItemDomainFromRequest(List<ItemRequest> itemRequestList)

      createItemDomainFromRequest Method.

      This method creates the list of item domain from the list of item request objects

      Specified by:
      createItemDomainFromRequest in interface ItemFactory
      Parameters:
      itemRequestList - The list of ItemRequest.
      Returns:
      The list of ItemDomain
    • createSingleItemDomainFromRequest

      public ItemDomain createSingleItemDomainFromRequest(ItemRequest itemRequest)

      createSingleItemDomainFromRequest Method.

      This method creates the item domain from the item request objects

      Specified by:
      createSingleItemDomainFromRequest in interface ItemFactory
      Parameters:
      itemRequest - indicate the item.
      Returns:
      the itemDomain ItemDomain
    • createItemEntity

      public List<ItemEntity> createItemEntity(List<ItemDomain> itemDomainList, ItemGroupEntity itemGroupEntity, SubscriptionEntity subscriptionEntity)

      createItemEntity Method.

      This method creates the list of item entity from the list of item domain objects

      Specified by:
      createItemEntity in interface ItemFactory
      Parameters:
      itemDomainList - The list of ItemRequest.
      subscriptionEntity - indicates the SubscriptionEntity
      itemGroupEntity - The item group entity.
      Returns:
      The list of ItemEntity
    • buildItemResponse

      public List<ItemResponse> buildItemResponse(List<ItemDomain> itemDomainList, long itemGroupId)

      The buildItemResponse Method.

      This method creates the list of item response from the list of item domain objects

      Specified by:
      buildItemResponse in interface ItemFactory
      Parameters:
      itemDomainList - The list of ItemDomain.
      itemGroupId - The item group id.
      Returns:
      The list of ItemDomain
    • buildAnItemResponse

      public ItemResponse buildAnItemResponse(ItemDomain itemDomain, long itemGroupId)

      method The buildAnItemResponse Method.

      This method creates the item response from the item domain objects

      Specified by:
      buildAnItemResponse in interface ItemFactory
      Parameters:
      itemDomain - contains the ItemDomain.
      itemGroupId - The item group id.
      Returns:
      The list of ItemDomain
    • createItemDomainFromEntity

      public List<ItemDomain> createItemDomainFromEntity(List<ItemEntity> itemEntityList)

      The createItemDomainFromEntity Method.

      This method creates the list of item domain from the list of item entity objects

      Specified by:
      createItemDomainFromEntity in interface ItemFactory
      Parameters:
      itemEntityList - The list of ItemEntity.
      Returns:
      The list of ItemDomain
    • createSingleItemDomainFromEntity

      public ItemDomain createSingleItemDomainFromEntity(ItemEntity itemEntity)

      The createSingleItemDomainFromEntity Method.

      This method creates the item domain from the item entity objects

      Specified by:
      createSingleItemDomainFromEntity in interface ItemFactory
      Parameters:
      itemEntity - indicates the ItemEntity.
      Returns:
      item domain ItemDomain