Class SellerRegistrationServiceImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.HashSet<java.lang.String> addFavoriteSellers​(java.lang.String sellerId)
      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.
      java.util.HashSet<Seller> getFavoriteSellers()
      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 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 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 removeFavoriteSellerFromLoggedSeller​(java.lang.String sellerId)
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SellerRegistrationServiceImpl

        public SellerRegistrationServiceImpl()
    • Method Detail

      • registerSeller

        @Transactional
        public java.util.Optional<Seller> registerSeller​(java.util.LinkedHashMap<java.lang.String,​java.lang.Object> sellerAsMap)
        Description copied from interface: SellerRegistrationService
        This method creates a database entity.
        Specified by:
        registerSeller in interface SellerRegistrationService
        Parameters:
        sellerAsMap - map-representation of database entity
        Returns:
        optional value to externally interaction
      • sendContactSupplierEmail

        public void sendContactSupplierEmail​(java.lang.String sellerId,
                                             java.lang.String messageText,
                                             java.lang.String topic)
        Description copied from interface: SellerRegistrationService
        This method sends a email for contact supplier.
        Specified by:
        sendContactSupplierEmail in interface SellerRegistrationService
        Parameters:
        sellerId - identification database entity who send email
        messageText - email massage text
        topic - email message topic
      • saveSeller

        @Transactional
        public Seller saveSeller​(java.util.LinkedHashMap<java.lang.String,​java.lang.Object> sellerAsMap)
        Description copied from interface: SellerRegistrationService
        This method saves database entity.
        Specified by:
        saveSeller in interface SellerRegistrationService
        Parameters:
        sellerAsMap - map-representation of database entity
        Returns:
        saved instance of database entity
      • updateSeller

        @Transactional
        public Seller updateSeller​(java.util.LinkedHashMap<java.lang.String,​java.lang.Object> sellerAsMap,
                                   java.lang.Boolean verifyRequired)
        Description copied from interface: SellerRegistrationService
        This method save an updates of database entity.
        Specified by:
        updateSeller in interface SellerRegistrationService
        Parameters:
        sellerAsMap - map-representation of database entity
        verifyRequired - boolean value
        Returns:
        saved instance of database entity
      • removeSellerAndClean

        @Transactional
        public void removeSellerAndClean​(java.lang.String sellerId)
        Description copied from interface: SellerRegistrationService
        This method removes a database entity and clean all relationships from another entities.
        Specified by:
        removeSellerAndClean in interface SellerRegistrationService
        Parameters:
        sellerId - identification for database entity which will be removed
      • removeSellersByIds

        @Transactional
        public void removeSellersByIds​(java.util.ArrayList<java.lang.String> sellersIds)
        Description copied from interface: SellerRegistrationService
        This method removes a list of database entities.
        Specified by:
        removeSellersByIds in interface SellerRegistrationService
        Parameters:
        sellersIds - the list of database entities which will be removed
      • getSellerSellerSkus

        public java.util.List<SellerSKU> getSellerSellerSkus​(java.lang.String sellerId)
        Description copied from interface: SellerRegistrationService
        This method returns data as list.
        Specified by:
        getSellerSellerSkus in interface SellerRegistrationService
        Parameters:
        sellerId - identification for database entity which related entities list be returned
        Returns:
        database entities as list
      • isTariffPaid

        public boolean isTariffPaid​(java.lang.String sellerId)
        Description copied from interface: SellerRegistrationService
        This method checks is database entity field had some value.
        Specified by:
        isTariffPaid in interface SellerRegistrationService
        Parameters:
        sellerId - identification for database entity which will be checked
        Returns:
        value as boolean
      • isTariffNotPaid

        public boolean isTariffNotPaid​(java.lang.String sellerId)
        Description copied from interface: SellerRegistrationService
        This method checks is database entity field had some value.
        Specified by:
        isTariffNotPaid in interface SellerRegistrationService
        Parameters:
        sellerId - identification for database entity which will be checked
        Returns:
        value as boolean
      • isFavoriteSellerNotExists

        public boolean isFavoriteSellerNotExists​(java.lang.String sellerId)
        Description copied from interface: SellerRegistrationService
        This method checks is not exists database entity.
        Specified by:
        isFavoriteSellerNotExists in interface SellerRegistrationService
        Parameters:
        sellerId - identification for database entity which will be checked
        Returns:
        value as boolean
      • isFavoriteSellerExists

        public boolean isFavoriteSellerExists​(java.lang.String sellerId)
        Description copied from interface: SellerRegistrationService
        This method checks is exists database entity.
        Specified by:
        isFavoriteSellerExists in interface SellerRegistrationService
        Parameters:
        sellerId - identification for database entity which will be checked
        Returns:
        value as boolean
      • isEmailNotificationEnabled

        public java.util.Map<java.lang.String,​java.lang.Boolean> isEmailNotificationEnabled​(java.lang.String sellerId)
        Description copied from interface: SellerRegistrationService
        This method checks and returns map
        Specified by:
        isEmailNotificationEnabled in interface SellerRegistrationService
        Parameters:
        sellerId - identification for database entity which will be checked
        Returns:
        value as boolean
      • getSellerDocumentUrls

        public java.util.List<Attachment> getSellerDocumentUrls​(java.lang.String sellerId,
                                                                java.lang.String type)
        Description copied from interface: SellerRegistrationService
        This method returns data as list.
        Specified by:
        getSellerDocumentUrls in interface SellerRegistrationService
        Parameters:
        sellerId - identification for database entity which related beans list be returned
        type - field for database entity from filter
        Returns:
        database beans as list
      • addFavoriteSellers

        public java.util.HashSet<java.lang.String> addFavoriteSellers​(java.lang.String sellerId)
        Description copied from interface: SellerRegistrationService
        This method adds database entity at already in the existing database entities list.
        Specified by:
        addFavoriteSellers in interface SellerRegistrationService
        Parameters:
        sellerId - identification for database entity which added in list
        Returns:
        database entities as list
      • getSellers

        @Transactional
        public java.util.List<java.util.Map<java.lang.String,​java.lang.String>> getSellers()
        Description copied from interface: SellerRegistrationService
        This method retrieves a map, which can be processed in a templates.
        Specified by:
        getSellers in interface SellerRegistrationService
        Returns:
        map-representation of data
      • changeProfileEmbeddedParent

        public void changeProfileEmbeddedParent​(java.lang.String profileId,
                                                java.lang.String sellerId)
        Description copied from interface: SellerRegistrationService
        This method updates database entities.
        Specified by:
        changeProfileEmbeddedParent in interface SellerRegistrationService
        Parameters:
        profileId - identification for database entity which will be updated
        sellerId - identification for database entity which will be updated