public FieldLayout getFieldLayout(Long fieldLayoutId) { if (fieldLayoutId == null) { return fieldLayoutManager.getEditableDefaultFieldLayout(); } else { return fieldLayoutManager.getEditableFieldLayout(fieldLayoutId); } }
public FieldLayoutScheme getFieldLayoutScheme() { if (fieldLayoutScheme == null) { fieldLayoutScheme = fieldLayoutManager.getMutableFieldLayoutScheme(getId()); } return fieldLayoutScheme; }
public Collection getFieldLayouts() { if (editableFieldLayouts == null) { editableFieldLayouts = fieldLayoutManager.getEditableFieldLayouts(); } return editableFieldLayouts; }
private String getCommentHtml(Issue issue, Action action) { final OperationContext context = (OperationContext) action; final MapBuilder<String, Object> displayParams = MapBuilder.newBuilder(); displayParams.add("theme", "aui"); displayParams.add("noHeader", true); final FieldLayout fieldLayout = fieldLayoutManager.getFieldLayout(issue); final FieldLayoutItem commentFieldLayoutItem = fieldLayout.getFieldLayoutItem("comment"); final OrderableField commentField = commentFieldLayoutItem.getOrderableField(); return commentField.getCreateHtml( commentFieldLayoutItem, context, action, issue, displayParams.toMap()); }