Interface AccessManagementService

    • Method Detail

      • isLogged

        boolean isLogged()
        This method checks user is logged
        Returns:
        true or false
      • isAdmin

        boolean isAdmin()
        This method checks access for admin rights
        Returns:
        true or false
      • 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
      • getLoggedUser

        User getLoggedUser()
        This method does returns database entity which logged in system.
        Returns:
        database user entity
      • isSellerSkuBelongsToLoggedUser

        boolean isSellerSkuBelongsToLoggedUser​(java.lang.String sellerSkuId)
        This method checks access to perform actions with SellerSKU item
        Parameters:
        sellerSkuId - - this is identification for entity item
        Returns:
        true or false
      • isSellerSkuAllowsToProcess

        boolean isSellerSkuAllowsToProcess​(java.lang.String sellerSkuId)
        This method checks access to perform actions with SellerSKU item
        Parameters:
        sellerSkuId - - this is identification for entity item
        Returns:
        true or false
      • isAllSellerSkusBelongsToLoggedUser

        boolean isAllSellerSkusBelongsToLoggedUser​(java.util.List<java.lang.String> sellerSkuIds)
        This method checks access to perform actions with SellerSKU's item
        Parameters:
        sellerSkuIds - - this is identifications for entity items
        Returns:
        true or false
      • isAllSellerSkusAllowsToProcess

        boolean isAllSellerSkusAllowsToProcess​(java.util.List<java.lang.String> sellerSkuIds)
        This method checks access to perform actions with SellerSKU's item
        Parameters:
        sellerSkuIds - - this is identifications for entity items
        Returns:
        true or false
      • hasAccessToOrder

        boolean hasAccessToOrder​(Order order)
        Checks if current user has rights to edit the order or to view details
        Parameters:
        order - order to check
        Returns:
        true — if has