Package com.skava.service.impl
Class CreateBlackListItemServiceImpl
java.lang.Object
com.skava.service.impl.CreateBlackListItemServiceImpl
- All Implemented Interfaces:
com.skava.core.EcommService<BlackListItemRequest,
,BlackListItemCreateResponse> CreateBlackListItemService
@Service
@Transactional(propagation=REQUIRED,
readOnly=false)
public class CreateBlackListItemServiceImpl
extends Object
implements CreateBlackListItemService
This service class implements CreateBlackListService and handles the create BlackListItem service request, process it and save the
details in DB. It also implements business logic required to create BlackListItem in a collection.
- Author:
- Infosys Equinox
-
Constructor Summary
ConstructorsConstructorDescriptionCreateBlackListItemServiceImpl
(UserCommonServices userCommonServices, BlackListedItemsRepository blackListedItemsRepository) Default Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
createBlackListItem
(BlackListItem blackListItemVo, List<BlackListedItemsEntity> blackListedItemsEntity, List<BlackListedItemsEntity> existingBlackListItems) List<com.skava.core.validation.ValidatorComponent>
This method is used to get the respective validator class for this create blacklistItem service.process
(BlackListItemRequest request) This method is used to create a new BlackListItem.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.skava.core.EcommService
getValidateException, getValidator
-
Constructor Details
-
CreateBlackListItemServiceImpl
@Autowired public CreateBlackListItemServiceImpl(UserCommonServices userCommonServices, BlackListedItemsRepository blackListedItemsRepository) Default Constructor
-
-
Method Details
-
process
This method is used to create a new BlackListItem.- Specified by:
process
in interfacecom.skava.core.EcommService<BlackListItemRequest,
BlackListItemCreateResponse> - Parameters:
request
- HoldsBlackListItemRequest
object for creating an blackListItem.- Returns:
- The
BlackListItemResponse
object which returns the success response code and message and if any validations fails, throws an validate exception.
-
createBlackListItem
public void createBlackListItem(BlackListItem blackListItemVo, List<BlackListedItemsEntity> blackListedItemsEntity, List<BlackListedItemsEntity> existingBlackListItems) - Parameters:
blackListItemVo
- blackListItemVoblackListedItemsEntity
-existingBlackListItems
-
-
getValidator
This method is used to get the respective validator class for this create blacklistItem service.- Specified by:
getValidator
in interfacecom.skava.core.EcommService<BlackListItemRequest,
BlackListItemCreateResponse> - Returns:
- The list of
ValidatorComponent
object.
-