public class NoteResource extends AbstractResource
Constructor and Description |
---|
NoteResource() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createNote(javax.ws.rs.core.MultivaluedMap<String,String> params) |
javax.ws.rs.core.Response |
createNote(String jsonRepresentation) |
javax.ws.rs.core.Response |
deleteNote(javax.ws.rs.core.MultivaluedMap<String,String> params,
Long noteId) |
javax.ws.rs.core.Response |
editNote(javax.ws.rs.core.MultivaluedMap<String,String> params,
Long noteId) |
javax.ws.rs.core.Response |
editNote(String jsonRepresentation,
Long noteId) |
boolean |
equals(Object obj) |
Long[] |
getAttachmentIds()
Returns the AttachmentIds.
|
AttachmentResource[] |
getAttachments()
Returns the Attachments.
|
Date |
getCreationDate()
Returns the CreationDate.
|
Integer |
getDiscussionDepth()
Returns the DiscussionDepth.
|
Long |
getDiscussionId()
Returns the DiscussionId.
|
String |
getDiscussionPath()
Returns the DiscussionPath.
|
String |
getFirstName()
Returns the FirstName.
|
String[] |
getFollowedItems()
Returns the FollowedItems.
|
Boolean |
getIsDirectMessage()
Returns the IsDirectMessage.
|
Boolean |
getIsFavorite()
Returns the IsFavorite.
|
Boolean |
getIsLike()
Returns the IsLike.
|
Boolean |
getIsMentionDiscussionAuthors()
Returns the IsMentionDiscussionAuthors.
|
Boolean |
getIsMentionTopicAuthors()
Returns the IsMentionTopicAuthors.
|
Boolean |
getIsMentionTopicManagers()
Returns the IsMentionTopicManagers.
|
Boolean |
getIsMentionTopicReaders()
Returns the IsMentionTopicReaders.
|
Boolean |
getIsNoteForMe()
Returns the IsNoteForMe.
|
Date |
getLastModificationDate()
Returns the LastModificationDate.
|
String |
getLastName()
Returns the LastName.
|
Long |
getNoteId()
Returns the NoteId.
|
Long |
getNoteVersion()
Returns the NoteVersion.
|
Integer |
getNumberOfComments()
Returns the NumberOfComments.
|
Long |
getParentNoteId()
Returns the ParentNoteId.
|
PropertyResource[] |
getProperties()
Returns the Properties.
|
protected AbstractResourceHandler<CreateNoteParameter,EditNoteParameter,DeleteNoteParameter,GetNoteParameter,DefaultParameter> |
getResourceHandler() |
TagResource[] |
getTags()
Returns the Tags.
|
String |
getText()
Returns the Text.
|
Long |
getTopicId()
Returns the TopicId.
|
String |
getTopicName()
Returns the TopicName.
|
Long |
getUserId()
Returns the UserId.
|
String |
getUserName()
Returns the UserName.
|
String[] |
getUsersToNotify()
Returns the UsersToNotify.
|
int |
hashCode() |
javax.ws.rs.core.Response |
noteSingle(Long noteId) |
void |
setAttachmentIds(Long[] attachmentIds)
Sets AttachmentIds.
|
void |
setAttachments(AttachmentResource[] attachments)
Sets Attachments.
|
void |
setCreationDate(Date creationDate)
Sets CreationDate.
|
void |
setDiscussionDepth(Integer discussionDepth)
Sets DiscussionDepth.
|
void |
setDiscussionId(Long discussionId)
Sets DiscussionId.
|
void |
setDiscussionPath(String discussionPath)
Sets DiscussionPath.
|
void |
setFirstName(String firstName)
Sets FirstName.
|
void |
setFollowedItems(String[] followedItems)
Sets FollowedItems.
|
void |
setIsDirectMessage(Boolean isDirectMessage)
Sets IsDirectMessage.
|
void |
setIsFavorite(Boolean isFavorite)
Sets IsFavorite.
|
void |
setIsLike(Boolean isLike)
Sets IsLike.
|
void |
setIsMentionDiscussionAuthors(Boolean isMentionDiscussionAuthors)
Sets IsMentionDiscussionAuthors.
|
void |
setIsMentionTopicAuthors(Boolean isMentionTopicAuthors)
Sets IsMentionTopicAuthors.
|
void |
setIsMentionTopicManagers(Boolean isMentionTopicManagers)
Sets IsMentionTopicManagers.
|
void |
setIsMentionTopicReaders(Boolean isMentionTopicReaders)
Sets IsMentionTopicReaders.
|
void |
setIsNoteForMe(Boolean isNoteForMe)
Sets IsNoteForMe.
|
void |
setLastModificationDate(Date lastModificationDate)
Sets LastModificationDate.
|
void |
setLastName(String lastName)
Sets LastName.
|
void |
setNoteId(Long noteId)
Sets NoteId.
|
void |
setNoteVersion(Long noteVersion)
Sets NoteVersion.
|
void |
setNumberOfComments(Integer numberOfComments)
Sets NumberOfComments.
|
void |
setParentNoteId(Long parentNoteId)
Sets ParentNoteId.
|
void |
setProperties(PropertyResource[] properties)
Sets Properties.
|
void |
setTags(TagResource[] tags)
Sets Tags.
|
void |
setText(String text)
Sets Text.
|
void |
setTopicId(Long topicId)
Sets TopicId.
|
void |
setTopicName(String topicName)
Sets TopicName.
|
void |
setUserId(Long userId)
Sets UserId.
|
void |
setUserName(String userName)
Sets UserName.
|
void |
setUsersToNotify(String[] usersToNotify)
Sets UsersToNotify.
|
protected AbstractResourceHandler<CreateNoteParameter,EditNoteParameter,DeleteNoteParameter,GetNoteParameter,DefaultParameter> getResourceHandler()
getResourceHandler
in class AbstractResource
public javax.ws.rs.core.Response noteSingle(Long noteId) throws Exception
Exception
public javax.ws.rs.core.Response deleteNote(javax.ws.rs.core.MultivaluedMap<String,String> params, Long noteId) throws Exception
Exception
public javax.ws.rs.core.Response editNote(javax.ws.rs.core.MultivaluedMap<String,String> params, Long noteId) throws Exception
Exception
public javax.ws.rs.core.Response editNote(String jsonRepresentation, Long noteId) throws Exception
Exception
public javax.ws.rs.core.Response createNote(javax.ws.rs.core.MultivaluedMap<String,String> params) throws Exception
Exception
public javax.ws.rs.core.Response createNote(String jsonRepresentation) throws Exception
Exception
public String getText()
public void setText(String text)
text
- public Integer getNumberOfComments()
public void setNumberOfComments(Integer numberOfComments)
numberOfComments
- public TagResource[] getTags()
public void setTags(TagResource[] tags)
tags
- public Long getParentNoteId()
public void setParentNoteId(Long parentNoteId)
parentNoteId
- public Boolean getIsDirectMessage()
public void setIsDirectMessage(Boolean isDirectMessage)
isDirectMessage
- public Boolean getIsNoteForMe()
public void setIsNoteForMe(Boolean isNoteForMe)
isNoteForMe
- public String[] getUsersToNotify()
public void setUsersToNotify(String[] usersToNotify)
usersToNotify
- public String[] getFollowedItems()
public void setFollowedItems(String[] followedItems)
followedItems
- public Boolean getIsFavorite()
public void setIsFavorite(Boolean isFavorite)
isFavorite
- public Boolean getIsLike()
public void setIsLike(Boolean isLike)
isLike
- public Date getCreationDate()
public void setCreationDate(Date creationDate)
creationDate
- public Date getLastModificationDate()
public void setLastModificationDate(Date lastModificationDate)
lastModificationDate
- public Long getTopicId()
public void setTopicId(Long topicId)
topicId
- public String getTopicName()
public void setTopicName(String topicName)
topicName
- public String getUserName()
public void setUserName(String userName)
userName
- public String getFirstName()
public void setFirstName(String firstName)
firstName
- public String getLastName()
public void setLastName(String lastName)
lastName
- public Long getUserId()
public void setUserId(Long userId)
userId
- public Long getNoteId()
public void setNoteId(Long noteId)
noteId
- public Integer getDiscussionDepth()
public void setDiscussionDepth(Integer discussionDepth)
discussionDepth
- public String getDiscussionPath()
public void setDiscussionPath(String discussionPath)
discussionPath
- public Long getDiscussionId()
public void setDiscussionId(Long discussionId)
discussionId
- public Long[] getAttachmentIds()
public void setAttachmentIds(Long[] attachmentIds)
attachmentIds
- public AttachmentResource[] getAttachments()
public void setAttachments(AttachmentResource[] attachments)
attachments
- public PropertyResource[] getProperties()
public void setProperties(PropertyResource[] properties)
properties
- public Long getNoteVersion()
public void setNoteVersion(Long noteVersion)
noteVersion
- public Boolean getIsMentionTopicReaders()
public void setIsMentionTopicReaders(Boolean isMentionTopicReaders)
isMentionTopicReaders
- public Boolean getIsMentionTopicAuthors()
public void setIsMentionTopicAuthors(Boolean isMentionTopicAuthors)
isMentionTopicAuthors
- public Boolean getIsMentionTopicManagers()
public void setIsMentionTopicManagers(Boolean isMentionTopicManagers)
isMentionTopicManagers
- public Boolean getIsMentionDiscussionAuthors()
public void setIsMentionDiscussionAuthors(Boolean isMentionDiscussionAuthors)
isMentionDiscussionAuthors
- Copyright © 2019 Communote team. All rights reserved.