com.clarolab.bamboo.entities.BambooPlan Maven / Gradle / Ivy
package com.clarolab.bamboo.entities;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@ToString(callSuper = true)
public class BambooPlan extends BambooBase {
@ToString.Include
private String projectName;
private boolean enabled;
private boolean isActive;
private boolean isBuilding;
//private BambooKey planKey;
public String getPlanKey(){
//return planKey.getKey();
return getKey();
}
public String getUrl(){
return getLink().getHref().replaceFirst("rest/api/.*/plan", "browse");
}
}