public class BulkEditMultiSelectFieldBeanImpl extends Object implements BulkEditMultiSelectFieldBean
BulkEditMultiSelectFieldOption
Modifier and Type | Field and Description |
---|---|
static String |
ADD_ID |
static BulkEditMultiSelectFieldOption |
addOption |
static List<String> |
BULK_EDIT_FIELDS_WITH_CHANGE_MODE_SELECTION
List representing Multi-Select System Fields for which user should be able to select change mode.
|
static String |
CHANGE_MODE_FIELD_PREFIX |
Map<String,BulkEditMultiSelectFieldOption> |
changeModeOptions |
static Map<String,BulkEditMultiSelectFieldOption> |
multiSelectChangeModeOptions |
static String |
REMOVE_ID |
static String |
REMOVEALL_ID |
static BulkEditMultiSelectFieldOption |
removeAllOption |
static BulkEditMultiSelectFieldOption |
removeOption |
static String |
REPLACE_ID |
static BulkEditMultiSelectFieldOption |
replaceOption |
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 multi-select/multiple values system field.
|
com.atlassian.fugue.Option<BulkEditMultiSelectFieldOption> |
getChangeModeForField(OrderableField field)
Returns the
BulkEditMultiSelectFieldOption for the multi-select/multiple values system field
or null in case the field is not multi-select/multiple values system field |
BulkEditMultiSelectFieldOption |
getChangeModeOptionById(String id)
Returns change mode option for given option id.
|
Collection<BulkEditMultiSelectFieldOption> |
getChangeModeOptions()
Returns list of change mode options which are available for Multi-Select System Fields.
|
BulkEditMultiSelectFieldOption |
getDefaultChangeModeOption()
Returns the default change mode option for multi-select/multiple values system field.
|
String |
getMultiSelectFieldActionDescription(OrderableField field)
Returns I18n key representing action description for field for Bulk Edit Wizard Confirmation screen.
|
boolean |
isChangeModeSelectionAllowed(OrderableField field)
Checks if the change mode selection is allowed for the field.
|
void |
setChangeModeForField(OrderableField field,
BulkEditMultiSelectFieldOption changeMode)
Sets the change mode for multi-select/multiple values system field.
|
void |
setChangeModeFromParams(OrderableField field,
Map<String,String[]> params)
Sets the change mode for the multi-select/multiple values system field from the Map of parameters.
|
public static final String CHANGE_MODE_FIELD_PREFIX
public static final List<String> BULK_EDIT_FIELDS_WITH_CHANGE_MODE_SELECTION
public static final String ADD_ID
public static final String REMOVE_ID
public static final String REPLACE_ID
public static final String REMOVEALL_ID
public static final BulkEditMultiSelectFieldOption addOption
public static final BulkEditMultiSelectFieldOption replaceOption
public static final BulkEditMultiSelectFieldOption removeOption
public static final BulkEditMultiSelectFieldOption removeAllOption
public static final Map<String,BulkEditMultiSelectFieldOption> multiSelectChangeModeOptions
public Map<String,BulkEditMultiSelectFieldOption> changeModeOptions
public boolean isChangeModeSelectionAllowed(OrderableField field)
BulkEditMultiSelectFieldBean
). Returns false in all other cases.isChangeModeSelectionAllowed
in interface BulkEditMultiSelectFieldBean
field
- public String getChangeModeFieldName(OrderableField field)
getChangeModeFieldName
in interface BulkEditMultiSelectFieldBean
field
- public void setChangeModeForField(OrderableField field, BulkEditMultiSelectFieldOption changeMode) throws IllegalArgumentException
setChangeModeForField
in interface BulkEditMultiSelectFieldBean
field
- changeMode
- option to be set for field. The options defined by BulkEditMultiSelectFieldOption
IllegalArgumentException
- in case field is not multi-select/multiple values system fieldpublic com.atlassian.fugue.Option<BulkEditMultiSelectFieldOption> getChangeModeForField(OrderableField field)
BulkEditMultiSelectFieldOption
for the multi-select/multiple values system field
or null
in case the field is not multi-select/multiple values system fieldgetChangeModeForField
in interface BulkEditMultiSelectFieldBean
field
- BulkEditMultiSelectFieldOption
set for the field or null
public void setChangeModeFromParams(OrderableField field, Map<String,String[]> params) throws IllegalArgumentException
setChangeModeFromParams
in interface BulkEditMultiSelectFieldBean
field
- params
- The map of parameters where the key is fieldId and the value is change mode option nameIllegalArgumentException
- in case the field is not multi-select/multiple values system fieldpublic Collection<BulkEditMultiSelectFieldOption> getChangeModeOptions()
getChangeModeOptions
in interface BulkEditMultiSelectFieldBean
BulkEditMultiSelectFieldOption
to be visible in Bulk Edit Wizardpublic BulkEditMultiSelectFieldOption getDefaultChangeModeOption()
getDefaultChangeModeOption
in interface BulkEditMultiSelectFieldBean
BulkEditMultiSelectFieldOption
which is the default for the Bulk Edit Wizardpublic BulkEditMultiSelectFieldOption getChangeModeOptionById(String id)
getChangeModeOptionById
in interface BulkEditMultiSelectFieldBean
id
- BulkEditMultiSelectFieldOption
for given option idpublic String getMultiSelectFieldActionDescription(OrderableField field)
getMultiSelectFieldActionDescription
in interface BulkEditMultiSelectFieldBean
field
- The field for which action description is retrieved.Copyright © 2002-2015 Atlassian. All Rights Reserved.