org.activemath.webapp.notes
Class NotesManager
java.lang.Object
org.activemath.webapp.notes.NotesManager
public class NotesManager
- extends Object
|
Field Summary |
protected static Logger |
log
The logger for this class |
|
Method Summary |
Note |
create(String owner,
boolean isPublic,
String text,
String itemId)
for compatiblity |
Note |
create(String owner,
boolean isPublic,
String title,
String text,
String itemId)
|
void |
delete(String owner,
int id)
|
Note |
edit(String owner,
int id)
|
static NotesManager |
getInstance()
|
int |
getNumNotes(String itemId,
String owner)
A way to determine if there are any notes available for a given item and user |
List |
list(String owner,
String itemId)
|
Note |
retrieve(String owner,
int id)
|
Note |
save(Note noteToSave)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static Logger log
- The logger for this class
getInstance
public static NotesManager getInstance()
list
public List list(String owner,
String itemId)
retrieve
public Note retrieve(String owner,
int id)
create
public Note create(String owner,
boolean isPublic,
String title,
String text,
String itemId)
create
public Note create(String owner,
boolean isPublic,
String text,
String itemId)
- for compatiblity
edit
public Note edit(String owner,
int id)
save
public Note save(Note noteToSave)
delete
public void delete(String owner,
int id)
getNumNotes
public int getNumNotes(String itemId,
String owner)
- A way to determine if there are any notes available for a given item and user
- Parameters:
itemId - owner -
- Returns: