Skip to content

Commit

Permalink
Fixing missing accessors
Browse files Browse the repository at this point in the history
  • Loading branch information
jweinberg committed Sep 29, 2011
1 parent 829e9e3 commit a659ffb
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions src/main/java/testflight/TestflightRecorder.java
Expand Up @@ -21,17 +21,54 @@
import java.io.*;
import java.util.*;

import net.sf.json.JSONObject;
import org.apache.commons.collections.CollectionUtils;
import org.kohsuke.stapler.StaplerRequest;

public class TestflightRecorder extends Recorder
{
private String apiToken;
public String getApiToken()
{
return this.apiToken;
}

private String teamToken;
public String getTeamToken()
{
return this.teamToken;
}

private Boolean notifyTeam;
public Boolean getNotifyTeam()
{
return this.notifyTeam;
}

private String buildNotes;
public String getBuildNotes()
{
return this.buildNotes;
}

private String filePath;
public String getFilePath()
{
return this.filePath;
}

private String lists;
public String getLists()
{
return this.lists;
}

private Boolean replace;
public Boolean getReplace()
{
return this.replace;
}

@DataBoundConstructor
public TestflightRecorder(String apiToken, String teamToken, Boolean notifyTeam, String buildNotes, String filePath, String lists, Boolean replace)
{
Expand Down Expand Up @@ -148,11 +185,24 @@ public boolean evaluate(Object o) {
@Extension // This indicates to Jenkins that this is an implementation of an extension point.
public static final class DescriptorImpl extends BuildStepDescriptor<Publisher>
{
public DescriptorImpl() {
super(TestflightRecorder.class);
load();
}

public boolean isApplicable(Class<? extends AbstractProject> aClass) {
// Indicates that this builder can be used with all kinds of project types
return true;
}

@Override
public boolean configure(StaplerRequest req, JSONObject json) throws FormException {
// XXX is this now the right style?
req.bindJSON(this,json);
save();
return true;
}

/**
* This human readable name is used in the configuration screen.
*/
Expand Down

0 comments on commit a659ffb

Please sign in to comment.