Category operations - script to Java migration
The migration tables list the script operations that map to Category Java™ API methods.
Category
These script operations can be
mapped to the following Category Java API
methods.
Script operation | Java method |
---|---|
Boolean Category::addChildCategory(Category childCategory) | addChild (Category childCategory) |
void
Category::addItemSecondarySpecToCategory (String sSpecName [, Catalog[] ctgs]) |
addItemSecondarySpec
(SecondarySpec spec, boolean addToChildCategories, boolean addAcrossMapping) addItemSecondarySpec (SecondarySpec spec, Catalog[] ctgs, boolean addToChildCategories, boolean addAcrossMapping) |
void
Category::addSecondarySpecToCategory (String sSpecName [, Boolean bAddToPicture]) |
addSecondarySpec (SecondarySpec spec) |
Category[] Category::getCategoryChildren([Boolean ordered, Catalog catalog, Boolean restrictToSubtreeWithItems]) | getChildren()
getChildren ( Catalog catalog, boolean ordered, boolean restrictToSubtreeWithItems) |
String Category::getCategoryCode() | getPrimaryKey() |
Entry::getCheckedOutEntryColAreas() | getCollaborationAreas() |
CategorySet
Category::getDescendentCategorySet ForCategory([Boolean bReadonly]) |
getDescendents() |
String[] Category::getFullPaths([String sDelimiter] [, boolean bWithRootName]) | getFullPaths (String delimiter, boolean
includeRootName) |
Catalog::getItemsInCategory(Category cat, Boolean ordered) | PIMCollection getItems(Catalog catalog)
PIMCollection getItems(Catalog catalog, boolean ordered) |
Spec[]
Category::getItemSecondarySpecs ForCategory([Catalog ctg]) |
getItemSecondarySpecs() |
Integer[] Category::getCategoryLevels() | getLevels() |
Category Category::getCategoryParent([CategoryCache cat_cache]) | getParent() |
Category[] Category::getCategoryParents() | getParents() |
Spec[] Category::getSecondarySpecsForCategory() | getSecondarySpecs() |
Boolean
Category::getCategoryHasChildren() |
hasChildren() |
Entry::isEntryCheckedOut() | isCheckedOut() |
void
Category::mapCategoryToOrganizations (Category[] categories [, boolean bAdd]) |
mapToOrganization(Organization) |
void Category::removeChildCategory(String categoryName) | removeChild(Category) |
void
Category::removeItemSecondary SpecFromCategory (String sSpecName) |
removeItemSecondarySpec (SecondarySpec spec) |
void
Category::removeSecondary SpecFromCategory (String sSpecName) |
removeSecondarySpec (SecondarySpec spec) |
Category::mapCategoryToOrganizations
(Category[] categories [, boolean bAdd]) |
Category::mapToOrganization(Organization org) |