org.kuali.rice.kew.notes
Class Note

java.lang.Object
  extended by org.kuali.rice.kew.notes.Note
All Implemented Interfaces:
Serializable, Identifiable, Versioned, NoteContract

@Entity(name="org.kuali.rice.kew.notes.Note")
public class Note
extends Object
implements Serializable, NoteContract

A note attached to a document. May also contain a List of attachments.

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Attachment, Serialized Form

Field Summary
private  List<Attachment> attachments
           
private  Boolean authorizedToEdit
           
private  String documentId
           
private  Boolean editingNote
           
private  Integer lockVerNbr
           
private  String noteAuthorEmailAddress
           
private  String noteAuthorFullName
           
private  String noteAuthorNetworkId
           
private  String noteAuthorWorkflowId
           
private  Timestamp noteCreateDate
           
private  Long noteCreateLongDate
           
private  String noteId
           
private  String noteText
           
private static long serialVersionUID
           
 
Constructor Summary
Note()
           
 
Method Summary
 void beforeInsert()
           
static Note from(Note note)
           
 List<Attachment> getAttachments()
           
 Boolean getAuthorizedToEdit()
           
 String getAuthorPrincipalId()
           
 org.joda.time.DateTime getCreateDate()
           
 String getDocumentId()
           
 Boolean getEditingNote()
           
 String getFormattedCreateDate()
           
 String getFormattedCreateDateTime()
           
 String getFormattedCreateTime()
           
 String getId()
          The unique identifier for an object.
 Integer getLockVerNbr()
           
 String getNoteAuthorEmailAddress()
           
 String getNoteAuthorFullName()
           
 String getNoteAuthorNetworkId()
           
 String getNoteAuthorWorkflowId()
           
 Timestamp getNoteCreateDate()
           
 Long getNoteCreateLongDate()
           
 String getNoteId()
           
 String getNoteText()
           
 String getText()
           
 Long getVersionNumber()
          Returns the version number for this object.
 void setAttachments(List<Attachment> attachments)
           
 void setAuthorizedToEdit(Boolean authorizedToEdit)
           
 void setDocumentId(String documentId)
           
 void setEditingNote(Boolean editingNote)
           
 void setLockVerNbr(Integer lockVerNbr)
           
 void setNoteAuthorEmailAddress(String noteAuthorEmailAddress)
           
 void setNoteAuthorFullName(String noteAuthorFullName)
           
 void setNoteAuthorNetworkId(String noteAuthorNetworkId)
           
 void setNoteAuthorWorkflowId(String noteAuthorWorkflowId)
           
 void setNoteCreateDate(Timestamp noteCreateDate)
           
 void setNoteCreateLongDate(Long noteCreateLongDate)
           
 void setNoteId(String noteId)
           
 void setNoteText(String noteText)
           
static Note to(Note note)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

noteId

private String noteId

documentId

private String documentId

noteAuthorWorkflowId

private String noteAuthorWorkflowId

noteCreateDate

private Timestamp noteCreateDate

noteText

private String noteText

lockVerNbr

private Integer lockVerNbr

attachments

private List<Attachment> attachments

noteAuthorEmailAddress

private String noteAuthorEmailAddress

noteAuthorNetworkId

private String noteAuthorNetworkId

noteAuthorFullName

private String noteAuthorFullName

noteCreateLongDate

private Long noteCreateLongDate

authorizedToEdit

private Boolean authorizedToEdit

editingNote

private Boolean editingNote
Constructor Detail

Note

public Note()
Method Detail

getLockVerNbr

public Integer getLockVerNbr()

setLockVerNbr

public void setLockVerNbr(Integer lockVerNbr)

getNoteAuthorWorkflowId

public String getNoteAuthorWorkflowId()

setNoteAuthorWorkflowId

public void setNoteAuthorWorkflowId(String noteAuthorWorkflowId)

getNoteCreateDate

public Timestamp getNoteCreateDate()

setNoteCreateDate

public void setNoteCreateDate(Timestamp noteCreateDate)

getNoteId

public String getNoteId()

setNoteId

public void setNoteId(String noteId)

getNoteText

public String getNoteText()

setNoteText

public void setNoteText(String noteText)

getDocumentId

public String getDocumentId()
Specified by:
getDocumentId in interface NoteContract

setDocumentId

public void setDocumentId(String documentId)

getNoteAuthorEmailAddress

public String getNoteAuthorEmailAddress()

setNoteAuthorEmailAddress

public void setNoteAuthorEmailAddress(String noteAuthorEmailAddress)

getNoteAuthorFullName

public String getNoteAuthorFullName()

setNoteAuthorFullName

public void setNoteAuthorFullName(String noteAuthorFullName)

getNoteAuthorNetworkId

public String getNoteAuthorNetworkId()

setNoteAuthorNetworkId

public void setNoteAuthorNetworkId(String noteAuthorNetworkId)

getNoteCreateLongDate

public Long getNoteCreateLongDate()

setNoteCreateLongDate

public void setNoteCreateLongDate(Long noteCreateLongDate)

getAuthorizedToEdit

public Boolean getAuthorizedToEdit()

setAuthorizedToEdit

public void setAuthorizedToEdit(Boolean authorizedToEdit)

getEditingNote

public Boolean getEditingNote()

setEditingNote

public void setEditingNote(Boolean editingNote)

getFormattedCreateDateTime

public String getFormattedCreateDateTime()

getFormattedCreateDate

public String getFormattedCreateDate()

getFormattedCreateTime

public String getFormattedCreateTime()

getAttachments

public List<Attachment> getAttachments()

setAttachments

public void setAttachments(List<Attachment> attachments)

beforeInsert

public void beforeInsert()

getId

public String getId()
Description copied from interface: Identifiable
The unique identifier for an object. This can be null.

Specified by:
getId in interface Identifiable
Returns:
the id

getVersionNumber

public Long getVersionNumber()
Description copied from interface: Versioned
Returns the version number for this object. In general, this value should only be null if the object has not yet been stored to a persistent data store. This version number is generally used for the purposes of optimistic locking.

Specified by:
getVersionNumber in interface Versioned
Returns:
the version number, or null if one has not been assigned yet

getAuthorPrincipalId

public String getAuthorPrincipalId()
Specified by:
getAuthorPrincipalId in interface NoteContract

getCreateDate

public org.joda.time.DateTime getCreateDate()
Specified by:
getCreateDate in interface NoteContract

getText

public String getText()
Specified by:
getText in interface NoteContract

to

public static Note to(Note note)

from

public static Note from(Note note)


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.