public class Discussion extends IdentifiableModel<Long>
| Modifier and Type | Class and Description |
|---|---|
static class |
Discussion.CreateDiscussionBuilder
A convenience class to help generate discussion object with the appropriate fields for adding a discussion to
a sheet.
|
| Constructor and Description |
|---|
Discussion() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccessLevel()
Gets the access level.
|
Comment |
getComment()
Gets the comment for the discussion.
|
List<Attachment> |
getCommentAttachments()
Gets the comment attachments.
|
Integer |
getCommentCount()
Gets the discussion comment count
|
List<Comment> |
getComments()
Gets the comments for the discussion.
|
User |
getCreatedBy()
Gets the created by
|
Date |
getLastCommentedAt()
Gets the date a comment was last added to a discussion..
|
User |
getLastCommentedUser()
Gets the user that last commented in the discussion.
|
Long |
getParentId()
Gets the ID of the directly associated row or sheet
|
ParentType |
getParentType()
Gets the type to row or sheet
|
Boolean |
getReadOnly()
Gets the read only status
|
String |
getTitle()
Gets the title for the discussion.
|
Discussion |
setAccessLevel(String accessLevel)
Sets the access level.
|
Discussion |
setComment(Comment comment)
Sets the comments for the discussion.
|
Discussion |
setCommentAttachments(List<Attachment> commentAttachments)
Sets the comment attachments.
|
Discussion |
setCommentCount(Integer commentCount)
Sets the discussion comment count
|
Discussion |
setComments(List<Comment> comments)
Sets the comments for the discussion.
|
Discussion |
setCreatedBy(User createdBy)
Sets the created by.
|
Discussion |
setLastCommentedAt(Date lastCommentedAt)
Sets the date a comment was last added to a discussion.
|
Discussion |
setLastCommentedUser(User lastCommentedUser)
Sets the user that last commented in the discussion.
|
Discussion |
setParentId(Long parentId)
Sets the ID of the directly associated row or sheet
|
Discussion |
setParentType(ParentType parentType)
Sets the type to row or sheet
|
Discussion |
setReadOnly(Boolean readOnly)
Sets the read only status.
|
Discussion |
setTitle(String title)
Sets the title for the discussion.
|
equals, getId, hashCode, setIdpublic Boolean getReadOnly()
public Discussion setReadOnly(Boolean readOnly)
readOnly - the read only statuspublic User getCreatedBy()
public Discussion setCreatedBy(User createdBy)
createdBy - the created bypublic String getTitle()
public Discussion setTitle(String title)
title - the new titlepublic List<Comment> getComments()
public Comment getComment()
public Discussion setComments(List<Comment> comments)
comments - the new commentspublic Discussion setComment(Comment comment)
comment - the new commentpublic List<Attachment> getCommentAttachments()
public Discussion setCommentAttachments(List<Attachment> commentAttachments)
commentAttachments - the new comment attachmentspublic Integer getCommentCount()
public Discussion setCommentCount(Integer commentCount)
commentCount - the new comment countpublic Date getLastCommentedAt()
public Discussion setLastCommentedAt(Date lastCommentedAt)
lastCommentedAt - the new last commented atpublic User getLastCommentedUser()
public Discussion setLastCommentedUser(User lastCommentedUser)
lastCommentedUser - the new last commented userpublic String getAccessLevel()
public Discussion setAccessLevel(String accessLevel)
accessLevel - the new access levelpublic Long getParentId()
public Discussion setParentId(Long parentId)
parentId - the new access levelpublic ParentType getParentType()
public Discussion setParentType(ParentType parentType)
parentType - the new access levelCopyright © 2014–2017 Smartsheet. All rights reserved.