public final class TimelineNoteHelper extends Object
Modifier and Type | Method and Description |
---|---|
static TimelineNoteResource |
buildTimelineNoteResource(NoteData noteListData,
TimelineNoteResource target)
converts a note list data object into a note resource object
|
static PropertyResource[] |
convertToPropertyResources(Collection<StringPropertyTO> properties)
Converts the property TOs into an array of property resource objects
|
static TimelineNoteDiscussionResource |
getDiscussion(NoteData noteListDataItem)
Converts the discussion details of a note list data object into the appropriate resource
object
|
static TimelineNoteTagResource[] |
getTags(NoteData noteListDataItem)
Converts the tags of a note list data object into resources
|
static TimelineTopicResource |
getTopic(NoteData noteListDataItem)
Extracts the details about a topic into a resource.
|
static TimelineUserResource[] |
getUsersToNotify(NoteData noteListDataItem)
Extracts and converts the users that have been notified into an array of user resources
|
static Map<String,String> |
toMap(javax.ws.rs.core.MultivaluedMap<String,String> multivaluedMap) |
public static TimelineNoteResource buildTimelineNoteResource(NoteData noteListData, TimelineNoteResource target)
noteListData
- the source object to converttarget
- the target object to fillpublic static PropertyResource[] convertToPropertyResources(Collection<StringPropertyTO> properties)
properties
- collection of TOs to convertpublic static TimelineNoteDiscussionResource getDiscussion(NoteData noteListDataItem)
noteListDataItem
- the source object to copy frompublic static TimelineNoteTagResource[] getTags(NoteData noteListDataItem)
noteListDataItem
- the source object to copy frompublic static TimelineTopicResource getTopic(NoteData noteListDataItem)
noteListDataItem
- the source object to extract the details frompublic static TimelineUserResource[] getUsersToNotify(NoteData noteListDataItem)
noteListDataItem
- the source object to extract the users fromCopyright © 2019 Communote team. All rights reserved.