Interface OrderService

  • All Known Implementing Classes:
    OrderServiceImpl

    public interface OrderService
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.List<OrderTimeLineBean> changeOrderStatus​(java.lang.String orderId, java.lang.String orderStatus)
      This method updates database entity.
      java.util.Optional<Order> createOrder​(java.util.LinkedHashMap<java.lang.String,​java.lang.Object> orderAsMap)
      This method creates a database entity.
      OrderTimeLineBean getLastOrderTimelineBean​(java.lang.String orderId)
      This method returns bean.
      java.util.Map<java.lang.String,​java.lang.Object> getOrder​(java.lang.String orderId)
      This method returns data as map.
      java.util.List<CommerceItem> getOrderCommerceItems​(java.lang.String orderId)
      This method returns data as list.
      java.util.List<java.util.Map<java.lang.String,​java.lang.Object>> getOrders()
      This method retrieves a map, which can be processed in a templates.
      java.util.List<OrderTimeLineBean> getOrderTimeLine​(java.lang.String orderId)
      This method returns beans as list.
      boolean isOrderBelongToBuyer​(java.lang.String orderId)
      This method checks is database entity belong to other database entity.
      boolean isOrderBelongToVendor​(java.lang.String orderId)
      This method checks is database entity belong to other database entity.
      boolean isOrderCanceled​(java.lang.String orderStatus)
      This method checks is database entity field had some value.
      boolean isOrderCompleted​(java.lang.String orderId)
      This method checks is database entity field had some value.
      boolean isOrderConfirmed​(java.lang.String orderStatus)
      This method checks is database entity field had some value.
      boolean isOrderDenied​(java.lang.String orderStatus)
      This method checks is database entity field had some value.
      boolean isOrderNew​(java.lang.String orderStatus)
      This method checks is database entity field had some value.
      boolean isOrderPerformed​(java.lang.String orderStatus)
      This method checks is database entity field had some value.
      boolean isOrderShow​(java.lang.String orderId, java.lang.String orderStatus)
      This method checks is database entity field had some value.
      void removeOrder​(java.lang.String orderId)
      This method removes database entities.
      void removeOrderFromCommerceItem​(java.lang.String orderId, java.lang.String commerceItemId)
      This method removes relationship between database entities.
      void removeOrderFromCommerceItems​(java.lang.String orderId)
      This method removes relationship between database entities.
    • Method Detail

      • createOrder

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

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

        java.util.Map<java.lang.String,​java.lang.Object> getOrder​(java.lang.String orderId)
        This method returns data as map.
        Parameters:
        orderId - identification for filter and return data
        Returns:
        data as map
      • getOrderCommerceItems

        java.util.List<CommerceItem> getOrderCommerceItems​(java.lang.String orderId)
        This method returns data as list.
        Parameters:
        orderId - identification for database entity which related entities list be returned
        Returns:
        database entities as list
      • changeOrderStatus

        java.util.List<OrderTimeLineBean> changeOrderStatus​(java.lang.String orderId,
                                                            java.lang.String orderStatus)
        This method updates database entity.
        Parameters:
        orderId - identification for database entity which will be updated
        orderStatus - field for database entity which will be updated
        Returns:
        bean as list
      • getOrderTimeLine

        java.util.List<OrderTimeLineBean> getOrderTimeLine​(java.lang.String orderId)
        This method returns beans as list.
        Parameters:
        orderId - identification for database entity which related beans list be returned
        Returns:
        beans as list
      • removeOrder

        void removeOrder​(java.lang.String orderId)
        This method removes database entities.
        Parameters:
        orderId - identification for database entity which will be removed
      • removeOrderFromCommerceItem

        void removeOrderFromCommerceItem​(java.lang.String orderId,
                                         java.lang.String commerceItemId)
        This method removes relationship between database entities.
        Parameters:
        orderId - identification for database entity which will be removed
        commerceItemId - identification for database entity which will be updated
      • removeOrderFromCommerceItems

        void removeOrderFromCommerceItems​(java.lang.String orderId)
        This method removes relationship between database entities.
        Parameters:
        orderId - identification for database entity which will be removed
      • isOrderNew

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

        boolean isOrderShow​(java.lang.String orderId,
                            java.lang.String orderStatus)
        This method checks is database entity field had some value.
        Parameters:
        orderId - identification for database entity which will be find
        orderStatus - field for database entity which will be checked
        Returns:
        value as boolean
      • isOrderConfirmed

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

        boolean isOrderBelongToVendor​(java.lang.String orderId)
        This method checks is database entity belong to other database entity.
        Parameters:
        orderId - identification for database entity which will be checked
        Returns:
        value as boolean
      • isOrderBelongToBuyer

        boolean isOrderBelongToBuyer​(java.lang.String orderId)
        This method checks is database entity belong to other database entity.
        Parameters:
        orderId - identification for database entity which will be checked
        Returns:
        value as boolean
      • isOrderCanceled

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

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

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

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

        OrderTimeLineBean getLastOrderTimelineBean​(java.lang.String orderId)
        This method returns bean.
        Parameters:
        orderId - identification for database entity which found last bean and returned
        Returns:
        bean