Class CustomerAnalyticsServiceImpl
- java.lang.Object
-
- co.mastermindcms.modules.services.CustomerAnalyticsServiceImpl
-
- All Implemented Interfaces:
CustomerAnalyticsService
@Service public class CustomerAnalyticsServiceImpl extends java.lang.Object implements CustomerAnalyticsService
-
-
Field Summary
Fields Modifier and Type Field Description private ChatRepository
chatRepository
private static com.fasterxml.jackson.databind.ObjectMapper
mapper
private org.springframework.data.mongodb.core.MongoTemplate
mongoTemplate
private ProfileRepository
profileRepository
private SellerRepository
sellerRepository
-
Constructor Summary
Constructors Constructor Description CustomerAnalyticsServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.data.domain.Page<CustomerActivity>
getCustomerActivity(co.mastermindcms.modules.beans.SearchRequest request)
This method builds an event graph based on customer's actions.org.springframework.data.domain.Page<CustomerActivity>
getCustomerActivity(java.util.LinkedHashMap<java.lang.String,java.lang.Object> request)
This method builds an event graph based on customer's actions.ChartData
getCustomersActivityChart(java.util.LinkedHashMap<java.lang.String,java.lang.Object> request)
This method builds an array for the chart diagrams based on customer's actions.org.springframework.data.domain.Page<AggregationDataItem>
searchCustomerActivityEvents(co.mastermindcms.modules.beans.SearchRequest sr, Seller seller)
This method builds a list of events based on customer's actions.org.springframework.data.domain.Page<AggregationDataItem>
searchCustomerActivityEvents(java.util.LinkedHashMap<java.lang.String,java.lang.Object> request)
This method builds a list of events based on customer's actions.
-
-
-
Field Detail
-
profileRepository
@Autowired private ProfileRepository profileRepository
-
chatRepository
@Autowired private ChatRepository chatRepository
-
sellerRepository
@Autowired private SellerRepository sellerRepository
-
mongoTemplate
@Autowired private org.springframework.data.mongodb.core.MongoTemplate mongoTemplate
-
mapper
private static final com.fasterxml.jackson.databind.ObjectMapper mapper
-
-
Method Detail
-
searchCustomerActivityEvents
public org.springframework.data.domain.Page<AggregationDataItem> searchCustomerActivityEvents(java.util.LinkedHashMap<java.lang.String,java.lang.Object> request)
Description copied from interface:CustomerAnalyticsService
This method builds a list of events based on customer's actions.- Specified by:
searchCustomerActivityEvents
in interfaceCustomerAnalyticsService
- Parameters:
request
- search request as map- Returns:
- data transport entities as page
-
searchCustomerActivityEvents
public org.springframework.data.domain.Page<AggregationDataItem> searchCustomerActivityEvents(co.mastermindcms.modules.beans.SearchRequest sr, Seller seller)
Description copied from interface:CustomerAnalyticsService
This method builds a list of events based on customer's actions.- Specified by:
searchCustomerActivityEvents
in interfaceCustomerAnalyticsService
- Parameters:
sr
- search request as entityseller
- customer entity- Returns:
- data transport entities as page
-
getCustomerActivity
public org.springframework.data.domain.Page<CustomerActivity> getCustomerActivity(java.util.LinkedHashMap<java.lang.String,java.lang.Object> request)
Description copied from interface:CustomerAnalyticsService
This method builds an event graph based on customer's actions.- Specified by:
getCustomerActivity
in interfaceCustomerAnalyticsService
- Parameters:
request
- search request as map- Returns:
- data transport object
-
getCustomerActivity
public org.springframework.data.domain.Page<CustomerActivity> getCustomerActivity(co.mastermindcms.modules.beans.SearchRequest request)
Description copied from interface:CustomerAnalyticsService
This method builds an event graph based on customer's actions.- Specified by:
getCustomerActivity
in interfaceCustomerAnalyticsService
- Parameters:
request
- search request as entity- Returns:
- data transport object
-
getCustomersActivityChart
public ChartData getCustomersActivityChart(java.util.LinkedHashMap<java.lang.String,java.lang.Object> request)
Description copied from interface:CustomerAnalyticsService
This method builds an array for the chart diagrams based on customer's actions.- Specified by:
getCustomersActivityChart
in interfaceCustomerAnalyticsService
- Parameters:
request
- search request as entity- Returns:
- data transport object
-
-