org.activemath.content
Class UserBook

java.lang.Object
  extended by org.activemath.content.Book
      extended by org.activemath.content.UserBook
All Implemented Interfaces:
Comparable
Direct Known Subclasses:
GapDetectionBook

public class UserBook
extends Book

A user-generated book.


Field Summary
protected  long accessTime
           
protected  long creationTime
           
protected  List<String> goals
           
protected  String scenario
           
protected  String userId
           
 
Fields inherited from class org.activemath.content.Book
allInstanciatedItems, creator, document, id, internalId, item2pages, log, metadata, pages, title, titles, toc, xml, zeroPage
 
Constructor Summary
protected UserBook()
           
 
Method Summary
 void access()
           
protected  Page buildZeroPage()
           
 long getAccessTime()
           
 long getCreationTime()
           
 String getDescription()
           
 List<String> getGoals()
           
 String getScenario()
           
 String getUserId()
           
 boolean isTutorBook()
           
 boolean isUserBook()
           
 void setAccessTime(long time)
           
 void setCreationTime(long time)
           
 void setDescription(String value)
           
 void setGoals(List<String> list)
           
 void setScenario(String value)
           
 void setUserId(String id)
          User id may be changed for visitor users.
 String toString()
           
 
Methods inherited from class org.activemath.content.Book
buildPages, buildPages0, buildZeroPage, compareTo, containsDynamicItem, createBook, createBook, createBook, createGapDetectionBook, createTutorBook, equals, getAllInstanciatedItems, getAllMBaseIDs, getCollectionId, getComparator, getCreator, getDescription, getDescriptions, getDocument, getDocumentString, getId, getInternalId, getMetadata, getNumExercises, getNumItems, getOwner, getOwnerBookId, getPage, getPage, getPages, getPagesContaining, getTitle, getTitle, getTitle, getTitle, getTitle, getTitleMap, getToc, getTocEntry, getTocEntryByPage, hashCode, setCreator, setDescription, setDescriptions, setDocument, setDocumentString, setInternalId, setNumExercises, setTitle, setTitle, setTitleMap
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

userId

protected String userId

scenario

protected String scenario

accessTime

protected long accessTime

creationTime

protected long creationTime

goals

protected List<String> goals
Constructor Detail

UserBook

protected UserBook()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

buildZeroPage

protected Page buildZeroPage()
Overrides:
buildZeroPage in class Book

setUserId

public void setUserId(String id)
User id may be changed for visitor users.

Parameters:
id - The user id to set.

getUserId

public String getUserId()

access

public void access()

getAccessTime

public long getAccessTime()

getCreationTime

public long getCreationTime()

setAccessTime

public void setAccessTime(long time)

setCreationTime

public void setCreationTime(long time)

getScenario

public String getScenario()

setScenario

public void setScenario(String value)

setDescription

public void setDescription(String value)

getDescription

public String getDescription()

getGoals

public List<String> getGoals()
Returns:
List of Strings (MBase ids)

setGoals

public void setGoals(List<String> list)
Parameters:
list - of Strings (MBase ids)

isTutorBook

public boolean isTutorBook()
Overrides:
isTutorBook in class Book

isUserBook

public boolean isUserBook()
Overrides:
isUserBook in class Book