Class CustomerAnalyticsServiceImpl

    • Field Detail

      • mongoTemplate

        @Autowired
        private org.springframework.data.mongodb.core.MongoTemplate mongoTemplate
      • mapper

        private static final com.fasterxml.jackson.databind.ObjectMapper mapper
    • Constructor Detail

      • CustomerAnalyticsServiceImpl

        public CustomerAnalyticsServiceImpl()
    • Method Detail

      • searchCustomerActivityEvents

        public org.springframework.data.domain.Page<ActivityDataItem> 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 interface CustomerAnalyticsService
        Parameters:
        request - search request as map
        Returns:
        data transport entities as page
      • searchCustomerActivityEvents

        public org.springframework.data.domain.Page<ActivityDataItem> 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 interface CustomerAnalyticsService
        Parameters:
        sr - search request as entity
        seller - 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 interface CustomerAnalyticsService
        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 interface CustomerAnalyticsService
        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 interface CustomerAnalyticsService
        Parameters:
        request - search request as entity
        Returns:
        data transport object
      • getRegisteredCompaniesByCountry

        public java.util.Map<java.lang.String,​java.lang.Integer> getRegisteredCompaniesByCountry()
        Description copied from interface: CustomerAnalyticsService
        Retrieves a map of registered companies by country.

        This method returns a map where the keys are country code and the values are the number of registered companies in that country.

        Specified by:
        getRegisteredCompaniesByCountry in interface CustomerAnalyticsService
        Returns:
        a map of registered companies by country
      • getRegisteredCompaniesByType

        public java.util.Map<java.lang.String,​java.lang.Integer> getRegisteredCompaniesByType()
        Description copied from interface: CustomerAnalyticsService
        Retrieves a map of registered companies by type.

        This method returns a map where the keys are type and the values are the number of registered companies in that type.

        Specified by:
        getRegisteredCompaniesByType in interface CustomerAnalyticsService
        Returns:
        a map of registered companies by type