Exemplo n.º 1
0
 public String getMappingViewHtml(
     BulkEditBean bulkEditBean, OrderableField field, Long id, final boolean showProject) {
   final FieldLayoutItem fieldLayoutItem =
       bulkEditBean.getTargetFieldLayout().getFieldLayoutItem(field);
   final Issue baseIssue = bulkEditBean.getFirstTargetIssueObject();
   return getViewHtmlForId(baseIssue, fieldLayoutItem, field, id, showProject);
 }
Exemplo n.º 2
0
 public String getNewViewHtml(BulkEditBean bulkEditBean, OrderableField field) {
   final Map<String, Object> displayParameters =
       MapBuilder.<String, Object>newBuilder("readonly", Boolean.TRUE)
           .add("nolink", Boolean.TRUE)
           .add(
               "prefix",
               bulkEditBean.getProject().getString("id")
                   + "_"
                   + bulkEditBean.getIssueType().getString("id")
                   + "_")
           .toMap();
   return field.getViewHtml(
       bulkEditBean.getTargetFieldLayout().getFieldLayoutItem(field),
       this,
       bulkEditBean.getFirstTargetIssueObject(),
       displayParameters);
 }