com.ibm.mashups.enabler.model
Interface CatalogCategoryModel
- All Superinterfaces:
- Locator, Model, TreeModel, TreeModelController
public CatalogCategoryModel
- extends TreeModelController
Interface for a catalog model containing category nodes. This tree model describes the topology in which the categories are structured. As of now only one level below the root is supported; no child categories.
Methods inherited from interface com.ibm.mashups.enabler.Locator |
find |
getCatalogEntryModel
com.ibm.mashups.enabler.catalog.CatalogEntryModel getCatalogEntryModel(CatalogCategoryNode category)
-
Returns the catalog entry model for the given category.
- Parameters:
category
-
the CatalogCategoryNode for which to return the CatalogEntryModel; must not be null
- Returns:
-
catalog entry model for given category, Never
null
.
create
CatalogCategoryNode create(JSON context)
-
creates a new CatalogCategoryNode. The created node can be inserted into the model using an appropriate
insert
method. The node will not appear in the model unless it is inserted.
- Parameters:
context
-
array of predefined information used for the creation of the node. May be null
. Accepted names are:
category
- the name of the category to be created (mandatory)
- Returns:
-
the created node
commit
DeferredOperation commit()
-
Commits the modifications applied to this model and all dependent models.
- Returns:
-
a deferred object used to start this operation. The return value when executed through the deferred object is
null
Copyright IBM Corp. 2010 All Rights Reserved.