org.activemath.webapp.view.tools
Class MBaseTool

java.lang.Object
  extended by org.activemath.webapp.view.tools.MBaseTool

public class MBaseTool
extends Object

View tool for accessing ContentManager and MBase.

Version:
$$Revision: 1.3 $$

Field Summary
protected static Category log
           
 
Constructor Summary
MBaseTool(Map model)
           
 
Method Summary
 Collection getCollections()
           
 ContentManager getContentManager()
           
 Collection getDependsOn(String id)
          Get "depends-on" dependencies for an item.
 Item getItem(String id)
          Return a content item
 Collection getRelatedTo(String id)
          Get "related-to" dependencies for an item.
 boolean getSupportsFuzzySearch()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static Category log
Constructor Detail

MBaseTool

public MBaseTool(Map model)
          throws MBaseException
Throws:
MBaseException
Method Detail

getContentManager

public ContentManager getContentManager()

getCollections

public Collection getCollections()

getItem

public Item getItem(String id)
Return a content item

Parameters:
id - of item
Returns:
instantiated Item, or null.

getDependsOn

public Collection getDependsOn(String id)
Get "depends-on" dependencies for an item.

Returns:
collection of DependencyBeans, or null.

getRelatedTo

public Collection getRelatedTo(String id)
Get "related-to" dependencies for an item.

Returns:
collection of DependencyBeans, or null.

getSupportsFuzzySearch

public boolean getSupportsFuzzySearch()