|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.issue.fields.AbstractField
com.atlassian.jira.issue.fields.AbstractOrderableField
public abstract class AbstractOrderableField
Copyright (c) 2002-2004 All rights reserved.
Field Summary |
---|
Fields inherited from class com.atlassian.jira.issue.fields.AbstractField |
---|
authenticationContext |
Fields inherited from interface com.atlassian.jira.issue.fields.OrderableField |
---|
MOVE_ISSUE_PARAM_KEY, NO_HEADER_PARAM_KEY, TEMPLATE_DIRECTORY_PATH |
Constructor Summary | |
---|---|
AbstractOrderableField(String id,
String name,
com.atlassian.velocity.VelocityManager velocityManager,
ApplicationProperties applicationProperties,
JiraAuthenticationContext authenticationContext,
PermissionManager permissionManager,
SearchHandlerFactory searcherHandlerFactory)
|
Method Summary | |
---|---|
SearchHandler |
createAssociatedSearchHandler()
Return SearchHandler for the field. |
protected ApplicationProperties |
getApplicationProperties()
|
String |
getBulkEditHtml(OperationContext operationContext,
webwork.action.Action action,
BulkEditBean bulkEditBean,
Map displayParameters)
Returns HTML that should be shown when the issue is being bulk edited. |
String |
getCreateHtml(FieldLayoutItem fieldLayoutItem,
OperationContext operationContext,
webwork.action.Action action,
Issue issue)
Returns the HTML that should be shown when the issue is being created. |
String |
getEditHtml(FieldLayoutItem fieldLayoutItem,
OperationContext operationContext,
webwork.action.Action action,
Issue issue)
Returns HTML that should be shown when the issue is being edited. |
protected PermissionManager |
getPermissionManager()
|
protected abstract Object |
getRelevantParams(Map params)
|
protected Map<String,Object> |
getVelocityParams(FieldLayoutItem fieldLayoutItem,
webwork.action.Action action,
Issue issue,
Map displayParams)
|
protected Map<String,Object> |
getVelocityParams(Issue issue)
|
String |
getViewHtml(FieldLayoutItem fieldLayoutItem,
webwork.action.Action action,
Issue issue)
|
protected boolean |
hasBulkUpdatePermission(BulkEditBean bulkEditBean,
Issue issue)
|
boolean |
hasParam(Map parameters)
Basic implementation where the relevant params object is null if no elements are present. |
protected boolean |
hasPermission(Issue issue,
int permissionId)
|
protected boolean |
isHidden(Collection fieldLayouts)
Determines if the field is hidden in at least one field layout. |
void |
populateFromParams(Map fieldValuesHolder,
Map parameters)
Populate the fieldValuesHolder with a value from (web) parameters. |
protected boolean |
rendererTypesEqual(String oldRendererType,
String newRendererType)
|
protected String |
renderTemplate(String template,
Map velocityParams)
|
protected boolean |
valuesEqual(Object value,
Object currentValue)
|
Methods inherited from class com.atlassian.jira.issue.fields.AbstractField |
---|
compareTo, equals, getAuthenticationContext, getId, getName, getNameKey, hashCode |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.jira.issue.fields.OrderableField |
---|
availableForBulkEdit, canRemoveValueFromIssueObject, createValue, getCreateHtml, getDefaultValue, getEditHtml, getValueFromParams, getViewHtml, getViewHtml, hasValue, isShown, needsMove, populateDefaults, populateForMove, populateFromIssue, populateParamsFromString, removeValueFromIssueObject, updateIssue, updateValue, validateParams |
Methods inherited from interface com.atlassian.jira.issue.fields.Field |
---|
getId, getName, getNameKey |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Constructor Detail |
---|
public AbstractOrderableField(String id, String name, com.atlassian.velocity.VelocityManager velocityManager, ApplicationProperties applicationProperties, JiraAuthenticationContext authenticationContext, PermissionManager permissionManager, SearchHandlerFactory searcherHandlerFactory)
Method Detail |
---|
public String getCreateHtml(FieldLayoutItem fieldLayoutItem, OperationContext operationContext, webwork.action.Action action, Issue issue)
OrderableField
getCreateHtml
in interface OrderableField
fieldLayoutItem
- FieldLayoutItemoperationContext
- OperationContextaction
- Actionissue
- Issue
public String getEditHtml(FieldLayoutItem fieldLayoutItem, OperationContext operationContext, webwork.action.Action action, Issue issue)
OrderableField
getEditHtml
in interface OrderableField
fieldLayoutItem
- FieldLayoutItemoperationContext
- OperationContextaction
- Actionissue
- Issue
public SearchHandler createAssociatedSearchHandler()
SearchableField
SearchHandler
for the field. This object tells JIRA how to search for values within the field.
createAssociatedSearchHandler
in interface SearchableField
null
when no searcher
is associated with the field. This will mainly happen when a customfield is configured to have no
searcher.public String getBulkEditHtml(OperationContext operationContext, webwork.action.Action action, BulkEditBean bulkEditBean, Map displayParameters)
OrderableField.getEditHtml(com.atlassian.jira.issue.fields.layout.field.FieldLayoutItem, com.atlassian.jira.issue.customfields.OperationContext, webwork.action.Action, com.atlassian.jira.issue.Issue, java.util.Map)
method with null for FieldLayoutItem
and the first issue in the collection}
getBulkEditHtml
in interface OrderableField
operationContext
- OperationContextaction
- ActionbulkEditBean
- BulkEditBeandisplayParameters
- Map of display parameters.
public String getViewHtml(FieldLayoutItem fieldLayoutItem, webwork.action.Action action, Issue issue)
getViewHtml
in interface OrderableField
public boolean hasParam(Map parameters)
hasParam
in interface OrderableField
parameters
- Map of parameters.
public void populateFromParams(Map fieldValuesHolder, Map parameters)
OrderableField
populateFromParams
in interface OrderableField
fieldValuesHolder
- The fieldValuesHolder Map to be populated.parameters
- Map of parameters.protected String renderTemplate(String template, Map velocityParams)
protected ApplicationProperties getApplicationProperties()
protected abstract Object getRelevantParams(Map params)
protected Map<String,Object> getVelocityParams(FieldLayoutItem fieldLayoutItem, webwork.action.Action action, Issue issue, Map displayParams)
protected Map<String,Object> getVelocityParams(Issue issue)
protected boolean valuesEqual(Object value, Object currentValue)
protected boolean isHidden(Collection fieldLayouts)
fieldLayouts
- the field layouts to check
protected boolean rendererTypesEqual(String oldRendererType, String newRendererType)
protected boolean hasPermission(Issue issue, int permissionId)
protected boolean hasBulkUpdatePermission(BulkEditBean bulkEditBean, Issue issue)
protected PermissionManager getPermissionManager()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |