Implementation
Application Security versions that use the plugin framework require that all plugins implement the com.fortify.pub.bugtracker.plugin.BatchBugTrackerPlugin interface. OpenText strongly recommends that your implementation class extends com.fortify.pub.bugtracker.plugin.AbstractBatchBugTrackerPlugin so that you can take advantage of any backward‑compatibility support that becomes available in future releases.
The BatchBugTrackerPlugin interface, which is an extension of the BatchBugTrackerPlugin is as follows:
public interface BatchBugTrackerPlugin extends BugTrackerPlugin {
public void addCommentToBug (Bug bug, java.lang.String comment,
UserAuthenticationStore credentials);
public Bug fileMultiIssueBug (MultiIssueBugSubmission bug,
UserAuthenticationStore credentials);
public java.util.List<BugParam> getBatchBugParameters (UserAuthenticationStore credentials);
public boolean isBugClosed (Bug bug, UserAuthenticationStore credentials);
public boolean isBugClosedAndCanReOpen (Bug bug, UserAuthenticationStore credentials);
public boolean isBugOpen (Bug bug, UserAuthenticationStore credentials);
public java.util.List<BugParam> onBatchBugParameterChange
(java.lang.String changedParamIdentifier, java.util.List<BugParam> currentValues,
UserAuthenticationStore credentials);
public void reOpenBug (Bug bug, java.lang.String comment, UserAuthenticationStore credentials);
}
The BugTrackerPlugin interface, which is the base interface of the BatchBugTrackerPlugin (maintained separately for backward compatibility) is as follows:
public interface BugTrackerPlugin {
public boolean requiresAuthentication();
public List<BugTrackerConfig> getConfiguration();
public void setConfiguration(Map<String, String> configuration);
public void testConfiguration(UserAuthenticationStore credentials);
public String getShortDisplayName();
public String getLongDisplayName();
public List<BugParam> getBugParameters(IssueDetail issueDetail,
UserAuthenticationStore credentials);
public List<BugParam> onParameterChange(IssueDetail issueDetail, String changedParamIdentifier,
List<BugParam> currentValues, UserAuthenticationStore credentials);
public Bug fileBug(BugSubmission bug, UserAuthenticationStore credentials);
public void validateCredentials(UserAuthenticationStore credentials);
public Bug fetchBugDetails(String bugId, UserAuthenticationStorecredentials);
public String getBugDeepLink(String bugId);
}