Class ItemFactoryImpl
java.lang.Object
com.skava.subscription.factoryimpl.ItemFactoryImpl
- All Implemented Interfaces:
ItemFactory
Class ItemFactoryImpl
Class provides the implementation for ItemFactory
- Author:
- Infosys Equinox
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildAnItemResponse
(ItemDomain itemDomain, long itemGroupId) method The buildAnItemResponse Method.buildItemResponse
(List<ItemDomain> itemDomainList, long itemGroupId) The buildItemResponse Method.createItemDomainFromEntity
(List<ItemEntity> itemEntityList) The createItemDomainFromEntity Method.createItemDomainFromRequest
(List<ItemRequest> itemRequestList) createItemDomainFromRequest Method.createItemEntity
(List<ItemDomain> itemDomainList, ItemGroupEntity itemGroupEntity, SubscriptionEntity subscriptionEntity) createItemEntity Method.createSingleItemDomainFromEntity
(ItemEntity itemEntity) The createSingleItemDomainFromEntity Method.createSingleItemDomainFromRequest
(ItemRequest itemRequest) createSingleItemDomainFromRequest Method.
-
Constructor Details
-
ItemFactoryImpl
public ItemFactoryImpl()
-
-
Method Details
-
createItemDomainFromRequest
createItemDomainFromRequest Method.
This method creates the list of item domain from the list of item request objects
- Specified by:
createItemDomainFromRequest
in interfaceItemFactory
- Parameters:
itemRequestList
- The list of ItemRequest.- Returns:
- The list of
ItemDomain
-
createSingleItemDomainFromRequest
createSingleItemDomainFromRequest Method.
This method creates the item domain from the item request objects
- Specified by:
createSingleItemDomainFromRequest
in interfaceItemFactory
- 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 interfaceItemFactory
- Parameters:
itemDomainList
- The list of ItemRequest.subscriptionEntity
- indicates the SubscriptionEntityitemGroupEntity
- The item group entity.- Returns:
- The list of
ItemEntity
-
buildItemResponse
The buildItemResponse Method.
This method creates the list of item response from the list of item domain objects
- Specified by:
buildItemResponse
in interfaceItemFactory
- Parameters:
itemDomainList
- The list of ItemDomain.itemGroupId
- The item group id.- Returns:
- The list of
ItemDomain
-
buildAnItemResponse
method The buildAnItemResponse Method.
This method creates the item response from the item domain objects
- Specified by:
buildAnItemResponse
in interfaceItemFactory
- Parameters:
itemDomain
- contains the ItemDomain.itemGroupId
- The item group id.- Returns:
- The list of
ItemDomain
-
createItemDomainFromEntity
The createItemDomainFromEntity Method.
This method creates the list of item domain from the list of item entity objects
- Specified by:
createItemDomainFromEntity
in interfaceItemFactory
- Parameters:
itemEntityList
- The list of ItemEntity.- Returns:
- The list of
ItemDomain
-
createSingleItemDomainFromEntity
The createSingleItemDomainFromEntity Method.
This method creates the item domain from the item entity objects
- Specified by:
createSingleItemDomainFromEntity
in interfaceItemFactory
- Parameters:
itemEntity
- indicates the ItemEntity.- Returns:
- item domain
ItemDomain
-