Class FindAllBinItemsServiceImpl
java.lang.Object
com.skava.inventory.service.impl.CommonDependencies
com.skava.inventory.service.impl.binitem.FindAllBinItemsServiceImpl
- All Implemented Interfaces:
com.skava.core.EcommService<FindAllBinItemRequest,
,BinItemsResponse> FindAllBinItemService
,CustomEcommService<FindAllBinItemRequest,
BinItemsResponse>
@Service
public class FindAllBinItemsServiceImpl
extends CommonDependencies
implements FindAllBinItemService
This class implements
FindAllBinItemService
to find all binItems associated to the collection.- Author:
- Infosys Equinox
-
Field Summary
Fields inherited from class com.skava.inventory.service.impl.CommonDependencies
binItemRepository, binRepository, cacheUtil, collectionDependencies, collectionPropertyRepository, collectionRepository, context, createBinItemService, createBinService, inventoryEventService, messageSource, searchCountCache, transactionRepository
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<com.skava.core.validation.ValidatorComponent>
getValidator
(FindAllBinItemRequest request) This class implements the validator for find all binItems.process
(FindAllBinItemRequest request) This method is used to load all BinItems based on request.Methods inherited from class com.skava.inventory.service.impl.CommonDependencies
checkBinIsActive, checkBinItemIsActive, checkForDuplicateName, clearCollectionCache, clearCollectionPropertyCache
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.skava.inventory.service.CustomEcommService
getValidateException
Methods inherited from interface com.skava.core.EcommService
getValidator
-
Constructor Details
-
FindAllBinItemsServiceImpl
public FindAllBinItemsServiceImpl()
-
-
Method Details
-
process
@HystrixCommand(commandKey="inventory-key", fallbackMethod="methodFallback", ignoreExceptions=com.skava.core.validation.ValidateException.class) public BinItemsResponse process(FindAllBinItemRequest request) This method is used to load all BinItems based on request. The filter/search query is applied to find a set of binItems. The binItems are loaded based on the collection and the filter/search string. If no BinItems are found based on the search/filter string and collection Id then, no binItems found response is returned. Below are the validations to be passed to create a binItem- The collection must exist and ACTIVE.
- Specified by:
process
in interfacecom.skava.core.EcommService<FindAllBinItemRequest,
BinItemsResponse> - Parameters:
request
- It contains the search/filter attributes for querying set of binItems.- Returns:
- It returns the
BinItemsResponse
.
-
getValidator
public List<com.skava.core.validation.ValidatorComponent> getValidator(FindAllBinItemRequest request) This class implements the validator for find all binItems.- Specified by:
getValidator
in interfacecom.skava.core.EcommService<FindAllBinItemRequest,
BinItemsResponse>
-