code stringlengths 23 201k | docstring stringlengths 17 96.2k | func_name stringlengths 0 235 | language stringclasses 1
value | repo stringlengths 8 72 | path stringlengths 11 317 | url stringlengths 57 377 | license stringclasses 7
values |
|---|---|---|---|---|---|---|---|
@Override
public int hashCode() {
int result = value != null ? value.hashCode() : 0;
result = 31 * result + (action != null ? action.hashCode() : 0);
return result;
} | Understands What values are selected on multiple agents | hashCode | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/TriStateSelection.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/TriStateSelection.java | Apache-2.0 |
@Override public String toString() {
return "TriStateSelection{" +
"value='" + value + '\'' +
", action='" + action + '\'' +
", enabled='" + enabled + '\'' +
'}';
} | Understands What values are selected on multiple agents | toString | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/TriStateSelection.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/TriStateSelection.java | Apache-2.0 |
@Override
public int compareTo(TriStateSelection other) {
return comparator.compare(this.value,other.value);
} | Understands What values are selected on multiple agents | compareTo | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/TriStateSelection.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/TriStateSelection.java | Apache-2.0 |
public UserSourceType getUserSourceType() {
return userSourceType;
} | Understands the results coming from LDAP or Password file. | getUserSourceType | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/UserSearchModel.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/UserSearchModel.java | Apache-2.0 |
public User getUser() {
return user;
} | Understands the results coming from LDAP or Password file. | getUser | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/UserSearchModel.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/UserSearchModel.java | Apache-2.0 |
@Override public String toString() {
return "UserSearchModel{" +
"user=" + user +
", userSourceType=" + userSourceType +
'}';
} | Understands the results coming from LDAP or Password file. | toString | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/UserSearchModel.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/UserSearchModel.java | Apache-2.0 |
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
UserSearchModel that = (UserSearchModel) o;
if (user != null ? !user.equals(that.user) : that.user != n... | Understands the results coming from LDAP or Password file. | equals | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/UserSearchModel.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/UserSearchModel.java | Apache-2.0 |
@Override
public int hashCode() {
int result = user != null ? user.hashCode() : 0;
result = 31 * result + (userSourceType != null ? userSourceType.hashCode() : 0);
return result;
} | Understands the results coming from LDAP or Password file. | hashCode | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/UserSearchModel.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/UserSearchModel.java | Apache-2.0 |
@Override
public String displayString() {
return "Plugin";
} | Understand source of where users can be added from. | displayString | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/UserSourceType.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/UserSourceType.java | Apache-2.0 |
@Override public boolean hasHistoricalData() {
return false;
} | Understands empty pipeline instance for scenarios where there is no instance to be shown | hasHistoricalData | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/EmptyPipelineInstanceModel.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/EmptyPipelineInstanceModel.java | Apache-2.0 |
@Override public Revision getCurrentRevision(String requestedMaterialName) {
return UNKNOWN_REVISION;
} | Understands empty pipeline instance for scenarios where there is no instance to be shown | getCurrentRevision | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/EmptyPipelineInstanceModel.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/EmptyPipelineInstanceModel.java | Apache-2.0 |
public List<PipelineModel> getPipelineModels() {
return pipelinesModels;
} | Understands history of pipelines run within an environment | getPipelineModels | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/Environment.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/Environment.java | Apache-2.0 |
public String getName() {
return name;
} | Understands history of pipelines run within an environment | getName | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/Environment.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/Environment.java | Apache-2.0 |
public boolean hasNewRevisions() {
for (PipelineModel pipelinesModel : pipelinesModels) {
if (pipelinesModel.hasNewRevisions()) {
return true;
}
}
return false;
} | Understands history of pipelines run within an environment | hasNewRevisions | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/Environment.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/Environment.java | Apache-2.0 |
@Override
public boolean isScheduled() {
return false;
} | TODO: May be rename this to NullStageInstanceModel? Rails side needs to change as well | isScheduled | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/NullStageHistoryItem.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/NullStageHistoryItem.java | Apache-2.0 |
@Override
public Date getScheduledDate() {
return new Date(System.currentTimeMillis() + Integer.MAX_VALUE);
} | TODO: May be rename this to NullStageInstanceModel? Rails side needs to change as well | getScheduledDate | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/NullStageHistoryItem.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/NullStageHistoryItem.java | Apache-2.0 |
@Override
public boolean isAutoApproved() {
return this.autoApproved;
} | TODO: May be rename this to NullStageInstanceModel? Rails side needs to change as well | isAutoApproved | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/NullStageHistoryItem.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/NullStageHistoryItem.java | Apache-2.0 |
@Override
public boolean getCanReRun() {
return false;
} | TODO: May be rename this to NullStageInstanceModel? Rails side needs to change as well | getCanReRun | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/NullStageHistoryItem.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/NullStageHistoryItem.java | Apache-2.0 |
@Override
public String getApprovalTypeDescription() {
if (autoApproved) {
return "auto";
}
else {
return "manual";
}
} | TODO: May be rename this to NullStageInstanceModel? Rails side needs to change as well | getApprovalTypeDescription | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/NullStageHistoryItem.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/NullStageHistoryItem.java | Apache-2.0 |
public String getName() {
return name;
} | Understands group level aggregation of active pipelines | getName | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PipelineGroupModel.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PipelineGroupModel.java | Apache-2.0 |
public void add(PipelineModel pipelineModel) {
PipelineModel model = getExistingPipelineModelOrCacheThisOneAndGetItBack(new PipelineModel(pipelineModel, false));
for (PipelineInstanceModel pipelineInstanceModel : pipelineModel.getActivePipelineInstances()) {
model.addPipelineInstance(pipelin... | Understands group level aggregation of active pipelines | add | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PipelineGroupModel.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PipelineGroupModel.java | Apache-2.0 |
public List<PipelineModel> getPipelineModels() {
return new ArrayList<>(pipelineModels);
} | Understands group level aggregation of active pipelines | getPipelineModels | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PipelineGroupModel.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PipelineGroupModel.java | Apache-2.0 |
public PipelineModel pipelineModelForPipelineName(String pipelineName, boolean canForce, boolean canOperate, PipelinePauseInfo pipelinePauseInfo) {
return getExistingPipelineModelOrCacheThisOneAndGetItBack(new PipelineModel(pipelineName, canForce, canOperate, pipelinePauseInfo));
} | Understands group level aggregation of active pipelines | pipelineModelForPipelineName | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PipelineGroupModel.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PipelineGroupModel.java | Apache-2.0 |
public boolean containsPipeline(String pipelineName) {
return getPipelineModel(pipelineName) != null;
} | Understands group level aggregation of active pipelines | containsPipeline | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PipelineGroupModel.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PipelineGroupModel.java | Apache-2.0 |
public PipelineModel getPipelineModel(String pipelineName) {
for (PipelineModel pipelineModel : pipelineModels) {
if (pipelineModel.getName().equalsIgnoreCase(pipelineName)) {
return pipelineModel;
}
}
return null;
} | Understands group level aggregation of active pipelines | getPipelineModel | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PipelineGroupModel.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PipelineGroupModel.java | Apache-2.0 |
private PipelineModel getExistingPipelineModelOrCacheThisOneAndGetItBack(PipelineModel model) {
if (!containsPipeline(model.getName())) {
pipelineModels.add(model);
}
return getPipelineModel(model.getName());
} | Understands group level aggregation of active pipelines | getExistingPipelineModelOrCacheThisOneAndGetItBack | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PipelineGroupModel.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PipelineGroupModel.java | Apache-2.0 |
public boolean canForce() {
return canForce && !getLatestPipelineInstance().isPreparingToSchedule();
} | Note: this check should be part of the scheduling checker.
We will refactor it down to that point. | canForce | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PipelineModel.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PipelineModel.java | Apache-2.0 |
public PipelineInstanceModel getLatestPipelineInstance() {
return activePipelineInstances.first();
} | Note: this check should be part of the scheduling checker.
We will refactor it down to that point. | getLatestPipelineInstance | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PipelineModel.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PipelineModel.java | Apache-2.0 |
public PipelineInstanceModels getActivePipelineInstances() {
return activePipelineInstances;
} | Note: this check should be part of the scheduling checker.
We will refactor it down to that point. | getActivePipelineInstances | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PipelineModel.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PipelineModel.java | Apache-2.0 |
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PipelineModel that = (PipelineModel) o;
if (canForce != that.canForce) {
return false;
... | Note: this check should be part of the scheduling checker.
We will refactor it down to that point. | equals | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PipelineModel.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PipelineModel.java | Apache-2.0 |
@Override
public int hashCode() {
int result = (canForce ? 1 : 0);
result = 31 * result + (activePipelineInstances.hashCode());
return result;
} | Note: this check should be part of the scheduling checker.
We will refactor it down to that point. | hashCode | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PipelineModel.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PipelineModel.java | Apache-2.0 |
@Override public String toString() {
return this.getClass().getSimpleName() + "{" +
"canForce='" + canForce + '\'' +
", activePipelineInstances='" + activePipelineInstances + '\'' +
'}';
} | Note: this check should be part of the scheduling checker.
We will refactor it down to that point. | toString | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PipelineModel.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PipelineModel.java | Apache-2.0 |
public PipelinePauseInfo getPausedInfo() {
return pipelinePauseInfo;
} | Note: this check should be part of the scheduling checker.
We will refactor it down to that point. | getPausedInfo | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PipelineModel.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PipelineModel.java | Apache-2.0 |
public boolean canOperate() {
return canOperate;
} | Note: this check should be part of the scheduling checker.
We will refactor it down to that point. | canOperate | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PipelineModel.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PipelineModel.java | Apache-2.0 |
public boolean canAdminister() {
return canAdminister;
} | Note: this check should be part of the scheduling checker.
We will refactor it down to that point. | canAdminister | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PipelineModel.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PipelineModel.java | Apache-2.0 |
public PipelineModel updateAdministrability(boolean value) {
canAdminister = value;
return this;
} | Note: this check should be part of the scheduling checker.
We will refactor it down to that point. | updateAdministrability | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PipelineModel.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PipelineModel.java | Apache-2.0 |
@Override public boolean hasHistoricalData() {
return true;
} | Understands a pipeline that is preparing to schedule | hasHistoricalData | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PreparingToScheduleInstance.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PreparingToScheduleInstance.java | Apache-2.0 |
@Override public Revision getCurrentRevision(String requestedMaterialName) {
return new PreparingToScheduleRevision();
} | Understands a pipeline that is preparing to schedule | getCurrentRevision | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PreparingToScheduleInstance.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PreparingToScheduleInstance.java | Apache-2.0 |
@Override public Revision getCurrentRevision(MaterialConfig material) {
return new PreparingToScheduleRevision();
} | Understands a pipeline that is preparing to schedule | getCurrentRevision | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PreparingToScheduleInstance.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PreparingToScheduleInstance.java | Apache-2.0 |
@Override public String getBuildCauseMessage() {
return "Preparing to schedule";
} | Understands a pipeline that is preparing to schedule | getBuildCauseMessage | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PreparingToScheduleInstance.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PreparingToScheduleInstance.java | Apache-2.0 |
@Override public Date getScheduledDate() {
return new Date();
} | Understands a pipeline that is preparing to schedule | getScheduledDate | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PreparingToScheduleInstance.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PreparingToScheduleInstance.java | Apache-2.0 |
@Override public String getPipelineStatusMessage() {
return String.format("Preparing to schedule (%s/%s)", 0, numberOfStages());
} | Understands a pipeline that is preparing to schedule | getPipelineStatusMessage | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PreparingToScheduleInstance.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PreparingToScheduleInstance.java | Apache-2.0 |
@Override
public String getRevision() {
return PREPARING;
} | Understands a pipeline that is preparing to schedule | getRevision | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PreparingToScheduleInstance.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PreparingToScheduleInstance.java | Apache-2.0 |
@Override
public String getRevisionUrl() {
return PREPARING;
} | Understands a pipeline that is preparing to schedule | getRevisionUrl | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PreparingToScheduleInstance.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PreparingToScheduleInstance.java | Apache-2.0 |
@Override
public boolean isRealRevision() {
return false;
} | Understands a pipeline that is preparing to schedule | isRealRevision | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PreparingToScheduleInstance.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/PreparingToScheduleInstance.java | Apache-2.0 |
public void setIdentifier(StageIdentifier identifier) {
this.identifier = identifier;
} | Understands stage details to allow rendering of an entry in stage-history page | setIdentifier | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/StageHistoryEntry.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/StageHistoryEntry.java | Apache-2.0 |
public void setState(StageState state) {
this.state = state;
} | Understands stage details to allow rendering of an entry in stage-history page | setState | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/StageHistoryEntry.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/StageHistoryEntry.java | Apache-2.0 |
public void setNaturalOrder(double naturalOrder) {
this.naturalOrder = naturalOrder;
} | Understands stage details to allow rendering of an entry in stage-history page | setNaturalOrder | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/StageHistoryEntry.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/StageHistoryEntry.java | Apache-2.0 |
public void setConfigVersion(String configVersion) {
this.configVersion = configVersion;
} | Understands stage details to allow rendering of an entry in stage-history page | setConfigVersion | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/StageHistoryEntry.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/StageHistoryEntry.java | Apache-2.0 |
public StageIdentifier getIdentifier() {
return identifier;
} | Understands stage details to allow rendering of an entry in stage-history page | getIdentifier | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/StageHistoryEntry.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/StageHistoryEntry.java | Apache-2.0 |
public StageState getState() {
return state;
} | Understands stage details to allow rendering of an entry in stage-history page | getState | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/StageHistoryEntry.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/StageHistoryEntry.java | Apache-2.0 |
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
StageHistoryEntry that = (StageHistoryEntry) o;
if (Double.compare(that.naturalOrder, naturalOrder) != ... | Understands stage details to allow rendering of an entry in stage-history page | equals | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/StageHistoryEntry.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/StageHistoryEntry.java | Apache-2.0 |
@Override
public int hashCode() {
int result;
long temp;
result = identifier != null ? identifier.hashCode() : 0;
result = 31 * result + (state != null ? state.hashCode() : 0);
temp = naturalOrder != +0.0d ? Double.doubleToLongBits(naturalOrder) : 0L;
result = 31 * re... | Understands stage details to allow rendering of an entry in stage-history page | hashCode | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/StageHistoryEntry.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/StageHistoryEntry.java | Apache-2.0 |
@Override public String toString() {
return "StageHistoryEntry{" +
"identifier=" + identifier +
", state=" + state +
", naturalOrder=" + naturalOrder +
", rerunOfCounter=" + rerunOfCounter +
'}';
} | Understands stage details to allow rendering of an entry in stage-history page | toString | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/StageHistoryEntry.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/StageHistoryEntry.java | Apache-2.0 |
public boolean isBisect() {
return PipelineInstanceModel.isBisect(naturalOrder);
} | Understands stage details to allow rendering of an entry in stage-history page | isBisect | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/StageHistoryEntry.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/StageHistoryEntry.java | Apache-2.0 |
public boolean hasRerunJobs() {
return rerunOfCounter != null;
} | Understands stage details to allow rendering of an entry in stage-history page | hasRerunJobs | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/StageHistoryEntry.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/StageHistoryEntry.java | Apache-2.0 |
@Deprecated(since = "Only for DB fw usage")
public void setRerunOfCounter(Integer rerunOfCounter) {
this.rerunOfCounter = rerunOfCounter;
} | Understands stage details to allow rendering of an entry in stage-history page | setRerunOfCounter | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/StageHistoryEntry.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/StageHistoryEntry.java | Apache-2.0 |
public String getConfigVersion() {
return configVersion;
} | Understands stage details to allow rendering of an entry in stage-history page | getConfigVersion | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/StageHistoryEntry.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/StageHistoryEntry.java | Apache-2.0 |
public List<StageHistoryEntry> getStages() {
return stages;
} | Understands a single page of the stagehistory | getStages | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/StageHistoryPage.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/StageHistoryPage.java | Apache-2.0 |
public Pagination getPagination() {
return pagination;
} | Understands a single page of the stagehistory | getPagination | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/StageHistoryPage.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/StageHistoryPage.java | Apache-2.0 |
public int currentPage(){
return pagination.getCurrentPage();
} | Understands a single page of the stagehistory | currentPage | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/StageHistoryPage.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/StageHistoryPage.java | Apache-2.0 |
public StageHistoryEntry getImmediateChronologicallyForwardStageHistoryEntry() {
return immediateChronologicallyForwardStageHistoryEntry;
} | Understands a single page of the stagehistory | getImmediateChronologicallyForwardStageHistoryEntry | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/StageHistoryPage.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/presentation/pipelinehistory/StageHistoryPage.java | Apache-2.0 |
@Override
public T deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
throw new IllegalArgumentException(format("Refusing to deserialize a %s in the JSON stream!", typeOfT.getTypeName()));
} | Prevents serialization/deserialization of secret-related instances (e.g., {@link GoCipher}) which would leak
the AES keys, etc over the network | deserialize | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/remote/Serialization.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/remote/Serialization.java | Apache-2.0 |
@Override
public JsonElement serialize(T src, Type typeOfSrc, JsonSerializationContext context) {
throw new IllegalArgumentException(format("Refusing to serialize a %s instance and leak security details!", typeOfSrc.getTypeName()));
} | Prevents serialization/deserialization of secret-related instances (e.g., {@link GoCipher}) which would leak
the AES keys, etc over the network | serialize | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/remote/Serialization.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/remote/Serialization.java | Apache-2.0 |
@Override
public File deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
String path = json.getAsJsonObject().get("path").getAsString();
return new File(separatorsToSystem(path));
} | Prevents serialization/deserialization of secret-related instances (e.g., {@link GoCipher}) which would leak
the AES keys, etc over the network | deserialize | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/remote/Serialization.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/remote/Serialization.java | Apache-2.0 |
@Override
public JsonElement serialize(File src, Type typeOfSrc, JsonSerializationContext context) {
JsonObject serialized = new JsonObject();
serialized.add("path", new JsonPrimitive(src.getPath()));
return serialized;
} | Prevents serialization/deserialization of secret-related instances (e.g., {@link GoCipher}) which would leak
the AES keys, etc over the network | serialize | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/remote/Serialization.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/remote/Serialization.java | Apache-2.0 |
@Override
public Charset deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
return Charset.forName(json.getAsString());
} | Prevents serialization/deserialization of secret-related instances (e.g., {@link GoCipher}) which would leak
the AES keys, etc over the network | deserialize | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/remote/Serialization.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/remote/Serialization.java | Apache-2.0 |
@Override
public JsonElement serialize(Charset src, Type typeOfSrc, JsonSerializationContext context) {
return new JsonPrimitive(src.name());
} | Prevents serialization/deserialization of secret-related instances (e.g., {@link GoCipher}) which would leak
the AES keys, etc over the network | serialize | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/remote/Serialization.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/remote/Serialization.java | Apache-2.0 |
@Override
public JsonElement serialize(ConfigurationProperty src, Type typeOfSrc, JsonSerializationContext context) {
JsonObject serialized = new JsonObject();
serialized.add("key", new JsonPrimitive(src.getConfigKeyName()));
serialized.add("value", new JsonPrimitive(src.getR... | Prevents serialization/deserialization of secret-related instances (e.g., {@link GoCipher}) which would leak
the AES keys, etc over the network | serialize | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/remote/Serialization.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/remote/Serialization.java | Apache-2.0 |
@Override
public ConfigurationProperty deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context)
throws JsonParseException {
return new ConfigurationProperty(DUMMY_CIPHER)
.withKey(json.getAsJsonObject().get("key").getAsString())
... | Prevents serialization/deserialization of secret-related instances (e.g., {@link GoCipher}) which would leak
the AES keys, etc over the network | deserialize | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/remote/Serialization.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/remote/Serialization.java | Apache-2.0 |
@Override
public JsonElement serialize(ArtifactStore src, Type typeOfSrc, JsonSerializationContext context) {
JsonObject jsonObject = new JsonObject();
jsonObject.add("id", new JsonPrimitive(src.getId()));
jsonObject.add("pluginId", new JsonPrimitive(src.getPluginId()));
... | Prevents serialization/deserialization of secret-related instances (e.g., {@link GoCipher}) which would leak
the AES keys, etc over the network | serialize | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/remote/Serialization.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/remote/Serialization.java | Apache-2.0 |
private JsonArray configurations(ArtifactStore store) {
JsonArray jsonArray = new JsonArray();
store.forEach(configurationProperty -> {
JsonObject serialized = new JsonObject();
serialized.add("key", new JsonPrimitive(configurationProperty.getConfigKeyName()));
... | Prevents serialization/deserialization of secret-related instances (e.g., {@link GoCipher}) which would leak
the AES keys, etc over the network | configurations | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/remote/Serialization.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/remote/Serialization.java | Apache-2.0 |
@Override
public ArtifactStore deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
Configuration configuration = new Configuration();
json.getAsJsonObject().get("configuration").getAsJsonArray().forEach(el ->
con... | Prevents serialization/deserialization of secret-related instances (e.g., {@link GoCipher}) which would leak
the AES keys, etc over the network | deserialize | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/remote/Serialization.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/remote/Serialization.java | Apache-2.0 |
@Override
public boolean canDecrypt(String cipherText) {
return true; // this is the isAES() check, allows us to throw the intended exception below
} | This ensures the agent will never try to create a new cipher file and also will detect any attempt to decrypt or
encrypt | canDecrypt | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/remote/Serialization.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/remote/Serialization.java | Apache-2.0 |
@Override
public String encrypt(String plainText) throws CryptoException {
throw new CryptoException("Agents should not be encrypting!");
} | This ensures the agent will never try to create a new cipher file and also will detect any attempt to decrypt or
encrypt | encrypt | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/remote/Serialization.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/remote/Serialization.java | Apache-2.0 |
@Override
public String decrypt(String cipherText) throws CryptoException {
throw new CryptoException("Agents should not be decrypting!");
} | This ensures the agent will never try to create a new cipher file and also will detect any attempt to decrypt or
encrypt | decrypt | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/remote/Serialization.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/remote/Serialization.java | Apache-2.0 |
@Override
public void write(JsonWriter out, Date date) throws IOException {
if (date == null) {
out.nullValue();
} else {
out.value(ISO_INSTANT.format(date.toInstant()));
}
} | This ensures the agent will never try to create a new cipher file and also will detect any attempt to decrypt or
encrypt | write | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/remote/Serialization.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/remote/Serialization.java | Apache-2.0 |
@Override
public Date read(JsonReader in) throws IOException {
if (in.peek() == JsonToken.NULL) {
in.nextNull();
return null;
}
try {
return Date.from(ISO_INSTANT.parse(in.nextString(), Instant::from));
} catch (Dat... | This ensures the agent will never try to create a new cipher file and also will detect any attempt to decrypt or
encrypt | read | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/remote/Serialization.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/remote/Serialization.java | Apache-2.0 |
public static <T> RuntimeTypeAdapterFactory<T> of(Class<T> baseType, String typeFieldName, boolean maintainType) {
return new RuntimeTypeAdapterFactory<>(baseType, typeFieldName, maintainType);
} | Creates a new runtime type adapter using for {@code baseType} using {@code
typeFieldName} as the type field name. Type field names are case sensitive.
{@code maintainType} flag decide if the type will be stored in pojo or not. | of | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/remote/adapter/RuntimeTypeAdapterFactory.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/remote/adapter/RuntimeTypeAdapterFactory.java | Apache-2.0 |
public static <T> RuntimeTypeAdapterFactory<T> of(Class<T> baseType, String typeFieldName) {
return new RuntimeTypeAdapterFactory<>(baseType, typeFieldName, false);
} | Creates a new runtime type adapter using for {@code baseType} using {@code
typeFieldName} as the type field name. Type field names are case sensitive. | of | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/remote/adapter/RuntimeTypeAdapterFactory.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/remote/adapter/RuntimeTypeAdapterFactory.java | Apache-2.0 |
public static <T> RuntimeTypeAdapterFactory<T> of(Class<T> baseType) {
return new RuntimeTypeAdapterFactory<>(baseType, "type", false);
} | Creates a new runtime type adapter for {@code baseType} using {@code "type"} as
the type field name. | of | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/remote/adapter/RuntimeTypeAdapterFactory.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/remote/adapter/RuntimeTypeAdapterFactory.java | Apache-2.0 |
public RuntimeTypeAdapterFactory<T> registerSubtype(Class<? extends T> type, String label) {
if (type == null || label == null) {
throw new NullPointerException();
}
if (subtypeToLabel.containsKey(type) || labelToSubtype.containsKey(label)) {
throw new IllegalArgumentExce... | Registers {@code type} identified by {@code label}. Labels are case
sensitive.
@throws IllegalArgumentException if either {@code type} or {@code label}
have already been registered on this type adapter. | registerSubtype | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/remote/adapter/RuntimeTypeAdapterFactory.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/remote/adapter/RuntimeTypeAdapterFactory.java | Apache-2.0 |
public RuntimeTypeAdapterFactory<T> registerSubtype(Class<? extends T> type) {
return registerSubtype(type, type.getSimpleName());
} | Registers {@code type} identified by its {@link Class#getSimpleName simple
name}. Labels are case sensitive.
@throws IllegalArgumentException if either {@code type} or its simple name
have already been registered on this type adapter. | registerSubtype | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/remote/adapter/RuntimeTypeAdapterFactory.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/remote/adapter/RuntimeTypeAdapterFactory.java | Apache-2.0 |
public <R> TypeAdapter<R> create(Gson gson, TypeToken<R> type) {
if (type.getRawType() != baseType) {
return null;
}
final Map<String, TypeAdapter<?>> labelToDelegate
= new LinkedHashMap<>();
final Map<Class<?>, TypeAdapter<?>> subtypeToDelegate
= new... | Registers {@code type} identified by its {@link Class#getSimpleName simple
name}. Labels are case sensitive.
@throws IllegalArgumentException if either {@code type} or its simple name
have already been registered on this type adapter. | create | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/remote/adapter/RuntimeTypeAdapterFactory.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/remote/adapter/RuntimeTypeAdapterFactory.java | Apache-2.0 |
@Override
public R read(JsonReader in) {
JsonElement jsonElement = Streams.parse(in);
JsonElement labelJsonElement;
if (maintainType) {
labelJsonElement = jsonElement.getAsJsonObject().get(typeFieldName);
} else {
... | Registers {@code type} identified by its {@link Class#getSimpleName simple
name}. Labels are case sensitive.
@throws IllegalArgumentException if either {@code type} or its simple name
have already been registered on this type adapter. | read | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/remote/adapter/RuntimeTypeAdapterFactory.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/remote/adapter/RuntimeTypeAdapterFactory.java | Apache-2.0 |
@Override
public void write(JsonWriter out, R value) throws IOException {
Class<?> srcType = value.getClass();
String label = subtypeToLabel.get(srcType);
@SuppressWarnings("unchecked") // registration requires that subtype extends T
TypeAdapte... | Registers {@code type} identified by its {@link Class#getSimpleName simple
name}. Labels are case sensitive.
@throws IllegalArgumentException if either {@code type} or its simple name
have already been registered on this type adapter. | write | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/remote/adapter/RuntimeTypeAdapterFactory.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/remote/adapter/RuntimeTypeAdapterFactory.java | Apache-2.0 |
@Override
public void setMessage(String message) {
this.message = message;
} | Understands localized operation result for http | setMessage | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/server/service/result/HttpLocalizedOperationResult.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/server/service/result/HttpLocalizedOperationResult.java | Apache-2.0 |
@Override
public boolean hasMessage() {
return message != null;
} | Understands localized operation result for http | hasMessage | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/server/service/result/HttpLocalizedOperationResult.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/server/service/result/HttpLocalizedOperationResult.java | Apache-2.0 |
@Override
public void notImplemented(String message) {
this.message = message;
httpCode = HttpStatus.SC_NOT_IMPLEMENTED;
} | Understands localized operation result for http | notImplemented | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/server/service/result/HttpLocalizedOperationResult.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/server/service/result/HttpLocalizedOperationResult.java | Apache-2.0 |
@Override
public void unprocessableEntity(String message) {
this.message = message;
this.httpCode = HttpStatus.SC_UNPROCESSABLE_ENTITY;
} | Understands localized operation result for http | unprocessableEntity | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/server/service/result/HttpLocalizedOperationResult.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/server/service/result/HttpLocalizedOperationResult.java | Apache-2.0 |
@Override
public void forbidden(String message, HealthStateType healthStateType) {
this.message = message;
this.healthStateType = healthStateType;
httpCode = SC_FORBIDDEN;
} | Understands localized operation result for http | forbidden | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/server/service/result/HttpLocalizedOperationResult.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/server/service/result/HttpLocalizedOperationResult.java | Apache-2.0 |
@Override
public void stale(String message) {
this.message = message;
httpCode = HttpStatus.SC_PRECONDITION_FAILED;
} | Understands localized operation result for http | stale | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/server/service/result/HttpLocalizedOperationResult.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/server/service/result/HttpLocalizedOperationResult.java | Apache-2.0 |
@Override
public void notFound(String message, HealthStateType healthStateType) {
this.message = message;
this.healthStateType = healthStateType;
httpCode = HttpStatus.SC_NOT_FOUND;
} | Understands localized operation result for http | notFound | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/server/service/result/HttpLocalizedOperationResult.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/server/service/result/HttpLocalizedOperationResult.java | Apache-2.0 |
@Override
public void conflict(String message) {
this.message = message;
httpCode = HttpStatus.SC_CONFLICT;
} | Understands localized operation result for http | conflict | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/server/service/result/HttpLocalizedOperationResult.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/server/service/result/HttpLocalizedOperationResult.java | Apache-2.0 |
@Override
public void internalServerError(String message) {
this.message = message;
httpCode = HttpStatus.SC_INTERNAL_SERVER_ERROR;
} | Understands localized operation result for http | internalServerError | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/server/service/result/HttpLocalizedOperationResult.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/server/service/result/HttpLocalizedOperationResult.java | Apache-2.0 |
@Override
public void badRequest(String message) {
this.message = message;
httpCode = HttpStatus.SC_BAD_REQUEST;
} | Understands localized operation result for http | badRequest | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/server/service/result/HttpLocalizedOperationResult.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/server/service/result/HttpLocalizedOperationResult.java | Apache-2.0 |
@Override
public void accepted(String message) {
this.message = message;
httpCode = HttpStatus.SC_ACCEPTED;
} | Understands localized operation result for http | accepted | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/server/service/result/HttpLocalizedOperationResult.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/server/service/result/HttpLocalizedOperationResult.java | Apache-2.0 |
@Override
public void notAcceptable(String message) {
this.message = message;
httpCode = HttpStatus.SC_NOT_ACCEPTABLE;
} | Understands localized operation result for http | notAcceptable | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/server/service/result/HttpLocalizedOperationResult.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/server/service/result/HttpLocalizedOperationResult.java | Apache-2.0 |
@Override
public boolean isSuccessful() {
return httpCode >= HttpStatus.SC_OK && httpCode < HttpStatus.SC_MULTIPLE_CHOICES;
} | Understands localized operation result for http | isSuccessful | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/server/service/result/HttpLocalizedOperationResult.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/server/service/result/HttpLocalizedOperationResult.java | Apache-2.0 |
@Override
public void connectionError(String message) {
this.message = message;
httpCode = HttpStatus.SC_BAD_REQUEST;
} | Understands localized operation result for http | connectionError | java | gocd/gocd | common/src/main/java/com/thoughtworks/go/server/service/result/HttpLocalizedOperationResult.java | https://github.com/gocd/gocd/blob/master/common/src/main/java/com/thoughtworks/go/server/service/result/HttpLocalizedOperationResult.java | Apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.