Package com.hellosign.sdk.resource
Class Template
- java.lang.Object
-
- com.hellosign.sdk.resource.AbstractResource
-
- com.hellosign.sdk.resource.Template
-
public class Template extends AbstractResource
POJO that represents a HelloSign Template resource.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
TEMPLATE_ACCOUNTS
static java.lang.String
TEMPLATE_CAN_EDIT
static java.lang.String
TEMPLATE_CC_ROLES
static java.lang.String
TEMPLATE_CUSTOM_FIELDS
static java.lang.String
TEMPLATE_DOCUMENTS
static java.lang.String
TEMPLATE_ID
static java.lang.String
TEMPLATE_IS_CREATOR
static java.lang.String
TEMPLATE_IS_EMBEDDED
static java.lang.String
TEMPLATE_KEY
static java.lang.String
TEMPLATE_MESSAGE
static java.lang.String
TEMPLATE_SIGNER_ROLES
static java.lang.String
TEMPLATE_TITLE
-
Fields inherited from class com.hellosign.sdk.resource.AbstractResource
dataObj, warnings
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canEdit()
java.util.List<Account>
getAccounts()
java.util.List<TemplateRole>
getCCRoles()
java.util.List<CustomField>
getCustomFields()
java.util.List<Document>
getDocuments()
java.lang.String
getId()
java.lang.String
getMessage()
java.util.List<TemplateRole>
getSignerRoles()
Returns a list of SignerRoles.java.lang.String
getTitle()
boolean
hasId()
boolean
hasMessage()
boolean
hasTitle()
boolean
isCreator()
boolean
isEmbedded()
Returns true if this template was created on a site other than hellosign.com.-
Methods inherited from class com.hellosign.sdk.resource.AbstractResource
add, addToList, clearList, get, getBoolean, getConstructor, getDate, getInteger, getJSONObject, getList, getList, getLong, getObject, getString, getWarnings, has, hasString, set, toString, toString
-
-
-
-
Field Detail
-
TEMPLATE_KEY
public static final java.lang.String TEMPLATE_KEY
- See Also:
- Constant Field Values
-
TEMPLATE_ID
public static final java.lang.String TEMPLATE_ID
- See Also:
- Constant Field Values
-
TEMPLATE_TITLE
public static final java.lang.String TEMPLATE_TITLE
- See Also:
- Constant Field Values
-
TEMPLATE_MESSAGE
public static final java.lang.String TEMPLATE_MESSAGE
- See Also:
- Constant Field Values
-
TEMPLATE_DOCUMENTS
public static final java.lang.String TEMPLATE_DOCUMENTS
- See Also:
- Constant Field Values
-
TEMPLATE_SIGNER_ROLES
public static final java.lang.String TEMPLATE_SIGNER_ROLES
- See Also:
- Constant Field Values
-
TEMPLATE_CC_ROLES
public static final java.lang.String TEMPLATE_CC_ROLES
- See Also:
- Constant Field Values
-
TEMPLATE_ACCOUNTS
public static final java.lang.String TEMPLATE_ACCOUNTS
- See Also:
- Constant Field Values
-
TEMPLATE_CAN_EDIT
public static final java.lang.String TEMPLATE_CAN_EDIT
- See Also:
- Constant Field Values
-
TEMPLATE_IS_CREATOR
public static final java.lang.String TEMPLATE_IS_CREATOR
- See Also:
- Constant Field Values
-
TEMPLATE_CUSTOM_FIELDS
public static final java.lang.String TEMPLATE_CUSTOM_FIELDS
- See Also:
- Constant Field Values
-
TEMPLATE_IS_EMBEDDED
public static final java.lang.String TEMPLATE_IS_EMBEDDED
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Template
public Template()
-
Template
public Template(org.json.JSONObject json) throws HelloSignException
- Throws:
HelloSignException
-
-
Method Detail
-
getId
public java.lang.String getId()
-
hasId
public boolean hasId()
-
getTitle
public java.lang.String getTitle()
-
hasTitle
public boolean hasTitle()
-
getMessage
public java.lang.String getMessage()
-
hasMessage
public boolean hasMessage()
-
getDocuments
public java.util.List<Document> getDocuments()
-
getSignerRoles
public java.util.List<TemplateRole> getSignerRoles()
Returns a list of SignerRoles. If they are ordered, the list is returned in order.- Returns:
- List
-
getCCRoles
public java.util.List<TemplateRole> getCCRoles()
-
getAccounts
public java.util.List<Account> getAccounts()
-
canEdit
public boolean canEdit()
-
isCreator
public boolean isCreator()
-
getCustomFields
public java.util.List<CustomField> getCustomFields()
-
isEmbedded
public boolean isEmbedded()
Returns true if this template was created on a site other than hellosign.com.- Returns:
- boolean
-
-