Class FieldModelFactory
java.lang.Object
com.atlassian.jira.plugin.viewissue.web.FieldModelFactory
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFieldModelFactory(FieldLayoutManager fieldLayoutManager, DateFieldModelFactory dateFieldModelFactory, FieldScreenRendererFactory fieldScreenRendererFactory) -
Method Summary
Modifier and TypeMethodDescriptiongetFieldModels(Map<String, Object> context) Gets the view models for the fields requested in order from the given context.booleanhasRequestedFields(Map<String, Object> contextMap) Determines if the given context map has in it a requested permutation of fields.
-
Field Details
-
COMPOSED_BY_FIELDS
- See Also:
-
-
Constructor Details
-
FieldModelFactory
public FieldModelFactory(FieldLayoutManager fieldLayoutManager, DateFieldModelFactory dateFieldModelFactory, FieldScreenRendererFactory fieldScreenRendererFactory)
-
-
Method Details
-
getFieldModels
Gets the view models for the fields requested in order from the given context.- Parameters:
context- context containing a permutation of fields under the key FieldModelFactory.COMPOSED_BY_FIELDS- Returns:
-
hasRequestedFields
Determines if the given context map has in it a requested permutation of fields.- Parameters:
contextMap-- Returns:
- true if the context contains an ordering.
-