public class CustomFieldTypeModuleDescriptorImpl extends AbstractJiraModuleDescriptor<CustomFieldType> implements CustomFieldTypeModuleDescriptor
Modifier and Type | Field and Description |
---|---|
static String |
REST_SERIALIZER_ELEMENT_NAME |
static String |
SERIALIZER_CLASS_ARGUMENT_NAME |
static String |
VERSION_NUMBER_ARGUMENT_NAME |
key, moduleClass, moduleClassName, moduleFactory, name, plugin, resources, singleton
MANAGED_DESC, MANAGED_FLAG, TEMPLATE_NAME_BULK_MOVE, TEMPLATE_NAME_COLUMN, TEMPLATE_NAME_EDIT, TEMPLATE_NAME_EDIT_DEFAULT, TEMPLATE_NAME_VIEW, TEMPLATE_NAME_XML, VELCITY_ACTION_PARAM, VELOCITY_VALUE_PARAM
Constructor and Description |
---|
CustomFieldTypeModuleDescriptorImpl(JiraAuthenticationContext authenticationContext,
RendererManager rendererManager,
com.atlassian.plugin.module.ModuleFactory moduleFactory,
CustomFieldDefaultVelocityParams customFieldDefaultVelocityParams) |
Modifier and Type | Method and Description |
---|---|
void |
enabled() |
String |
getBulkMoveHtml(FieldConfig config,
Map customFieldValuesHolder,
Issue issue,
webwork.action.Action action,
Map displayParameters,
FieldLayoutItem fieldLayoutItem,
Map<Long,BulkMoveHelper.DistinctValueResult> distinctValues,
BulkMoveHelper bulkMoveHelper) |
Set<CustomFieldTypeCategory> |
getCategories()
The set of categories that this CustomFieldType has declared as being a member of.
|
String |
getColumnViewHtml(CustomField field,
Object value,
Issue issue,
Map displayParams,
FieldLayoutItem fieldLayoutItem) |
String |
getDefaultViewHtml(FieldConfig fieldConfig,
FieldLayoutItem fieldLayoutItem) |
String |
getEditDefaultHtml(FieldConfig config,
Map customFieldValuesHolder,
Issue issue,
webwork.action.Action action,
Map displayParameters,
FieldLayoutItem fieldLayoutItem) |
String |
getEditHtml(FieldConfig config,
Map customFieldValuesHolder,
Issue issue,
webwork.action.Action action,
Map displayParameters,
FieldLayoutItem fieldLayoutItem) |
String |
getHtml(String resourceName,
Map<String,?> startingParams) |
ConfigurationItemAccessLevel |
getManagedAccessLevel() |
String |
getManagedDescriptionKey() |
Map<Integer,CustomFieldRestSerializer> |
getRestSerializers() |
Set<String> |
getValidSearcherKeys()
Returns the list of Searchers that this CustomFieldType declares as usable to search itself.
|
String |
getViewHtml(CustomField field,
Object value,
Issue issue,
FieldLayoutItem fieldLayoutItem) |
String |
getViewHtml(CustomField field,
Object value,
Issue issue,
FieldLayoutItem fieldLayoutItem,
Map displayParameters) |
String |
getViewXML(CustomField field,
Issue issue,
FieldLayoutItem fieldLayoutItem,
boolean raw) |
void |
init(com.atlassian.plugin.Plugin plugin,
org.dom4j.Element element) |
boolean |
isColumnViewTemplateExists() |
boolean |
isEditTemplateExists() |
boolean |
isTypeManaged()
Is this custom field type a "managed" type? The provider of this type may want to control the circumstances in
which it is used.
|
boolean |
isViewTemplateExists() |
boolean |
isXMLTemplateExists() |
assertResourceExists, createModule, createVelocityParams, disabled, getAuthenticationContext, getClassLoader, getDescription, getHtml, getI18nBean, getModule, getName, getText, getText, isResourceExist, writeHtml
assertModuleClassImplements, checkPermissions, destroy, destroy, equals, getCompleteKey, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getModuleClassName, getParams, getPlugin, getPluginKey, getRequiredPermissions, getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation, hashCode, isEnabled, isEnabledByDefault, isSingleton, isSingletonByDefault, isSystemModule, loadClass, loadClass, provideValidationRules, satisfiesMinJavaVersion, setPlugin, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getHtml, getI18nBean, writeHtml
destroy, destroy, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModule, getModuleClass, getName, getParams, getPlugin, getPluginKey, hashCode, isEnabled, isEnabledByDefault, isSystemModule, satisfiesMinJavaVersion
public static final String REST_SERIALIZER_ELEMENT_NAME
public static final String VERSION_NUMBER_ARGUMENT_NAME
public static final String SERIALIZER_CLASS_ARGUMENT_NAME
public CustomFieldTypeModuleDescriptorImpl(JiraAuthenticationContext authenticationContext, RendererManager rendererManager, com.atlassian.plugin.module.ModuleFactory moduleFactory, CustomFieldDefaultVelocityParams customFieldDefaultVelocityParams)
public void init(com.atlassian.plugin.Plugin plugin, org.dom4j.Element element) throws com.atlassian.plugin.PluginParseException
init
in interface com.atlassian.plugin.ModuleDescriptor<CustomFieldType>
init
in class AbstractJiraModuleDescriptor<CustomFieldType>
com.atlassian.plugin.PluginParseException
public Set<String> getValidSearcherKeys()
CustomFieldTypeModuleDescriptor
Note that it is also possible for a CustomFieldSearcher to declare a CustomFieldType that it is able to search on.
getValidSearcherKeys
in interface CustomFieldTypeModuleDescriptor
public Set<CustomFieldTypeCategory> getCategories()
CustomFieldTypeModuleDescriptor
getCategories
in interface CustomFieldTypeModuleDescriptor
public void enabled()
enabled
in interface com.atlassian.plugin.StateAware
enabled
in class AbstractJiraModuleDescriptor<CustomFieldType>
public boolean isViewTemplateExists()
isViewTemplateExists
in interface CustomFieldTypeModuleDescriptor
public boolean isColumnViewTemplateExists()
isColumnViewTemplateExists
in interface CustomFieldTypeModuleDescriptor
public boolean isEditTemplateExists()
isEditTemplateExists
in interface CustomFieldTypeModuleDescriptor
public boolean isXMLTemplateExists()
isXMLTemplateExists
in interface CustomFieldTypeModuleDescriptor
public boolean isTypeManaged()
CustomFieldTypeModuleDescriptor
isTypeManaged
in interface CustomFieldTypeModuleDescriptor
@Nullable public ConfigurationItemAccessLevel getManagedAccessLevel()
getManagedAccessLevel
in interface CustomFieldTypeModuleDescriptor
public String getManagedDescriptionKey()
getManagedDescriptionKey
in interface CustomFieldTypeModuleDescriptor
public String getEditHtml(FieldConfig config, Map customFieldValuesHolder, Issue issue, webwork.action.Action action, Map displayParameters, FieldLayoutItem fieldLayoutItem)
getEditHtml
in interface CustomFieldTypeModuleDescriptor
public String getBulkMoveHtml(FieldConfig config, Map customFieldValuesHolder, Issue issue, webwork.action.Action action, Map displayParameters, FieldLayoutItem fieldLayoutItem, Map<Long,BulkMoveHelper.DistinctValueResult> distinctValues, BulkMoveHelper bulkMoveHelper)
getBulkMoveHtml
in interface CustomFieldTypeModuleDescriptor
public String getEditDefaultHtml(FieldConfig config, Map customFieldValuesHolder, Issue issue, webwork.action.Action action, Map displayParameters, FieldLayoutItem fieldLayoutItem)
getEditDefaultHtml
in interface CustomFieldTypeModuleDescriptor
public String getColumnViewHtml(CustomField field, Object value, Issue issue, Map displayParams, FieldLayoutItem fieldLayoutItem)
getColumnViewHtml
in interface CustomFieldTypeModuleDescriptor
public String getViewHtml(CustomField field, Object value, Issue issue, FieldLayoutItem fieldLayoutItem)
getViewHtml
in interface CustomFieldTypeModuleDescriptor
public String getViewHtml(CustomField field, Object value, Issue issue, FieldLayoutItem fieldLayoutItem, Map displayParameters)
getViewHtml
in interface CustomFieldTypeModuleDescriptor
public String getViewXML(CustomField field, Issue issue, FieldLayoutItem fieldLayoutItem, boolean raw)
getViewXML
in interface CustomFieldTypeModuleDescriptor
public String getDefaultViewHtml(FieldConfig fieldConfig, FieldLayoutItem fieldLayoutItem)
getDefaultViewHtml
in interface CustomFieldTypeModuleDescriptor
public String getHtml(String resourceName, Map<String,?> startingParams)
getHtml
in interface JiraResourcedModuleDescriptor<CustomFieldType>
getHtml
in class AbstractJiraModuleDescriptor<CustomFieldType>
public Map<Integer,CustomFieldRestSerializer> getRestSerializers()
getRestSerializers
in interface CustomFieldTypeModuleDescriptor
CustomFieldRestSerializer
s which serialize customfield to its another json representation.
Keys of the returned map are names of these alternative representations.Copyright © 2002-2015 Atlassian. All Rights Reserved.