Class UsersCustomFieldImpl
java.lang.Object
pw.chew.clickup4j.internal.entities.customfields.CustomFieldImpl
pw.chew.clickup4j.internal.entities.customfields.UsersCustomFieldImpl
- All Implemented Interfaces:
ICustomField,UsersCustomField
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Returns the value of this custom field.booleanWhether the entire workspace can show up in the field response.booleanWhether teams may show up in the field response.booleanWhether this allows multiple values.booleanWhether guests may show up in this field.Methods inherited from class pw.chew.clickup4j.internal.entities.customfields.CustomFieldImpl
getClickUp4j, getId, getName, getTimeCreated, getType, isRequiredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface pw.chew.clickup4j.api.entities.customfields.ICustomField
getClickUp4j, getId, getName, getTimeCreated, isRequiredMethods inherited from interface pw.chew.clickup4j.api.entities.customfields.UsersCustomField
getType
-
Constructor Details
-
UsersCustomFieldImpl
-
-
Method Details
-
getValue
Description copied from interface:ICustomFieldReturns the value of this custom field.It's highly recommended to cast this value to the appropriate type, because it returns more appropriate data. For example, if the custom field is of type
CustomFieldType.TEXT, you can cast the value toTextCustomField, this class can be found usingCustomFieldType.getAssociatedClass().This will be null under the following circumstances:
- No value is specified.
- The task response did not contain a
value. Notably when an individual task is retrieved.
- Specified by:
getValuein interfaceICustomField- Specified by:
getValuein interfaceUsersCustomField- Overrides:
getValuein classCustomFieldImpl- Returns:
- the value of this custom field
-
isSingleUser
public boolean isSingleUser()Description copied from interface:UsersCustomFieldWhether this allows multiple values. If true, the value will be a single user.
In the client, this is referred to as "Select multiple users," and this is actually inverted.- Specified by:
isSingleUserin interfaceUsersCustomField- Returns:
- Whether this allows multiple values.
-
shouldIncludeGuests
public boolean shouldIncludeGuests()Description copied from interface:UsersCustomFieldWhether guests may show up in this field.
Guests are notMembersof the workspace, but may have rights in the list or task.- Specified by:
shouldIncludeGuestsin interfaceUsersCustomField- Returns:
- Whether guests may show up in this field.
-
includeTeams
public boolean includeTeams()Description copied from interface:UsersCustomFieldWhether teams may show up in the field response. If this is true,UsersCustomField.getValue()may break.- Specified by:
includeTeamsin interfaceUsersCustomField- Returns:
- Whether teams may show up in the field response.
-
includeEntireWorkspace
public boolean includeEntireWorkspace()Description copied from interface:UsersCustomFieldWhether the entire workspace can show up in the field response. Normally, only members of the list this task is a part of can be here.- Specified by:
includeEntireWorkspacein interfaceUsersCustomField- Returns:
- Whether the entire workspace can show up in the field response.
-