Interface CustomerService
-
- All Known Implementing Classes:
CustomerServiceImpl
public interface CustomerService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.springframework.data.domain.Page<Seller>
getCustomersPaged(java.lang.String requestJson)
This method does search requests and returns data as pages.java.util.Deque<java.util.Map<java.lang.String,java.lang.Object>>
getPaginationCustomers(java.lang.String requestJson)
This method does calculation for a pages based on the request.SellerRepository
getRepository()
SellerDTO
mapSellerToDto(Seller seller, boolean optimal)
This method does map product entity to dto objectSellerDTO
mapSellerToDto(java.util.LinkedHashMap<java.lang.String,java.lang.Object> customerAsMap)
This method does map product entity to dto objectSeller
registerCustomerFull(java.util.LinkedHashMap<java.lang.String,java.lang.Object> customerAsMap)
This method does a registration for customerProfile
registerCustomerSimplified(java.util.LinkedHashMap<java.lang.String,java.lang.Object> userProfileAsMap)
This method does a registration for userco.mastermindcms.modules.beans.SearchResponse
searchCustomers(java.util.LinkedHashMap<java.lang.String,java.lang.Object> requestAsMap)
This method does search requests and returns data as list.co.mastermindcms.modules.beans.SearchResponse
searchCustomersLightweight(java.util.LinkedHashMap<java.lang.String,java.lang.Object> requestAsMap)
Retrieves lightweight customers based on the given request JSON.java.util.LinkedHashSet<Profile>
searchEmployees(java.lang.String requestJson)
This method does search requests and returns data as list.org.springframework.data.domain.Page<Profile>
searchEmployeesPaged(java.lang.String requestJson)
This method does search requests and returns data as pages.void
sendVerificationEmail(java.util.LinkedHashMap<java.lang.String,java.lang.Object> userAsMap)
Sends a verification email to the user.Seller
updateCustomer(java.util.LinkedHashMap<java.lang.String,java.lang.Object> sellerAsMap)
Updates the customer object of the seller with the provided data in the form of a LinkedHashMap.Profile
updateCustomerProfile(java.util.LinkedHashMap<java.lang.String,java.lang.Object> userProfileAsMap)
Updates the customer profile with the provided user profile information.boolean
validatePasswordResetToken(java.lang.String passwordResetToken)
This method returns a boolean value.boolean
validateVerificationToken(java.lang.String verificationToken)
This method returns a boolean value.
-
-
-
Method Detail
-
getRepository
SellerRepository getRepository()
-
getPaginationCustomers
java.util.Deque<java.util.Map<java.lang.String,java.lang.Object>> getPaginationCustomers(java.lang.String requestJson)
This method does calculation for a pages based on the request.- Parameters:
requestJson
- JSON-object of request contains an instructions for search queries- Returns:
- map-representation of data
-
validateVerificationToken
boolean validateVerificationToken(java.lang.String verificationToken)
This method returns a boolean value.- Parameters:
verificationToken
- database entity id- Returns:
- boolean value to externally interaction
-
validatePasswordResetToken
boolean validatePasswordResetToken(java.lang.String passwordResetToken)
This method returns a boolean value.- Parameters:
passwordResetToken
- database entity id- Returns:
- boolean value to externally interaction
-
sendVerificationEmail
void sendVerificationEmail(java.util.LinkedHashMap<java.lang.String,java.lang.Object> userAsMap)
Sends a verification email to the user.- Parameters:
userAsMap
- the user information as a LinkedHashMap<String, Object>. It contains the user's email and other relevant details.
-
searchCustomers
co.mastermindcms.modules.beans.SearchResponse searchCustomers(java.util.LinkedHashMap<java.lang.String,java.lang.Object> requestAsMap)
This method does search requests and returns data as list.- Parameters:
requestAsMap
- search request- Returns:
- data transport entities as list
-
searchCustomersLightweight
co.mastermindcms.modules.beans.SearchResponse searchCustomersLightweight(java.util.LinkedHashMap<java.lang.String,java.lang.Object> requestAsMap)
Retrieves lightweight customers based on the given request JSON.- Parameters:
requestAsMap
- a LinkedHashMap containing the request parameters- Returns:
- a SearchResponse object containing the lightweight customers
-
getCustomersPaged
org.springframework.data.domain.Page<Seller> getCustomersPaged(java.lang.String requestJson)
This method does search requests and returns data as pages.- Parameters:
requestJson
- JSON-object of request contains an instructions for search queries- Returns:
- database entities separated to pages
-
registerCustomerFull
Seller registerCustomerFull(java.util.LinkedHashMap<java.lang.String,java.lang.Object> customerAsMap)
This method does a registration for customer- Parameters:
customerAsMap
- map-representation of database entity- Returns:
- registered customer as database object
-
registerCustomerSimplified
Profile registerCustomerSimplified(java.util.LinkedHashMap<java.lang.String,java.lang.Object> userProfileAsMap)
This method does a registration for user- Parameters:
userProfileAsMap
- map-representation of database entity- Returns:
- registered user profile as database object
-
updateCustomer
Seller updateCustomer(java.util.LinkedHashMap<java.lang.String,java.lang.Object> sellerAsMap)
Updates the customer object of the seller with the provided data in the form of a LinkedHashMap.- Parameters:
sellerAsMap
- a LinkedHashMap containing the updated customer data- Returns:
- the updated Seller object after updating the customer
-
updateCustomerProfile
Profile updateCustomerProfile(java.util.LinkedHashMap<java.lang.String,java.lang.Object> userProfileAsMap)
Updates the customer profile with the provided user profile information.- Parameters:
userProfileAsMap
- A LinkedHashMap containing the user profile information as key-value pairs. The keys represent the profile attributes (e.g., "firstName", "emailAddress", "phone"), and the values represent the updated values for each attribute.- Returns:
- A Profile object containing the updated customer profile information.
-
searchEmployees
java.util.LinkedHashSet<Profile> searchEmployees(java.lang.String requestJson)
This method does search requests and returns data as list.- Parameters:
requestJson
- search request- Returns:
- data transport entities as list
-
searchEmployeesPaged
org.springframework.data.domain.Page<Profile> searchEmployeesPaged(java.lang.String requestJson)
This method does search requests and returns data as pages.- Parameters:
requestJson
- JSON-object of request contains an instructions for search queries- Returns:
- database entities separated to pages
-
mapSellerToDto
SellerDTO mapSellerToDto(java.util.LinkedHashMap<java.lang.String,java.lang.Object> customerAsMap)
This method does map product entity to dto object- Parameters:
customerAsMap
- a LinkedHashMap containing the updated customer data- Returns:
- data transport object
-
-