Class ShortcutsService


  • public class ShortcutsService
    extends java.lang.Object
    Service for shortcuts widgets and remove shortcuts list action.
    • Constructor Detail

      • ShortcutsService

        public ShortcutsService()
    • Method Detail

      • getAllCollectionList

        public java.util.List<PK> getAllCollectionList​(BackofficeObjectSpecialCollectionModel collectionModel)
        Get all product in the collection
        Parameters:
        collectionModel - for which collectionModel is returned.
        Returns:
        a list of values in the collectionModel.
      • insertProductToCollectionlist

        public void insertProductToCollectionlist​(ProductModel product,
                                                  BackofficeObjectSpecialCollectionModel collectionModel)
        Insert product into the collection.
        Parameters:
        product - for which item is inserted.
        collectionModel - for which collectionModel.
      • deleteProductFromCollectionlist

        public void deleteProductFromCollectionlist​(ProductModel product,
                                                    BackofficeObjectSpecialCollectionModel collectionModel)
        Delete the product from the collection.
        Parameters:
        product - for which item is deleted.
        collectionModel - for which collectionModel.
      • initCollection

        public BackofficeObjectSpecialCollectionModel initCollection​(java.lang.String collectionCode)
        Init the collectionModel.
        Parameters:
        collectionCode - for which collection is generated.
        Returns:
        a generated collectionModel.
      • collectionContainsItem

        public boolean collectionContainsItem​(ProductModel product,
                                              BackofficeObjectSpecialCollectionModel collectionModel)
        Check if the product in the collection.
        Parameters:
        product - for which item is contained.
        collectionModel - for which collection contains.
        Returns:
        if the collection contains the item.
      • setUserService

        public void setUserService​(UserService userService)
      • setModelService

        public void setModelService​(ModelService modelService)
      • setGenericSearchService

        public void setGenericSearchService​(GenericSearchService genericSearchService)
      • setTypeService

        public void setTypeService​(TypeService typeService)