Interface CustomerService

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.LinkedHashSet<SellerDTO> getCustomers​(java.lang.String requestJson)
      This method does search requests and returns data as list.
      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 object
      Seller registerCustomerFull​(java.util.LinkedHashMap<java.lang.String,​java.lang.Object> customerAsMap)
      This method does a registration for customer
      Profile registerCustomerSimplified​(java.util.LinkedHashMap<java.lang.String,​java.lang.Object> userProfileAsMap)
      This method does a registration for user
      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.
      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

      • 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
      • getCustomers

        java.util.LinkedHashSet<SellerDTO> getCustomers​(java.lang.String requestJson)
        This method does search requests and returns data as list.
        Parameters:
        requestJson - search request
        Returns:
        data transport entities as list
      • 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
      • 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​(Seller seller,
                                 boolean optimal)
        This method does map product entity to dto object
        Parameters:
        seller - database entity which be used to map to dto
        optimal - this pointer optimises the data transfer object
        Returns:
        data transport object