public class InitialWatchersCFType extends MultiUserCFType
MultiUserCFType.Visitor<T>AbstractCustomFieldType.VisitorBase<X>customFieldValuePersister, genericConfigManagerDEFAULT_VALUE_TYPE, RESOURCE_PREVIEW| Constructor and Description |
|---|
InitialWatchersCFType(CustomFieldValuePersister customFieldValuePersister,
GenericConfigManager genericConfigManager,
MultiUserConverter multiUserConverter,
ApplicationProperties applicationProperties,
JiraAuthenticationContext authenticationContext,
UserSearchService searchService,
FieldVisibilityManager fieldVisibilityManager,
JiraBaseUrls jiraBaseUrls,
UserBeanFactory userBeanFactory,
GroupManager groupManager,
ProjectRoleManager projectRoleManager,
SoyTemplateRendererProvider soyTemplateRendererProvider,
UserFilterManager userFilterManager,
FieldConfigSchemeManager fieldConfigSchemeManager,
ProjectManager projectManager,
FeatureManager featureManager,
InitialWatchersFields field,
InitialWatchersPermissionChecker permissionChecker) |
| Modifier and Type | Method and Description |
|---|---|
String |
availableForBulkEdit(BulkEditBean bulkEditBean)
Allow the custom field type perform a specific check as to its availability for bulk editing.
|
void |
createValue(CustomField customField,
Issue issue,
Collection<ApplicationUser> value)
Create a multi-select value for an issue.
|
String |
getChangelogValue(CustomField field,
Collection<ApplicationUser> value)
Returns a string representation of the value if not null.
|
boolean |
shouldDisplayField(OperationContext context,
Issue issue)
Field should only be displayed on Create and only if user has Manage Watchers permission
|
void |
updateValue(CustomField customField,
Issue issue,
Collection<ApplicationUser> value)
Update a multi-select value for an issue.
|
void |
validateFromParams(CustomFieldParams relevantParams,
ErrorCollection errorCollectionToAddTo,
FieldConfig config)
Ensures that the
CustomFieldParams of Strings is a valid representation of the Custom Field values. |
accept, compare, convertDbValueToType, convertTypeToDbValue, getChangelogString, getConfigurationItemTypes, getDatabaseType, getFieldTypeInfo, getJsonDefaultValue, getJsonFromIssue, getJsonSchema, getNonNullCustomFieldProvider, getProjectImporter, getRelatedIndexers, getRepresentationFromIssue, getRestFieldOperation, getSingularObjectFromString, getStringFromSingularObject, getStringValueFromCustomFieldParams, getTypeComparator, getValueFromCustomFieldParams, getVelocityParametersconvertDbObjectToTypes, convertTypesToDbObjects, getDefaultValue, getValueFromIssue, getValueFromIssue, remove, setDefaultValueassertObjectImplementsType, getDescription, getDescriptor, getI18nBean, getKey, getName, getVelocityParameters, init, isRenderable, valuesEqualclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetValueFromIssueareAllRequiredParametersPresent, getCloneOptionConfiguration, getCloneValue, getNonnullCustomFieldProvider, isUserInputRequiredForMovepublic InitialWatchersCFType(CustomFieldValuePersister customFieldValuePersister, GenericConfigManager genericConfigManager, MultiUserConverter multiUserConverter, ApplicationProperties applicationProperties, JiraAuthenticationContext authenticationContext, UserSearchService searchService, FieldVisibilityManager fieldVisibilityManager, JiraBaseUrls jiraBaseUrls, UserBeanFactory userBeanFactory, GroupManager groupManager, ProjectRoleManager projectRoleManager, SoyTemplateRendererProvider soyTemplateRendererProvider, UserFilterManager userFilterManager, FieldConfigSchemeManager fieldConfigSchemeManager, ProjectManager projectManager, FeatureManager featureManager, InitialWatchersFields field, InitialWatchersPermissionChecker permissionChecker)
public String getChangelogValue(CustomField field, Collection<ApplicationUser> value)
AbstractMultiCFTypegetChangelogValue in interface CustomFieldType<Collection<ApplicationUser>,ApplicationUser>getChangelogValue in class MultiUserCFTypefield - not usedvalue - value to create a change log forpublic void updateValue(CustomField customField, Issue issue, Collection<ApplicationUser> value)
AbstractMultiCFTypeupdateValue in interface CustomFieldType<Collection<ApplicationUser>,ApplicationUser>updateValue in class MultiUserCFTypecustomField - CustomField for which the value is being storedissue - The Issue.value - Transport Object representing the value instance of the CustomField.CustomFieldType.updateValue(com.atlassian.jira.issue.fields.CustomField, com.atlassian.jira.issue.Issue, Object)public void createValue(CustomField customField, Issue issue, @Nonnull Collection<ApplicationUser> value)
AbstractMultiCFTypecreateValue in interface CustomFieldType<Collection<ApplicationUser>,ApplicationUser>createValue in class AbstractMultiCFType<ApplicationUser>customField - CustomField for which the value is being storedissue - The Issue.value - Transport Object representing the value instance of the CustomField.CustomFieldType.createValue(com.atlassian.jira.issue.fields.CustomField, com.atlassian.jira.issue.Issue, Object)public void validateFromParams(CustomFieldParams relevantParams, ErrorCollection errorCollectionToAddTo, FieldConfig config)
CustomFieldTypeCustomFieldParams of Strings is a valid representation of the Custom Field values.
Any errors should be added to the ErrorCollection under the appropriate key as required.validateFromParams in interface CustomFieldType<Collection<ApplicationUser>,ApplicationUser>validateFromParams in class MultiUserCFTyperelevantParams - parameter object of StringserrorCollectionToAddTo - errorCollection to which any errors should be added (never null)config - FieldConfigpublic String availableForBulkEdit(BulkEditBean bulkEditBean)
CustomFieldTypeavailableForBulkEdit in interface CustomFieldType<Collection<ApplicationUser>,ApplicationUser>availableForBulkEdit in class AbstractCustomFieldType<Collection<ApplicationUser>,ApplicationUser>bulkEditBean - BulkEditBeanpublic boolean shouldDisplayField(OperationContext context, Issue issue)
Copyright © 2002-2024 Atlassian. All Rights Reserved.