Package com.docusign.esign.model
Class TemplateRole
- java.lang.Object
-
- com.docusign.esign.model.TemplateRole
-
- All Implemented Interfaces:
Serializable
public class TemplateRole extends Object implements Serializable
Information about a specific role..- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TemplateRole()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TemplateRoleaccessCode(String accessCode)accessCode.TemplateRoleaddAdditionalNotificationsItem(RecipientAdditionalNotification additionalNotificationsItem)addAdditionalNotificationsItem.TemplateRoleadditionalNotifications(List<RecipientAdditionalNotification> additionalNotifications)additionalNotifications.TemplateRoleaddRecipientSignatureProvidersItem(RecipientSignatureProvider recipientSignatureProvidersItem)addRecipientSignatureProvidersItem.TemplateRoleclientUserId(String clientUserId)clientUserId.TemplateRoledefaultRecipient(String defaultRecipient)defaultRecipient.TemplateRoledeliveryMethod(String deliveryMethod)deliveryMethod.TemplateRoleemail(String email)email.TemplateRoleemailNotification(RecipientEmailNotification emailNotification)emailNotification.TemplateRoleembeddedRecipientStartURL(String embeddedRecipientStartURL)embeddedRecipientStartURL.booleanequals(Object o)Compares objects.StringgetAccessCode()If a value is provided, the recipient must enter the value as the access code to view and sign the envelope.List<RecipientAdditionalNotification>getAdditionalNotifications().StringgetClientUserId()Specifies whether the recipient is embedded or remote.StringgetDefaultRecipient()When set to **true**, this recipient is the default recipient and any tabs generated by the transformPdfFields option are mapped to this recipient..StringgetDeliveryMethod()Reserved: For DocuSign use only..StringgetEmail()Specifies the email associated with a role name..RecipientEmailNotificationgetEmailNotification()A complex type that contains information sets the language of the recipient's email information.StringgetEmbeddedRecipientStartURL()Specifies a sender provided valid URL string for redirecting an embedded recipient.StringgetInPersonSignerName()Specifies the full legal name of the signer in person signer template roles.StringgetName()Specifies the recipient's name..RecipientPhoneNumbergetPhoneNumber()Describes the recipient phone number..List<RecipientSignatureProvider>getRecipientSignatureProviders().StringgetRoleName()Optional element.StringgetRoutingOrder()Specifies the routing order of the recipient in the envelope.StringgetSigningGroupId()When set to **true** and the feature is enabled in the sender's account, the signing recipient is required to draw signatures and initials at each signature/initial tab ( instead of adopting a signature/initial style or only drawing a signature/initial once)..TabsgetTabs()A list of tabs, which are represented graphically as symbols on documents at the time of signing.inthashCode()Returns the HashCode.TemplateRoleinPersonSignerName(String inPersonSignerName)inPersonSignerName.TemplateRolename(String name)name.TemplateRolephoneNumber(RecipientPhoneNumber phoneNumber)phoneNumber.TemplateRolerecipientSignatureProviders(List<RecipientSignatureProvider> recipientSignatureProviders)recipientSignatureProviders.TemplateRoleroleName(String roleName)roleName.TemplateRoleroutingOrder(String routingOrder)routingOrder.voidsetAccessCode(String accessCode)setAccessCode.voidsetAdditionalNotifications(List<RecipientAdditionalNotification> additionalNotifications)setAdditionalNotifications.voidsetClientUserId(String clientUserId)setClientUserId.voidsetDefaultRecipient(String defaultRecipient)setDefaultRecipient.voidsetDeliveryMethod(String deliveryMethod)setDeliveryMethod.voidsetEmail(String email)setEmail.voidsetEmailNotification(RecipientEmailNotification emailNotification)setEmailNotification.voidsetEmbeddedRecipientStartURL(String embeddedRecipientStartURL)setEmbeddedRecipientStartURL.voidsetInPersonSignerName(String inPersonSignerName)setInPersonSignerName.voidsetName(String name)setName.voidsetPhoneNumber(RecipientPhoneNumber phoneNumber)setPhoneNumber.voidsetRecipientSignatureProviders(List<RecipientSignatureProvider> recipientSignatureProviders)setRecipientSignatureProviders.voidsetRoleName(String roleName)setRoleName.voidsetRoutingOrder(String routingOrder)setRoutingOrder.voidsetSigningGroupId(String signingGroupId)setSigningGroupId.voidsetTabs(Tabs tabs)setTabs.TemplateRolesigningGroupId(String signingGroupId)signingGroupId.TemplateRoletabs(Tabs tabs)tabs.StringtoString()Converts the given object to string.
-
-
-
Method Detail
-
accessCode
public TemplateRole accessCode(String accessCode)
accessCode.- Returns:
- TemplateRole
-
getAccessCode
public String getAccessCode()
If a value is provided, the recipient must enter the value as the access code to view and sign the envelope. Maximum Length: 50 characters and it must conform to the account's access code format setting. If blank, but the signer `accessCode` property is set in the envelope, then that value is used. If blank and the signer `accessCode` property is not set, then the access code is not required..- Returns:
- accessCode
-
setAccessCode
public void setAccessCode(String accessCode)
setAccessCode.
-
additionalNotifications
public TemplateRole additionalNotifications(List<RecipientAdditionalNotification> additionalNotifications)
additionalNotifications.- Returns:
- TemplateRole
-
addAdditionalNotificationsItem
public TemplateRole addAdditionalNotificationsItem(RecipientAdditionalNotification additionalNotificationsItem)
addAdditionalNotificationsItem.- Returns:
- TemplateRole
-
getAdditionalNotifications
public List<RecipientAdditionalNotification> getAdditionalNotifications()
.- Returns:
- additionalNotifications
-
setAdditionalNotifications
public void setAdditionalNotifications(List<RecipientAdditionalNotification> additionalNotifications)
setAdditionalNotifications.
-
clientUserId
public TemplateRole clientUserId(String clientUserId)
clientUserId.- Returns:
- TemplateRole
-
getClientUserId
public String getClientUserId()
Specifies whether the recipient is embedded or remote. If the `clientUserId` property is not null then the recipient is embedded. Note that if the `ClientUserId` property is set and either `SignerMustHaveAccount` or `SignerMustLoginToSign` property of the account settings is set to **true**, an error is generated on sending.ng. Maximum length: 100 characters. .- Returns:
- clientUserId
-
setClientUserId
public void setClientUserId(String clientUserId)
setClientUserId.
-
defaultRecipient
public TemplateRole defaultRecipient(String defaultRecipient)
defaultRecipient.- Returns:
- TemplateRole
-
getDefaultRecipient
public String getDefaultRecipient()
When set to **true**, this recipient is the default recipient and any tabs generated by the transformPdfFields option are mapped to this recipient..- Returns:
- defaultRecipient
-
setDefaultRecipient
public void setDefaultRecipient(String defaultRecipient)
setDefaultRecipient.
-
deliveryMethod
public TemplateRole deliveryMethod(String deliveryMethod)
deliveryMethod.- Returns:
- TemplateRole
-
getDeliveryMethod
public String getDeliveryMethod()
Reserved: For DocuSign use only..- Returns:
- deliveryMethod
-
setDeliveryMethod
public void setDeliveryMethod(String deliveryMethod)
setDeliveryMethod.
-
email
public TemplateRole email(String email)
email.- Returns:
- TemplateRole
-
getEmail
public String getEmail()
Specifies the email associated with a role name..- Returns:
-
setEmail
public void setEmail(String email)
setEmail.
-
emailNotification
public TemplateRole emailNotification(RecipientEmailNotification emailNotification)
emailNotification.- Returns:
- TemplateRole
-
getEmailNotification
public RecipientEmailNotification getEmailNotification()
A complex type that contains information sets the language of the recipient's email information. **IMPORTANT**: If you enable email notification for one recipient, you must enable email notification for all recipients as it overrides the Envelope Subject and `EmailBlurb` property settings. .- Returns:
- emailNotification
-
setEmailNotification
public void setEmailNotification(RecipientEmailNotification emailNotification)
setEmailNotification.
-
embeddedRecipientStartURL
public TemplateRole embeddedRecipientStartURL(String embeddedRecipientStartURL)
embeddedRecipientStartURL.- Returns:
- TemplateRole
-
getEmbeddedRecipientStartURL
public String getEmbeddedRecipientStartURL()
Specifies a sender provided valid URL string for redirecting an embedded recipient. When using this option, the embedded recipient still receives an email from DocuSign, just as a remote recipient would. When the document link in the email is clicked the recipient is redirected, through DocuSign, to the supplied URL to complete their actions. When routing to the URL, the sender's system (the server responding to the URL) must request a recipient token to launch a signing session. If set to `SIGN_AT_DOCUSIGN`, the recipient is directed to an embedded signing or viewing process directly at DocuSign. The signing or viewing action is initiated by the DocuSign system and the transaction activity and Certificate of Completion records will reflect this. In all other ways the process is identical to an embedded signing or viewing operation that is launched by any partner. It is important to remember that in a typical embedded workflow the authentication of an embedded recipient is the responsibility of the sending application, DocuSign expects that senders will follow their own process for establishing the recipient's identity. In this workflow the recipient goes through the sending application before the embedded signing or viewing process in initiated. However, when the sending application sets `EmbeddedRecipientStartURL=SIGN_AT_DOCUSIGN`, the recipient goes directly to the embedded signing or viewing process bypassing the sending application and any authentication steps the sending application would use. In this case, DocuSign recommends that you use one of the normal DocuSign authentication features (Access Code, Phone Authentication, SMS Authentication, etc.) to verify the identity of the recipient. If the `clientUserId` property is NOT set, and the `embeddedRecipientStartURL` is set, DocuSign will ignore the redirect URL and launch the standard signing process for the email recipient. Information can be appended to the embedded recipient start URL using merge fields. The available merge fields items are: envelopeId, recipientId, recipientName, recipientEmail, and customFields. The `customFields` property must be set fort the recipient or envelope. The merge fields are enclosed in double brackets. *Example*: `http://senderHost/[[mergeField1]]/ beginSigningSession? [[mergeField2]]&[[mergeField3]]` .- Returns:
- embeddedRecipientStartURL
-
setEmbeddedRecipientStartURL
public void setEmbeddedRecipientStartURL(String embeddedRecipientStartURL)
setEmbeddedRecipientStartURL.
-
inPersonSignerName
public TemplateRole inPersonSignerName(String inPersonSignerName)
inPersonSignerName.- Returns:
- TemplateRole
-
getInPersonSignerName
public String getInPersonSignerName()
Specifies the full legal name of the signer in person signer template roles. Maximum Length: 100 characters..- Returns:
- inPersonSignerName
-
setInPersonSignerName
public void setInPersonSignerName(String inPersonSignerName)
setInPersonSignerName.
-
name
public TemplateRole name(String name)
name.- Returns:
- TemplateRole
-
getName
public String getName()
Specifies the recipient's name..- Returns:
- name
-
setName
public void setName(String name)
setName.
-
phoneNumber
public TemplateRole phoneNumber(RecipientPhoneNumber phoneNumber)
phoneNumber.- Returns:
- TemplateRole
-
getPhoneNumber
public RecipientPhoneNumber getPhoneNumber()
Describes the recipient phone number..- Returns:
- phoneNumber
-
setPhoneNumber
public void setPhoneNumber(RecipientPhoneNumber phoneNumber)
setPhoneNumber.
-
recipientSignatureProviders
public TemplateRole recipientSignatureProviders(List<RecipientSignatureProvider> recipientSignatureProviders)
recipientSignatureProviders.- Returns:
- TemplateRole
-
addRecipientSignatureProvidersItem
public TemplateRole addRecipientSignatureProvidersItem(RecipientSignatureProvider recipientSignatureProvidersItem)
addRecipientSignatureProvidersItem.- Returns:
- TemplateRole
-
getRecipientSignatureProviders
public List<RecipientSignatureProvider> getRecipientSignatureProviders()
.- Returns:
- recipientSignatureProviders
-
setRecipientSignatureProviders
public void setRecipientSignatureProviders(List<RecipientSignatureProvider> recipientSignatureProviders)
setRecipientSignatureProviders.
-
roleName
public TemplateRole roleName(String roleName)
roleName.- Returns:
- TemplateRole
-
getRoleName
public String getRoleName()
Optional element. Specifies the role name associated with the recipient.
This is required when working with template recipients..- Returns:
- roleName
-
setRoleName
public void setRoleName(String roleName)
setRoleName.
-
routingOrder
public TemplateRole routingOrder(String routingOrder)
routingOrder.- Returns:
- TemplateRole
-
getRoutingOrder
public String getRoutingOrder()
Specifies the routing order of the recipient in the envelope. .- Returns:
- routingOrder
-
setRoutingOrder
public void setRoutingOrder(String routingOrder)
setRoutingOrder.
-
signingGroupId
public TemplateRole signingGroupId(String signingGroupId)
signingGroupId.- Returns:
- TemplateRole
-
getSigningGroupId
public String getSigningGroupId()
When set to **true** and the feature is enabled in the sender's account, the signing recipient is required to draw signatures and initials at each signature/initial tab ( instead of adopting a signature/initial style or only drawing a signature/initial once)..- Returns:
- signingGroupId
-
setSigningGroupId
public void setSigningGroupId(String signingGroupId)
setSigningGroupId.
-
tabs
public TemplateRole tabs(Tabs tabs)
tabs.- Returns:
- TemplateRole
-
getTabs
public Tabs getTabs()
A list of tabs, which are represented graphically as symbols on documents at the time of signing. Tabs show recipients where to sign, initial, or enter data. They may also display data to the recipients..- Returns:
- tabs
-
setTabs
public void setTabs(Tabs tabs)
setTabs.
-
equals
public boolean equals(Object o)
Compares objects.
-
-