public class CatalogTools extends Object
| Constructor and Description |
|---|
CatalogTools() |
| Modifier and Type | Method and Description |
|---|---|
static Collection |
copyAllCategories(CatalogVersion oldCV,
CatalogVersion newCV)
Copies categories
|
static Collection |
copyAllKeywords(CatalogVersion oldCV,
CatalogVersion newCV)
Copies keywords
|
static Collection |
copyAllMedias(CatalogVersion oldCV,
CatalogVersion newCV)
Copies media
|
static Collection |
copyAllProducts(CatalogVersion oldCV,
CatalogVersion newCV)
Copies products
|
static Category |
copyCategory(Category oldCat,
CatalogVersion newCV)
Copies a Catgeory
|
static Collection |
copyItems(Collection items,
CatalogVersion newCV) |
static Keyword |
copyKeyword(Keyword oldKeywrd,
CatalogVersion newCV)
Copies a keyword
|
static Media |
copyMedia(Media oldMedia,
CatalogVersion newCV)
Copies a media
|
static Product |
copyProduct(Product oldProd,
CatalogVersion newCV)
Copies a product and assigning it to the given catalog version
|
static SearchResult |
getCatalogVersionItems(Class itemclass,
CatalogVersion catalogVersion,
int start,
int count)
Returns items of specified type which belong to a given catalog version
|
public static final int ERROR
public static final String SOURCE
public static Product copyProduct(Product oldProd, CatalogVersion newCV)
oldProd - old productnewCV - new catalog versionpublic static Keyword copyKeyword(Keyword oldKeywrd, CatalogVersion newCV)
oldKeywrd - old keywordnewCV - new catalog versionpublic static Media copyMedia(Media oldMedia, CatalogVersion newCV)
oldMedia - old medianewCV - new catalog versionpublic static Category copyCategory(Category oldCat, CatalogVersion newCV)
oldCat - old category versionnewCV - new catalog versionpublic static Collection copyAllProducts(CatalogVersion oldCV, CatalogVersion newCV)
oldCV - old catalog versionnewCV - new catalog versionpublic static Collection copyAllCategories(CatalogVersion oldCV, CatalogVersion newCV)
oldCV - old catalog versionnewCV - new catalog versionpublic static Collection copyAllKeywords(CatalogVersion oldCV, CatalogVersion newCV)
oldCV - old catalog versionnewCV - new catalog versionpublic static Collection copyAllMedias(CatalogVersion oldCV, CatalogVersion newCV)
oldCV - old catalog versionnewCV - new catalog versionpublic static SearchResult getCatalogVersionItems(Class itemclass, CatalogVersion catalogVersion, int start, int count)
itemclass - the item classcatalogVersion - catalog versionstart - the range startcount - the range countpublic static Collection copyItems(Collection items, CatalogVersion newCV)
items - collection with itemsnewCV - new catalog versionCopyright © 2017 SAP SE. All Rights Reserved.