Interface SellerRegistrationService

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.HashSet<java.lang.String> addFavoriteSeller​(java.lang.String sellerId)
      This method adds database entity at already in the existing database entities list.
      java.util.HashSet<java.lang.String> addFavoriteSellerSKU​(java.lang.String sellerSkuId)
      This method adds database entity at already in the existing database entities list.
      void changeProfileEmbeddedParent​(java.lang.String profileId, java.lang.String sellerId)
      This method updates database entities.
      java.util.List<Certificate> getCertificates()
      This method returns database entities as list.
      java.util.List<Chat> getChatsByLoggedProfile()
      This method does returns database entities list.
      Country getCountryBySellerId​(java.lang.String sellerId)
      This method returns data as list.
      java.util.HashSet<Seller> getFavoriteSellers()
      This method returns database entities as list.
      java.util.HashSet<SellerSKU> getFavoriteSellerSKUs()
      This method returns database entities as list.
      Profile getLoggedProfile()
      This method does returns database entity which logged in system.
      Seller getLoggedSeller()
      This method does returns database entity which logged in system.
      java.util.List<Attachment> getSellerDocumentUrls​(java.lang.String sellerId, java.lang.String type)
      This method returns data as list.
      java.util.List<java.util.Map<java.lang.String,​java.lang.String>> getSellers()
      This method retrieves a map, which can be processed in a templates.
      java.util.List<SellerSKU> getSellerSellerSkus​(java.lang.String sellerId)
      This method returns data as list.
      java.util.Map<java.lang.String,​java.lang.Boolean> isEmailNotificationEnabled​(java.lang.String sellerId)
      This method checks and returns map
      boolean isEmailTaken​(java.lang.String email)
      Checks if given email is taken by any user.
      boolean isFavoriteSellerExists​(java.lang.String sellerId)
      This method checks is exists database entity.
      boolean isFavoriteSellerNotExists​(java.lang.String sellerId)
      This method checks is not exists database entity.
      boolean isFavoriteSellerSkuExists​(java.lang.String sellerSkuId)
      This method checks is exists database entity.
      boolean isFavoriteSellerSkuNotExists​(java.lang.String sellerSkuId)
      This method checks is not exists database entity.
      boolean isLogged()
      This method does check is database entity logged in system.
      boolean isNotLogged()
      This method does check is not database entity logged in system.
      boolean isTariffNotPaid​(java.lang.String sellerId)
      This method checks is database entity field had some value.
      boolean isTariffPaid​(java.lang.String sellerId)
      This method checks is database entity field had some value.
      java.util.Optional<Seller> registerSeller​(java.util.LinkedHashMap<java.lang.String,​java.lang.Object> sellerAsMap)
      This method creates a database entity.
      void removeFavoriteSeller​(java.lang.String sellerId)
      This method removes database entity.
      void removeFavoriteSellerSKU​(java.lang.String sellerSkuId)
      This method removes database entity.
      void removeSellerAndClean​(java.lang.String sellerId)
      This method removes a database entity and clean all relationships from another entities.
      void removeSellersByIds​(java.util.ArrayList<java.lang.String> sellersIds)
      This method removes a list of database entities.
      Seller saveSeller​(java.util.LinkedHashMap<java.lang.String,​java.lang.Object> sellerAsMap)
      This method saves database entity.
      void sendContactSupplierEmail​(java.lang.String sellerId, java.lang.String messageText, java.lang.String topic)
      This method sends a email for contact supplier.
      Seller updateSeller​(java.util.LinkedHashMap<java.lang.String,​java.lang.Object> sellerAsMap, java.lang.Boolean verifyRequired)
      This method save an updates of database entity.
    • Method Detail

      • isLogged

        boolean isLogged()
        This method does check is database entity logged in system.
        Returns:
        value as boolean
      • isNotLogged

        boolean isNotLogged()
        This method does check is not database entity logged in system.
        Returns:
        value as boolean
      • getLoggedSeller

        Seller getLoggedSeller()
        This method does returns database entity which logged in system.
        Returns:
        database entity
      • getLoggedProfile

        Profile getLoggedProfile()
        This method does returns database entity which logged in system.
        Returns:
        database entity
      • getChatsByLoggedProfile

        java.util.List<Chat> getChatsByLoggedProfile()
        This method does returns database entities list.
        Returns:
        database entities as list
      • registerSeller

        java.util.Optional<Seller> registerSeller​(java.util.LinkedHashMap<java.lang.String,​java.lang.Object> sellerAsMap)
        This method creates a database entity.
        Parameters:
        sellerAsMap - map-representation of database entity
        Returns:
        optional value to externally interaction
      • sendContactSupplierEmail

        void sendContactSupplierEmail​(java.lang.String sellerId,
                                      java.lang.String messageText,
                                      java.lang.String topic)
        This method sends a email for contact supplier.
        Parameters:
        sellerId - identification database entity who send email
        messageText - email massage text
        topic - email message topic
      • getCertificates

        java.util.List<Certificate> getCertificates()
        This method returns database entities as list.
        Returns:
        database entities as list
      • updateSeller

        Seller updateSeller​(java.util.LinkedHashMap<java.lang.String,​java.lang.Object> sellerAsMap,
                            java.lang.Boolean verifyRequired)
        This method save an updates of database entity.
        Parameters:
        sellerAsMap - map-representation of database entity
        verifyRequired - boolean value
        Returns:
        saved instance of database entity
      • saveSeller

        Seller saveSeller​(java.util.LinkedHashMap<java.lang.String,​java.lang.Object> sellerAsMap)
        This method saves database entity.
        Parameters:
        sellerAsMap - map-representation of database entity
        Returns:
        saved instance of database entity
      • getSellerSellerSkus

        java.util.List<SellerSKU> getSellerSellerSkus​(java.lang.String sellerId)
        This method returns data as list.
        Parameters:
        sellerId - identification for database entity which related entities list be returned
        Returns:
        database entities as list
      • getCountryBySellerId

        Country getCountryBySellerId​(java.lang.String sellerId)
        This method returns data as list.
        Parameters:
        sellerId - identification for database entity which related entities list be returned
        Returns:
        country entity
      • getFavoriteSellers

        java.util.HashSet<Seller> getFavoriteSellers()
        This method returns database entities as list.
        Returns:
        database entities as list
      • addFavoriteSeller

        java.util.HashSet<java.lang.String> addFavoriteSeller​(java.lang.String sellerId)
        This method adds database entity at already in the existing database entities list.
        Parameters:
        sellerId - identification for database entity which added in list
        Returns:
        database entities as list
      • removeFavoriteSeller

        void removeFavoriteSeller​(java.lang.String sellerId)
        This method removes database entity.
        Parameters:
        sellerId - database entity which will be removed
      • getFavoriteSellerSKUs

        java.util.HashSet<SellerSKU> getFavoriteSellerSKUs()
        This method returns database entities as list.
        Returns:
        database entities as list
      • addFavoriteSellerSKU

        java.util.HashSet<java.lang.String> addFavoriteSellerSKU​(java.lang.String sellerSkuId)
        This method adds database entity at already in the existing database entities list.
        Parameters:
        sellerSkuId - identification for database entity which added in list
        Returns:
        database entities as list
      • removeFavoriteSellerSKU

        void removeFavoriteSellerSKU​(java.lang.String sellerSkuId)
        This method removes database entity.
        Parameters:
        sellerSkuId - database entity which will be removed
      • getSellers

        java.util.List<java.util.Map<java.lang.String,​java.lang.String>> getSellers()
        This method retrieves a map, which can be processed in a templates.
        Returns:
        map-representation of data
      • getSellerDocumentUrls

        java.util.List<Attachment> getSellerDocumentUrls​(java.lang.String sellerId,
                                                         java.lang.String type)
        This method returns data as list.
        Parameters:
        sellerId - identification for database entity which related beans list be returned
        type - field for database entity from filter
        Returns:
        database beans as list
      • isTariffPaid

        boolean isTariffPaid​(java.lang.String sellerId)
        This method checks is database entity field had some value.
        Parameters:
        sellerId - identification for database entity which will be checked
        Returns:
        value as boolean
      • isTariffNotPaid

        boolean isTariffNotPaid​(java.lang.String sellerId)
        This method checks is database entity field had some value.
        Parameters:
        sellerId - identification for database entity which will be checked
        Returns:
        value as boolean
      • isFavoriteSellerNotExists

        boolean isFavoriteSellerNotExists​(java.lang.String sellerId)
        This method checks is not exists database entity.
        Parameters:
        sellerId - identification for database entity which will be checked
        Returns:
        value as boolean
      • isFavoriteSellerExists

        boolean isFavoriteSellerExists​(java.lang.String sellerId)
        This method checks is exists database entity.
        Parameters:
        sellerId - identification for database entity which will be checked
        Returns:
        value as boolean
      • isFavoriteSellerSkuNotExists

        boolean isFavoriteSellerSkuNotExists​(java.lang.String sellerSkuId)
        This method checks is not exists database entity.
        Parameters:
        sellerSkuId - identification for database entity which will be checked
        Returns:
        value as boolean
      • isFavoriteSellerSkuExists

        boolean isFavoriteSellerSkuExists​(java.lang.String sellerSkuId)
        This method checks is exists database entity.
        Parameters:
        sellerSkuId - identification for database entity which will be checked
        Returns:
        value as boolean
      • isEmailNotificationEnabled

        java.util.Map<java.lang.String,​java.lang.Boolean> isEmailNotificationEnabled​(java.lang.String sellerId)
        This method checks and returns map
        Parameters:
        sellerId - identification for database entity which will be checked
        Returns:
        value as boolean
      • removeSellerAndClean

        void removeSellerAndClean​(java.lang.String sellerId)
        This method removes a database entity and clean all relationships from another entities.
        Parameters:
        sellerId - identification for database entity which will be removed
      • removeSellersByIds

        void removeSellersByIds​(java.util.ArrayList<java.lang.String> sellersIds)
        This method removes a list of database entities.
        Parameters:
        sellersIds - the list of database entities which will be removed
      • changeProfileEmbeddedParent

        void changeProfileEmbeddedParent​(java.lang.String profileId,
                                         java.lang.String sellerId)
        This method updates database entities.
        Parameters:
        profileId - identification for database entity which will be updated
        sellerId - identification for database entity which will be updated
      • isEmailTaken

        boolean isEmailTaken​(java.lang.String email)
        Checks if given email is taken by any user.
        Parameters:
        email - email
        Returns:
        true if email is taken