org.kuali.rice.kew.api.note
Class Note.Builder
java.lang.Object
org.kuali.rice.kew.api.note.Note.Builder
- All Implemented Interfaces:
- Serializable, org.kuali.rice.core.api.mo.common.Identifiable, org.kuali.rice.core.api.mo.common.Versioned, org.kuali.rice.core.api.mo.ModelBuilder, NoteContract
- Enclosing class:
- Note
public static final class Note.Builder
- extends Object
- implements Serializable, org.kuali.rice.core.api.mo.ModelBuilder, NoteContract
A builder which can be used to construct Note
instances. Enforces the constraints of the NoteContract
.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
create
public static Note.Builder create(String documentId,
String authorPrincipalId)
create
public static Note.Builder create(NoteContract contract)
build
public Note build()
- Specified by:
build
in interface org.kuali.rice.core.api.mo.ModelBuilder
getId
public String getId()
- Specified by:
getId
in interface org.kuali.rice.core.api.mo.common.Identifiable
getDocumentId
public String getDocumentId()
- Specified by:
getDocumentId
in interface NoteContract
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
getVersionNumber
public Long getVersionNumber()
- Specified by:
getVersionNumber
in interface org.kuali.rice.core.api.mo.common.Versioned
setId
public void setId(String id)
setDocumentId
public void setDocumentId(String documentId)
setAuthorPrincipalId
public void setAuthorPrincipalId(String authorPrincipalId)
setCreateDate
public void setCreateDate(org.joda.time.DateTime createDate)
setText
public void setText(String text)
setVersionNumber
public void setVersionNumber(Long versionNumber)
Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.