Class NoteLogResponse
- java.lang.Object
-
- org.odpi.openmetadata.commonservices.ffdc.rest.FFDCResponseBase
-
- org.odpi.openmetadata.commonservices.ocf.metadatamanagement.rest.OCFOMASAPIResponse
-
- org.odpi.openmetadata.commonservices.ocf.metadatamanagement.rest.NoteLogResponse
-
- All Implemented Interfaces:
Serializable,FFDCResponse
public class NoteLogResponse extends OCFOMASAPIResponse
NoteLogResponse is the response structure used on the OMAS REST API calls that returns a NoteLogHeader object as a response. It returns details of the note log, the first few notes and the total count of the notes within it.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NoteLogResponse()Default constructorNoteLogResponse(NoteLogResponse template)Copy/clone constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Return comparison result based on the content of the properties.intgetNoteCount()Return the count of the notes within the note log.NoteLogHeadergetNoteLog()Return the note log properties.List<Note>getNotes()Return the notes in the note log.inthashCode()Return hash code for this objectvoidsetNoteCount(int noteCount)Set up the count of notes within the note log.voidsetNoteLog(NoteLogHeader noteLog)Set up the not log properties.voidsetNotes(List<Note> notes)Set up the list of notes from the note log.StringtoString()JSON-style toString-
Methods inherited from class org.odpi.openmetadata.commonservices.ffdc.rest.FFDCResponseBase
getActionDescription, getExceptionCausedBy, getExceptionClassName, getExceptionErrorMessage, getExceptionErrorMessageId, getExceptionErrorMessageParameters, getExceptionProperties, getExceptionSystemAction, getExceptionUserAction, getRelatedHTTPCode, setActionDescription, setExceptionCausedBy, setExceptionClassName, setExceptionErrorMessage, setExceptionErrorMessageId, setExceptionErrorMessageParameters, setExceptionProperties, setExceptionSystemAction, setExceptionUserAction, setRelatedHTTPCode
-
-
-
-
Constructor Detail
-
NoteLogResponse
public NoteLogResponse()
Default constructor
-
NoteLogResponse
public NoteLogResponse(NoteLogResponse template)
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Detail
-
getNoteLog
public NoteLogHeader getNoteLog()
Return the note log properties.- Returns:
- note log bean
-
setNoteLog
public void setNoteLog(NoteLogHeader noteLog)
Set up the not log properties.- Parameters:
noteLog- bean
-
setNotes
public void setNotes(List<Note> notes)
Set up the list of notes from the note log. If there are too many notes to return on a single call, the starting element number for the notes returned in this response are- Parameters:
notes- list of notes
-
getNoteCount
public int getNoteCount()
Return the count of the notes within the note log.- Returns:
- int
-
setNoteCount
public void setNoteCount(int noteCount)
Set up the count of notes within the note log.- Parameters:
noteCount- int
-
toString
public String toString()
JSON-style toString- Overrides:
toStringin classOCFOMASAPIResponse- Returns:
- return string containing the property names and values
-
equals
public boolean equals(Object objectToCompare)
Return comparison result based on the content of the properties.- Overrides:
equalsin classFFDCResponseBase- Parameters:
objectToCompare- test object- Returns:
- result of comparison
-
hashCode
public int hashCode()
Return hash code for this object- Overrides:
hashCodein classFFDCResponseBase- Returns:
- int hash code
-
-