public RemoteIssueLinkBean build() { final URI self = createSelfLink(remoteIssueLink); return new RemoteIssueLinkBean( remoteIssueLink.getId(), self, remoteIssueLink.getGlobalId(), remoteIssueLink.getApplicationType(), remoteIssueLink.getApplicationName(), remoteIssueLink.getRelationship(), remoteIssueLink.getUrl(), remoteIssueLink.getTitle(), remoteIssueLink.getSummary(), remoteIssueLink.getIconUrl(), remoteIssueLink.getIconTitle(), remoteIssueLink.isResolved(), remoteIssueLink.getStatusIconUrl(), remoteIssueLink.getStatusIconTitle(), remoteIssueLink.getStatusIconLink() ); }
status.put("resolved", remoteIssueLink.isResolved()); final JSONObject statusIcon = new JSONObject(); statusIcon.put("url16x16", remoteIssueLink.getStatusIconUrl());
public RemoteIssueLinkBuilder(final RemoteIssueLink remoteIssueLink) { id(remoteIssueLink.getId()); issueId(remoteIssueLink.getIssueId()); globalId(remoteIssueLink.getGlobalId()); title(remoteIssueLink.getTitle()); summary(remoteIssueLink.getSummary()); url(remoteIssueLink.getUrl()); iconUrl(remoteIssueLink.getIconUrl()); iconTitle(remoteIssueLink.getIconTitle()); relationship(remoteIssueLink.getRelationship()); resolved(remoteIssueLink.isResolved()); statusName(remoteIssueLink.getStatusName()); statusDescription(remoteIssueLink.getStatusDescription()); statusIconUrl(remoteIssueLink.getStatusIconUrl()); statusIconTitle(remoteIssueLink.getStatusIconTitle()); statusIconLink(remoteIssueLink.getStatusIconLink()); statusCategoryKey(remoteIssueLink.getStatusCategoryKey()); statusCategoryColorName(remoteIssueLink.getStatusCategoryColorName()); applicationType(remoteIssueLink.getApplicationType()); applicationName(remoteIssueLink.getApplicationName()); }
@Override public FieldMap fieldMapFrom(final RemoteIssueLink value) { return new FieldMap("id", value.getId()) .add("issueid", value.getIssueId()) .add("globalid", value.getGlobalId()) .add("title", value.getTitle()) .add("summary", value.getSummary()) .add("url", value.getUrl()) .add("iconurl", value.getIconUrl()) .add("icontitle", value.getIconTitle()) .add("relationship", value.getRelationship()) .add("resolved", booleanToString(value.isResolved())) .add("statusname", value.getStatusName()) .add("statusdescription", value.getStatusDescription()) .add("statusiconurl", value.getStatusIconUrl()) .add("statusicontitle", value.getStatusIconTitle()) .add("statusiconlink", value.getStatusIconLink()) .add("statuscategorykey", value.getStatusCategoryKey()) .add("statuscategorycolorname", value.getStatusCategoryColorName()) .add("applicationtype", value.getApplicationType()) .add("applicationname", value.getApplicationName()); }