org.activemath.content
Class UserBook
java.lang.Object
org.activemath.content.Book
org.activemath.content.UserBook
- All Implemented Interfaces:
- Comparable
- Direct Known Subclasses:
- GapDetectionBook
public class UserBook
- extends Book
A user-generated book.
| 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()
|
| 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 |
userId
protected String userId
scenario
protected String scenario
accessTime
protected long accessTime
creationTime
protected long creationTime
goals
protected List<String> goals
UserBook
protected UserBook()
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