Interface DataManagerService

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Category addChildCategory​(java.lang.String parentId, java.lang.String childId)
      This method adds child entity in parent entity.
      Product addProductToCategory​(java.lang.String categoryId, java.lang.String productId)
      This method adds relationship between entities.
      Category createCategory​(java.util.LinkedHashMap<java.lang.String,​java.lang.Object> data)
      This method creates a database entity.
      void deleteCategories​(java.util.ArrayList<java.lang.String> categoryIds)
      This method removes database entity with child database entity.
      void deleteCategory​(java.lang.String categoryId)
      This method removes database entity with child database entity.
      void removeChildCategory​(java.lang.String parentId, java.lang.String childId)
      This method deletes child entity in parent entity.
      void removeProductFromCategory​(java.lang.String categoryId, java.lang.String productId)
      This method deletes a relationship between entities.
      void updateCategory​(java.util.LinkedHashMap<java.lang.String,​java.lang.Object> data)
      This method does update for category based on proxy object
    • Method Detail

      • createCategory

        Category createCategory​(java.util.LinkedHashMap<java.lang.String,​java.lang.Object> data)
        This method creates a database entity.
        Parameters:
        data - map-representation of database entity
        Returns:
        optional value to externally interaction
      • deleteCategory

        void deleteCategory​(java.lang.String categoryId)
        This method removes database entity with child database entity.
        Parameters:
        categoryId - identification for database entity which will be removed and whose parent dependency will be removed
      • deleteCategories

        void deleteCategories​(java.util.ArrayList<java.lang.String> categoryIds)
        This method removes database entity with child database entity.
        Parameters:
        categoryIds - the list of identification for database entities which will be removed and whose parent dependency will be removed
      • updateCategory

        void updateCategory​(java.util.LinkedHashMap<java.lang.String,​java.lang.Object> data)
        This method does update for category based on proxy object
        Parameters:
        data - the data transfer object as a map-representation to update the category object
      • addProductToCategory

        Product addProductToCategory​(java.lang.String categoryId,
                                     java.lang.String productId)
        This method adds relationship between entities.
        Parameters:
        categoryId - identification for database entity which will be updated
        productId - identification for database entity which will be updated
        Returns:
        database entity
      • addChildCategory

        Category addChildCategory​(java.lang.String parentId,
                                  java.lang.String childId)
        This method adds child entity in parent entity.
        Parameters:
        parentId - identification for database entity which will be updated
        childId - identification for database entity which will be added in parent database entity
        Returns:
        database entity
      • removeProductFromCategory

        void removeProductFromCategory​(java.lang.String categoryId,
                                       java.lang.String productId)
        This method deletes a relationship between entities.
        Parameters:
        categoryId - identification for database entity which will be updated
        productId - identification for database entity which will be updated
      • removeChildCategory

        void removeChildCategory​(java.lang.String parentId,
                                 java.lang.String childId)
        This method deletes child entity in parent entity.
        Parameters:
        parentId - identification for database entity which will be updated
        childId - identification for database entity which will be added in parent database entity