Class ShortcutsService
java.lang.Object
de.hybris.platform.pcmbackoffice.services.ShortcutsService
Service for shortcuts widgets and remove shortcuts list action.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancollectionContainsItem(ProductModel product, BackofficeObjectSpecialCollectionModel collectionModel) Check if the product in the collection.voiddeleteProductFromCollectionlist(ProductModel product, BackofficeObjectSpecialCollectionModel collectionModel) Delete the product from the collection.getAllCollectionList(BackofficeObjectSpecialCollectionModel collectionModel) Get all product in the collectioninitCollection(String collectionCode) Init the collectionModel.voidinsertProductToCollectionlist(ProductModel product, BackofficeObjectSpecialCollectionModel collectionModel) Insert product into the collection.voidsetGenericSearchService(GenericSearchService genericSearchService) voidsetModelService(ModelService modelService) voidsetTypeService(TypeService typeService) voidsetUserService(UserService userService)
-
Constructor Details
-
ShortcutsService
public ShortcutsService()
-
-
Method Details
-
getAllCollectionList
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
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.
-
getUserService
-
setUserService
-
getModelService
-
setModelService
-
getGenericSearchService
-
setGenericSearchService
-
getTypeService
-
setTypeService
-