Hierarchy operations - script to Java migration
The migration tables list the script operations that map to Hierarchy Java™ API methods.
Hierarchy
These script operations can be
mapped to the following Hierarchy Java API
methods.
Script operation | Java method |
---|---|
new Category(CategoryTree ctr,
String path, [String delimiter], [String primaryKey]) Category CategoryTree::buildCategory (String path, [String delimiter], [String primaryKey]) |
createCategory(String parentCategoryPath,
String delimiter, String pathValue) createCategory(String parentCategoryPath, String delimiter, String pathValue, String primaryKeyValue) |
ValidationError[] deleteCategoryTree(CategoryTree ctr) | deleteAsynchronous() |
CategorySet CategoryTree::getCategorySet([Boolean bReadonly]) | getCategories() |
CategorySet
CategoryTree::getCategorySet ByAttributeValue (String attribPath, Object attribValue [, Boolean bReadOnly]) |
getCategoriesWithAttributeValue
(String attributeInstancePath, Object attributeValue) |
CategorySet
CategoryTree::getCategorySet ByItemSecondary Spec(String specName) |
getCategoriesByItemSecondarySpec (SecondarySpec spec) |
CategorySet
CategoryTree::getCategorySetByLevel (Integer level [, Boolean bReadOnly]) |
getCategoriesAtLevel(int level) |
CategorySet
CategoryTree::getCategorySetByFull NamePath(String[] fullNamePaths, |
getCategoriesByPaths(
Collection<String> fullNamePaths) getCategoriesByPath( Collection<String> fullNamePaths, String delimiter) |
CategorySet
CategoryTree::getCategorySetByPrimaryKey (String primaryKey [, Boolean bReadOnly]) |
getCategoryByPrimaryKey() |
CategorySet
CategoryTree::getCategorySetByStand AloneSpec(String specName) |
getCategoriesByStandaloneSpec (Spec spec) |
Category CategoryTree::getCategoryByPath(String sNamePath, String sDelim [, boolean bLight, boolean bReadOnly]) | getCategoryByPath(String path)
getCategoryByPath(String path, String delimiter) |
getEntryByPrimaryKey | getCategoryByPrimaryKey (String primaryKey) |
Boolean
Container::isEntryCheckedOutForPrimary Key(String sPrimaryKey) |
isCategoryCheckedOut() |
String CategoryTree::getCategoryTreeName() | getName() |
Spec CategoryTree::getCategoryTreeSpec() | getPrimarySpec() |
ValidationError[] CategoryTree::saveCategoryTree() | save() |
UserDefinedLog Container::newUserDefinedLog(String name, String description, Boolean isRunningLog) | Hierarchy.createUserDefinedLog(String name, boolean runningLog) |
Container::getUserDefinedLog(String name) | Hierarchy.getUserDefinedLog(String name) |
Hierarchy Manager
These script operations
can be mapped to the following Hierarchy Manager Java API methods.
Script operation | Java method |
---|---|
CategoryTree new CategoryTree(Spec spec,
String name [, HashMap optionalArgs]) |
createHierarchy (PrimarySpec spec,
String name) createHierarchy (PrimarySpec spec, String name, SpecNode pathAttribute) createHierarchy(PrimarySpec spec, String name, SpecNode pathAttribute, AccessControlGroup accessControlGroup, SpecNode displayAttribute) OrganizationManager:: createOrganizationHierarchy (PrimarySpec spec, String name) OrganizationManager::create OrganizationHierarchy(PrimarySpec spec, String name, SpecNode pathAttribute, AccessControlGroup accessControlGroup, SpecNode displayAttribute) |
String ::getDefaultLktHierarchyName() | Company::getDefaultLookup
TableHierarchy() |
String ::getDefaultOrgHierarchyName() | Company::getDefaultOrganizationHierarchy |
CategoryTreeMap getCategoryTreeMap(CategoryTree ctr1, CategoryTree ctr2) | getHierarchyMap (Hierarchy hierarchy1, Hierarchy hierarchy2) |
HierarchyMap
These script operations can
be mapped to the following HierarchyMap Java API
methods.
Script operation | Java method |
---|---|
void
CategoryTreeMap::addCategory TreeMapping (Category cat1, Category cat2) |
addMapping Category sourceCategory, Category destinationCategory) |
void
CategoryTreeMap::removeCategory TreeMapping (Category cat1, Category cat2) |
removeMapping Category sourceCategory, Category destinationCategory) |
saveCategoryTreeMap() | save() |