/** * Returns the owner update. * * @return owner update */ public OwnerUpdate getOwnerUpdate() { return getExtension(OwnerUpdate.class); }
/** * Returns the blocked on updates. * * @return blocked on updates */ public List<BlockedOnUpdate> getBlockedOnUpdates() { return getRepeatingExtension(BlockedOnUpdate.class); }
/** * Returns whether it has the summary. * * @return whether it has the summary */ public boolean hasSummary() { return hasExtension(Summary.class); }
/** * Sets the status. * * @param status status or <code>null</code> to reset */ public void setStatus(Status status) { if (status == null) { removeExtension(Status.class); } else { setExtension(status); } }
@Override public void declareExtensions(ExtensionProfile extProfile) { if (extProfile.isDeclared(IssueCommentsEntry.class)) { return; } super.declareExtensions(extProfile); extProfile.declare(IssueCommentsEntry.class, SendEmail.class); extProfile.declare(IssueCommentsEntry.class, Updates.class); new Updates().declareExtensions(extProfile); }
/** * Returns whether it has the cc updates. * * @return whether it has the cc updates */ public boolean hasCcUpdates() { return hasRepeatingExtension(CcUpdate.class); }
/** * Adds a new cc update. * * @param ccUpdate cc update */ public void addCcUpdate(CcUpdate ccUpdate) { getCcUpdates().add(ccUpdate); }
/** * Adds a new label. * * @param label label */ public void addLabel(Label label) { getLabels().add(label); }
/** * Sets the status. * * @param status status or <code>null</code> to reset */ public void setStatus(Status status) { if (status == null) { removeExtension(Status.class); } else { setExtension(status); } }
@Override public void declareExtensions(ExtensionProfile extProfile) { if (extProfile.isDeclared(IssueCommentsEntry.class)) { return; } super.declareExtensions(extProfile); extProfile.declare(IssueCommentsEntry.class, IssuesLink.getDefaultDescription(false, true)); extProfile.declare(IssueCommentsEntry.class, SendEmail.class); extProfile.declare(IssueCommentsEntry.class, Updates.class); new Updates().declareExtensions(extProfile); }
/** * Returns whether it has the labels. * * @return whether it has the labels */ public boolean hasLabels() { return hasRepeatingExtension(Label.class); }
/** * Adds a new cc update. * * @param ccUpdate cc update */ public void addCcUpdate(CcUpdate ccUpdate) { getCcUpdates().add(ccUpdate); }
/** * Adds a new label. * * @param label label */ public void addLabel(Label label) { getLabels().add(label); }
/** * Sets the merged into update. * * @param mergedIntoUpdate merged into update or <code>null</code> to reset */ public void setMergedIntoUpdate(MergedIntoUpdate mergedIntoUpdate) { if (mergedIntoUpdate == null) { removeExtension(MergedIntoUpdate.class); } else { setExtension(mergedIntoUpdate); } }
/** * Returns whether it has the owner update. * * @return whether it has the owner update */ public boolean hasOwnerUpdate() { return hasExtension(OwnerUpdate.class); }
/** * Returns the status. * * @return status */ public Status getStatus() { return getExtension(Status.class); }
/** * Returns whether it has the cc updates. * * @return whether it has the cc updates */ public boolean hasCcUpdates() { return hasRepeatingExtension(CcUpdate.class); }
/** * Returns the labels. * * @return labels */ public List<Label> getLabels() { return getRepeatingExtension(Label.class); }
/** * Sets the summary. * * @param summary summary or <code>null</code> to reset */ public void setSummary(Summary summary) { if (summary == null) { removeExtension(Summary.class); } else { setExtension(summary); } }
/** * Returns whether it has the owner update. * * @return whether it has the owner update */ public boolean hasOwnerUpdate() { return hasExtension(OwnerUpdate.class); }