public class Share extends NamedModel<String>
| Modifier and Type | Class and Description |
|---|---|
static class |
Share.CreateGroupShareBuilder
A convenience class for creating a
Share with the necessary fields to create a ShareType.GROUP Share. |
static class |
Share.CreateUserShareBuilder
A convenience class for creating a
Share with the necessary fields to create a ShareType.USER Share. |
static class |
Share.ShareToOneGroupBuilder
|
static class |
Share.ShareToOneUserBuilder
A convenience class for creating a
Share with the necessary fields for sharing the sheet to one user. |
static class |
Share.UpdateShareBuilder
A convenience class for creating a
Share with the necessary fields to update a specific share. |
| Constructor and Description |
|---|
Share() |
| Modifier and Type | Method and Description |
|---|---|
AccessLevel |
getAccessLevel()
Gets the access level for this specific share.
|
Date |
getCreatedAt()
Gets the time that the share was created
|
String |
getEmail()
Gets the email for this specific share.
|
Long |
getGroupId() |
String |
getMessage()
Gets the message to be included in the body of the email.
|
Date |
getModifiedAt()
Gets the time that the share was last modified
|
ShareScope |
getScope()
Get the scope of this share.
|
String |
getSubject()
Gets the subject of the email that will optionally be sent to notify the recipient.
|
ShareType |
getType() |
Long |
getUserId() |
Boolean |
isCcMe()
Gets the flag to indicate whether or not to send a copy of the email to the sharer
|
Share |
setAccessLevel(AccessLevel accessLevel)
Sets the access level for this specific share.
|
Share |
setCcMe(Boolean ccMe)
Sets the flag to indicate whether or not to send a copy of the email to the sharer.
|
Share |
setCreatedAt(Date createdAt)
Sets the time that the share was created
|
Share |
setEmail(String email)
Sets the email for this specific share.
|
Share |
setGroupId(Long groupId) |
Share |
setMessage(String message)
Sets the message to be included in the body of the email.
|
Share |
setModifiedAt(Date modifiedAt)
Sets the time that the share was last modified
|
Share |
setName(String name)
Provide an 'override' of setName (returns Share not NamedModel)
|
Share |
setScope(ShareScope scope)
Set the scope of this share.
|
Share |
setSubject(String subject)
Sets the subject of the email that will optionally be sent to notify the recipient.
|
Share |
setType(ShareType type) |
Share |
setUserId(Long userId) |
getNameequals, getId, hashCode, setIdpublic Share setName(String name)
setName in class NamedModel<String>name - the new namepublic String getSubject()
public Share setSubject(String subject)
subject - the subject of the emailpublic String getMessage()
public Share setMessage(String message)
message - the messagepublic Boolean isCcMe()
public Share setCcMe(Boolean ccMe)
ccMe - the flag for CCpublic AccessLevel getAccessLevel()
public Share setAccessLevel(AccessLevel accessLevel)
accessLevel - the new access levelpublic String getEmail()
public Share setEmail(String email)
email - the new emailpublic ShareScope getScope()
public Share setScope(ShareScope scope)
scope - public Date getCreatedAt()
public Share setCreatedAt(Date createdAt)
createdAt - public Date getModifiedAt()
public Share setModifiedAt(Date modifiedAt)
modifiedAt - public Long getUserId()
null if is ShareType.GROUPpublic Long getGroupId()
null if is ShareType.USERpublic ShareType getType()
Copyright © 2014–2019 Smartsheet. All rights reserved.