Package zendesk.core
Class UserField
- java.lang.Object
- 
- zendesk.core.UserField
 
- 
 
 public class UserField extends java.lang.ObjectThis is a model class for a user field that will be created by theUserProvideras part ofUserFieldResponse.- See Also:
- User fields
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class and Description static classUserField.UserFieldTypeEnum for describing the type of a user field.
 - 
Constructor SummaryConstructors Constructor and Description UserField()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.util.DategetCreatedAt()Gets the date that the user field was created atjava.lang.StringgetDescription()Get the description of the user field.java.lang.LonggetId()Get the id of the user field.java.lang.StringgetKey()Get the unique key of the user field.java.lang.LonggetPosition()Gets the position of the user fieldjava.lang.StringgetRawDescription()Get the raw description of the user field.java.lang.StringgetRawTitle()Gets the raw title of the user fieldjava.lang.StringgetRegexpForValidation()Gets the regexp which is used to validate the user fieldjava.lang.StringgetTitle()Get the title of the user field.java.util.DategetUpdatedAt()Gets the date that the user field was updated atjava.lang.StringgetUrl()Gets the API URL of the user fieldjava.util.List<UserFieldOption>getUserFieldOptions()Get a list ofUserFieldOption.UserField.UserFieldTypegetUserFieldType()Get the type of the user field.booleanisActive()Checks if the user field is active or notbooleanisSystem()Checks if the user field is a system field or not
 
- 
- 
- 
Method Detail- 
getIdpublic java.lang.Long getId() Get the id of the user field.- Returns:
- the id of the field
 
 - 
getUrlpublic java.lang.String getUrl() Gets the API URL of the user field- Returns:
- the API URL of the user field
 
 - 
getUserFieldTypepublic UserField.UserFieldType getUserFieldType() Get the type of the user field.- Returns:
- the type of the field
 
 - 
getKeypublic java.lang.String getKey() Get the unique key of the user field.Use this property for updating the user field by calling UserProvider#setUserFields(Map, ZendeskCallback)- Returns:
- the unique key of the field
 
 - 
getTitlepublic java.lang.String getTitle() Get the title of the user field.- Returns:
- the title of the field
 
 - 
getDescriptionpublic java.lang.String getDescription() Get the description of the user field.- Returns:
- the description of the field
 
 - 
getRawDescriptionpublic java.lang.String getRawDescription() Get the raw description of the user field.- Returns:
- the raw description of the field
 
 - 
getRawTitlepublic java.lang.String getRawTitle() Gets the raw title of the user field- Returns:
- the raw title of the user field
 
 - 
getPositionpublic java.lang.Long getPosition() Gets the position of the user field- Returns:
- the position of the user field
 
 - 
isActivepublic boolean isActive() Checks if the user field is active or not- Returns:
- true if it is active, false otherwise
 
 - 
isSystempublic boolean isSystem() Checks if the user field is a system field or not- Returns:
- @return true if it is system, false otherwise
 
 - 
getRegexpForValidationpublic java.lang.String getRegexpForValidation() Gets the regexp which is used to validate the user field- Returns:
- the regexp which is used to validate the user field
 
 - 
getCreatedAtpublic java.util.Date getCreatedAt() Gets the date that the user field was created at- Returns:
- the date that the user field was created at
 
 - 
getUpdatedAtpublic java.util.Date getUpdatedAt() Gets the date that the user field was updated at- Returns:
- the date that the user field was updated at
 
 - 
getUserFieldOptionspublic java.util.List<UserFieldOption> getUserFieldOptions() Get a list ofUserFieldOption.Options for the custom user field. Only for Dropdown type of user fields. - Returns:
- the list of user field options
 
 
- 
 
-