public class CatalogTools
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ERROR |
static java.lang.String |
SOURCE |
| Constructor and Description |
|---|
CatalogTools() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Collection |
copyAllCategories(CatalogVersion oldCV,
CatalogVersion newCV)
Copies categories
|
static java.util.Collection |
copyAllKeywords(CatalogVersion oldCV,
CatalogVersion newCV)
Copies keywords
|
static java.util.Collection |
copyAllMedias(CatalogVersion oldCV,
CatalogVersion newCV)
Copies media
|
static java.util.Collection |
copyAllProducts(CatalogVersion oldCV,
CatalogVersion newCV)
Copies products
|
static Category |
copyCategory(Category oldCat,
CatalogVersion newCV)
Copies a Catgeory
|
static java.util.Collection |
copyItems(java.util.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(java.lang.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 java.lang.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 java.util.Collection copyAllProducts(CatalogVersion oldCV, CatalogVersion newCV)
oldCV - old catalog versionnewCV - new catalog versionpublic static java.util.Collection copyAllCategories(CatalogVersion oldCV, CatalogVersion newCV)
oldCV - old catalog versionnewCV - new catalog versionpublic static java.util.Collection copyAllKeywords(CatalogVersion oldCV, CatalogVersion newCV)
oldCV - old catalog versionnewCV - new catalog versionpublic static java.util.Collection copyAllMedias(CatalogVersion oldCV, CatalogVersion newCV)
oldCV - old catalog versionnewCV - new catalog versionpublic static SearchResult getCatalogVersionItems(java.lang.Class itemclass, CatalogVersion catalogVersion, int start, int count)
itemclass - the item classcatalogVersion - catalog versionstart - the range startcount - the range countpublic static java.util.Collection copyItems(java.util.Collection items,
CatalogVersion newCV)
items - collection with itemsnewCV - new catalog versionCopyright © 2018 SAP SE. All Rights Reserved.