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.


Method Summary
 com.ibm.mashups.enabler.catalog.CatalogEntryModel getCatalogEntryModel(CatalogCategoryNode category)
           Returns the catalog entry model for the given category.
 CatalogCategoryNode create(JSON context)
           creates a new CatalogCategoryNode.
 DeferredOperation commit()
           Commits the modifications applied to this model and all dependent models.
 
Methods inherited from interface com.ibm.mashups.enabler.TreeModelController
create, confirmCreate, insert, confirmInsert, remove, confirmRemove
 
Methods inherited from interface com.ibm.mashups.enabler.TreeModel
getRoot, hasChildren, getChildren, getParent
 
Methods inherited from interface com.ibm.mashups.enabler.model.Model
setStrategy, getStrategies, getStrategy, addStrategy, removeStrategy
 
Methods inherited from interface com.ibm.mashups.enabler.Locator
find
 

Method Detail

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.