public class BulkEditMultiSelectFieldBeanImpl extends Object implements BulkEditMultiSelectFieldBean
BulkEditMultiSelectFieldOption
Constructor and Description |
---|
BulkEditMultiSelectFieldBeanImpl() |
Modifier and Type | Method and Description |
---|---|
String |
getChangeModeFieldName(OrderableField field)
Returns the field name to be used in template for the change mode selection for the system field.
|
io.atlassian.fugue.Option<BulkEditMultiSelectFieldOption> |
getChangeModeForField(OrderableField field)
Returns the
BulkEditMultiSelectFieldOption for the system field or null in case the field does not
have multiple change modes configured. |
BulkEditMultiSelectFieldOption |
getChangeModeOptionById(String id)
Returns the change mode option for option id.
|
Collection<BulkEditMultiSelectFieldOption> |
getChangeModeOptions()
Returns the list of change mode options which are available for the system field.
|
Collection<BulkEditMultiSelectFieldOption> |
getChangeModeOptionsForField(OrderableField<?> field)
Returns the list of change mode options which are available for the given system field.
|
BulkEditMultiSelectFieldOption |
getDefaultChangeModeOption()
Returns the default change mode option for the field.
|
BulkEditMultiSelectFieldOption |
getDefaultChangeModeOptionForField(OrderableField<?> field)
Returns the default change mode option for the given field.
|
String |
getMultiSelectFieldActionDescription(OrderableField field)
Returns the action description for the field based on set change mode for Bulk Edit confirmation screen.
|
boolean |
isChangeModeSelectionAllowed(OrderableField field)
Checks if the change mode selection is allowed for the field.
|
boolean |
isChangeModeSelectionAllowed(OrderableField<?> field,
String changeModeId)
Checks if the given change mode selection is valid for the field.
|
void |
setChangeModeForField(OrderableField field,
BulkEditMultiSelectFieldOption changeMode)
Sets the change mode for the system field.
|
void |
setChangeModeFromParams(OrderableField field,
Map<String,String[]> params)
Sets the change mode for the system field from the Map of parameters.
|
public static final String CHANGE_MODE_FIELD_PREFIX
public static final BulkEditMultiSelectFieldOption MULTI_SELECT_FIELD_OPTION_ADD
public static final BulkEditMultiSelectFieldOption MULTI_SELECT_FIELD_OPTION_REMOVE
public static final BulkEditMultiSelectFieldOption MULTI_SELECT_FIELD_OPTION_REPLACE
public static final BulkEditMultiSelectFieldOption MULTI_SELECT_FIELD_OPTION_REMOVE_ALL
public static final BulkEditMultiSelectFieldOption TEXT_FIELD_OPTION_ADD_AFTER
public static final BulkEditMultiSelectFieldOption TEXT_FIELD_OPTION_ADD_BEFORE
public static final BulkEditMultiSelectFieldOption TEXT_FIELD_OPTION_REPLACE
public static final Map<String,BulkEditMultiSelectFieldOption> CHANGE_MODE_LOOKUP
public static final Set<BulkEditMultiSelectFieldOption> MULTI_SELECT_CHANGE_MODES
public static final Set<BulkEditMultiSelectFieldOption> TEXT_CHANGE_MODES
public static final Map<String,Set<BulkEditMultiSelectFieldOption>> SYSTEM_FIELD_CHANGE_MODES
public static final Map<String,BulkEditMultiSelectFieldOption> DEFAULT_CHANGE_MODES
public boolean isChangeModeSelectionAllowed(OrderableField field)
BulkEditMultiSelectFieldBean
isChangeModeSelectionAllowed
in interface BulkEditMultiSelectFieldBean
field
- The field for which change mode selection allowance is retrieved.public boolean isChangeModeSelectionAllowed(OrderableField<?> field, String changeModeId)
BulkEditMultiSelectFieldBean
isChangeModeSelectionAllowed
in interface BulkEditMultiSelectFieldBean
field
- The field for which change mode selection allowance is retrieved.public String getChangeModeFieldName(OrderableField field)
BulkEditMultiSelectFieldBean
getChangeModeFieldName
in interface BulkEditMultiSelectFieldBean
field
- The field for which field name is retrieved.public void setChangeModeForField(OrderableField field, BulkEditMultiSelectFieldOption changeMode) throws IllegalArgumentException
BulkEditMultiSelectFieldBean
setChangeModeForField
in interface BulkEditMultiSelectFieldBean
field
- The field for which change mode is set.changeMode
- option to be set for field. The options defined by BulkEditMultiSelectFieldOption
IllegalArgumentException
- in case the field does not have change modes configured.public io.atlassian.fugue.Option<BulkEditMultiSelectFieldOption> getChangeModeForField(OrderableField field)
BulkEditMultiSelectFieldBean
BulkEditMultiSelectFieldOption
for the system field or null
in case the field does not
have multiple change modes configured.getChangeModeForField
in interface BulkEditMultiSelectFieldBean
field
- The field for which change mode option is retrieved.BulkEditMultiSelectFieldOption
set for the field or null
public void setChangeModeFromParams(OrderableField field, Map<String,String[]> params) throws IllegalArgumentException
BulkEditMultiSelectFieldBean
setChangeModeFromParams
in interface BulkEditMultiSelectFieldBean
field
- The field for which change mode option is set.params
- The map of parameters where the key is fieldId and the value is change mode option nameIllegalArgumentException
- in case the field does not have multiple change modes configured.public Collection<BulkEditMultiSelectFieldOption> getChangeModeOptions()
BulkEditMultiSelectFieldBean
getChangeModeOptions
in interface BulkEditMultiSelectFieldBean
BulkEditMultiSelectFieldOption
to be visible in the Bulk Edit Wizardpublic Collection<BulkEditMultiSelectFieldOption> getChangeModeOptionsForField(OrderableField<?> field)
BulkEditMultiSelectFieldBean
getChangeModeOptionsForField
in interface BulkEditMultiSelectFieldBean
field
- The system field in question.BulkEditMultiSelectFieldOption
to be visible in the Bulk Edit Wizardpublic BulkEditMultiSelectFieldOption getDefaultChangeModeOption()
BulkEditMultiSelectFieldBean
getDefaultChangeModeOption
in interface BulkEditMultiSelectFieldBean
BulkEditMultiSelectFieldOption
which is the default for the Bulk Edit Wizardpublic BulkEditMultiSelectFieldOption getDefaultChangeModeOptionForField(OrderableField<?> field)
BulkEditMultiSelectFieldBean
getDefaultChangeModeOptionForField
in interface BulkEditMultiSelectFieldBean
field
- The system field to check the default change mode for.BulkEditMultiSelectFieldOption
which is the default for the given field in the Bulk Edit Wizardpublic BulkEditMultiSelectFieldOption getChangeModeOptionById(String id)
BulkEditMultiSelectFieldBean
getChangeModeOptionById
in interface BulkEditMultiSelectFieldBean
id
- The option id for which BulkEditMultiSelectFieldOption
is retrieved.BulkEditMultiSelectFieldOption
which is the default for the Bulk Edit Wizardpublic String getMultiSelectFieldActionDescription(OrderableField field)
BulkEditMultiSelectFieldBean
getMultiSelectFieldActionDescription
in interface BulkEditMultiSelectFieldBean
field
- The field for which action description is retrieved.Copyright © 2002-2024 Atlassian. All Rights Reserved.