|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.content.ContentManager
public class ContentManager
Content Manager Singleton Handle all sorts of content Items, their creation and caching.
| Field Summary | |
|---|---|
protected static Logger |
log
|
| Method Summary | |
|---|---|
void |
addDynamicItem(String id,
DynamicItem item)
Register a dynamic item with the ContentManager. |
String |
getAssociatedTutorBook(UserBook userBook)
|
CollabSessions |
getCollabSessions()
|
ContentCollection |
getCollection(String collectionId)
Return a specific collection |
List<ContentCollection> |
getCollections()
Return a list of available Collections. |
Item |
getContentItem(MBaseID mbaseId)
Deprecated. use getContentItem(String). |
Item |
getContentItem(String id)
Fetch any content item, possibly cached. |
List |
getContentItems(Iterator it)
|
List |
getContentItems(List ids)
Fetch a list of content items (possibly cached) |
DynamicItem |
getDynamicItem(String id)
Fetch a dynamic item. |
Grouping |
getGrouping(String groupingId)
Return a specific grouping |
List<Grouping> |
getGroupings()
Return a list of available Groupings. |
static ContentManager |
getInstance()
|
Mediator |
getMediator()
|
int |
getNextUserBookId()
|
int |
getNumExercises(String bookId)
|
RecBook |
getRecBook(String recBookKey)
Return a recorded Book. |
RecBook |
getRecBookByMbaseId(String mbaseId)
|
List<Book> |
getRecBooks()
|
Map<String,RecBook> |
getRecBooksMap()
|
HashMap<String,List<String>> |
getStructuredCollectionItems(ContentCollection coll)
Deprecated. use ContentCollection.getStructuredItems() |
String |
getTypeString(String mbaseId)
|
void |
initContent()
Causes RecBooks and Groupings to be read from configuration and (re-)initialized. |
void |
onActivemathEvent(ActivemathEvent event)
Event handler for ContentManager. |
Book |
publishBook(UserBook userBook)
Publish a user book, making it a "TutorBook". |
List |
query_WithoutCache(String queryString)
The same as query_, but does not use the MediatorCache. |
List |
query(String queryString)
The new Mediator call. |
void |
removeDynamicItem(String id)
Remove a dynamic item from the ContentManager. |
void |
unpublishBook(String bookId)
Remove a published book |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static Logger log
| Method Detail |
|---|
public CollabSessions getCollabSessions()
public static ContentManager getInstance()
public void initContent()
public List query(String queryString)
queryString -
null on error.public List query_WithoutCache(String queryString)
queryString -
public void onActivemathEvent(ActivemathEvent event)
onActivemathEvent in interface ActivemathEventListenerevent - the event to respond topublic String getTypeString(String mbaseId)
mbaseId - The absolute MBase ID of the item
public RecBook getRecBook(String recBookKey)
recBookKey -
public List<Book> getRecBooks()
public RecBook getRecBookByMbaseId(String mbaseId)
public Item getContentItem(String id)
getDynamicItem()
loadContentItem().
id - - id of the content item (assumed to be in absolute form)
null
IllegalArgumentException - if id is null.public Item getContentItem(MBaseID mbaseId)
getContentItem(String).
public List getContentItems(List ids)
it - - List of mbaseIds (type String or MBaseID) of the content items
public List getContentItems(Iterator it)
public DynamicItem getDynamicItem(String id)
id -
null if item does not exist.
public void addDynamicItem(String id,
DynamicItem item)
public void removeDynamicItem(String id)
public List<Grouping> getGroupings()
public Grouping getGrouping(String groupingId)
groupingId, or null.public List<ContentCollection> getCollections()
public ContentCollection getCollection(String collectionId)
collectionId, or null.public Book publishBook(UserBook userBook)
public String getAssociatedTutorBook(UserBook userBook)
null.public void unpublishBook(String bookId)
public Mediator getMediator()
public Map<String,RecBook> getRecBooksMap()
public int getNextUserBookId()
public int getNumExercises(String bookId)
public HashMap<String,List<String>> getStructuredCollectionItems(ContentCollection coll)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||