org.activemath.webapp.notes.db
Class Note

java.lang.Object
  extended by org.activemath.webapp.notes.db.Note

public class Note
extends Object


Field Summary
protected static Category log
           
 
Constructor Summary
Note()
           
 
Method Summary
static Note createNote(Map props)
          Create and populate a Note from a Map.
 Date getCreationTime()
           
 int getId()
           
 String getItemId()
           
 String getOwner()
           
 String getText()
           
 String getTitle()
           
 boolean isPublic()
           
 void setCreationTime(Date date)
           
 void setId(int i)
           
 void setItemId(String string)
           
 void setOwner(String string)
           
 void setPublic(boolean b)
           
 void setText(String string)
           
 void setTitle(String title)
           
 Map toMap()
          turn Note into a Map
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected static Category log
Constructor Detail

Note

public Note()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getItemId

public String getItemId()
Returns:

isPublic

public boolean isPublic()
Returns:

getText

public String getText()
Returns:

getId

public int getId()
Returns:

getCreationTime

public Date getCreationTime()
Returns:

getOwner

public String getOwner()
Returns:

setItemId

public void setItemId(String string)
Parameters:
string -

setPublic

public void setPublic(boolean b)
Parameters:
b -

setText

public void setText(String string)
Parameters:
string -

setId

public void setId(int i)
Parameters:
i -

setCreationTime

public void setCreationTime(Date date)
Parameters:
date -

setOwner

public void setOwner(String string)
Parameters:
string -

getTitle

public String getTitle()

setTitle

public void setTitle(String title)

toMap

public Map toMap()
turn Note into a Map


createNote

public static Note createNote(Map props)
Create and populate a Note from a Map. CreationTime is ignored from Map and will be set to current time.

Returns:
New node, or null on error.