Package org.kuali.rice.kew.api.note
Class Note.Builder
java.lang.Object
org.kuali.rice.kew.api.note.Note.Builder
- All Implemented Interfaces:
Serializable,Identifiable,Versioned,ModelBuilder,NoteContract
- Enclosing class:
- Note
public static final class Note.Builder
extends Object
implements Serializable, ModelBuilder, NoteContract
A builder which can be used to construct
Note instances. Enforces the constraints of the NoteContract.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()static Note.Builderstatic Note.Buildercreate(NoteContract contract) org.joda.time.DateTimegetId()getText()voidsetAuthorPrincipalId(String authorPrincipalId) voidsetCreateDate(org.joda.time.DateTime createDate) voidsetDocumentId(String documentId) voidvoidvoidsetVersionNumber(Long versionNumber)
-
Method Details
-
create
-
create
-
build
- Specified by:
buildin interfaceModelBuilder
-
getId
- Specified by:
getIdin interfaceIdentifiable
-
getDocumentId
- Specified by:
getDocumentIdin interfaceNoteContract
-
getAuthorPrincipalId
- Specified by:
getAuthorPrincipalIdin interfaceNoteContract
-
getCreateDate
public org.joda.time.DateTime getCreateDate()- Specified by:
getCreateDatein interfaceNoteContract
-
getText
- Specified by:
getTextin interfaceNoteContract
-
getVersionNumber
- Specified by:
getVersionNumberin interfaceVersioned
-
setId
-
setDocumentId
-
setAuthorPrincipalId
-
setCreateDate
public void setCreateDate(org.joda.time.DateTime createDate) -
setText
-
setVersionNumber
-