Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

import java.util.ArrayList;
import java.util.List;
import lombok.Getter;

/**
* Represents inconsistency categories
*/
@Getter
public class Inconsistencies {

private List<InconsistencyTuple> security;
Expand All @@ -29,16 +31,4 @@ public void addDatabase(InconsistencyTuple t){
public void addApi(InconsistencyTuple t){
this.api.add(t);
}

public List<InconsistencyTuple> getSecurity() {
return security;
}

public List<InconsistencyTuple> getDatabase() {
return database;
}

public List<InconsistencyTuple> getApi() {
return api;
}
}
Original file line number Diff line number Diff line change
@@ -1,46 +1,23 @@
package edu.baylor.ecs.cloudhubs.prophetdto.app;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

/**
* Represents an identification of a place in the code
* This place in the code has inconsistent String value
* with some other place. The other place is the other item
* in the InconsistencyTuple array.
*/
@AllArgsConstructor
@Getter
@Setter
public class InconsistencyItem {
// Path to a file with code
private String filePath;
// Line number in the file
private Integer line;
// inconsistent value
private String value;

public InconsistencyItem(String filePath, Integer line, String value) {
this.filePath = filePath;
this.line = line;
this.value = value;
}

public String getFilePath() {
return filePath;
}

public void setFilePath(String filePath) {
this.filePath = filePath;
}

public Integer getLine() {
return line;
}

public void setLine(Integer line) {
this.line = line;
}

public String getValue() {
return value;
}

public void setValue(String value) {
this.value = value;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@
import java.util.ArrayList;
import java.util.List;

import lombok.Getter;

/**
* Represents a tuple of references to the code that are inconsistent
* across the microservice system
*/
@Getter
public class InconsistencyTuple {

private List<InconsistencyItem> items;
Expand All @@ -15,10 +18,6 @@ public InconsistencyTuple() {
this.items = new ArrayList<>();
}

public List<InconsistencyItem> getItems() {
return items;
}

public void addItem(InconsistencyItem i) {
items.add(i);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
package edu.baylor.ecs.cloudhubs.prophetdto.app;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class MicroserviceResult {
private String name;

Expand All @@ -17,38 +22,4 @@ public class MicroserviceResult {
* Mermaid class diagram for bounded context
*/
private String boundedContext;

public MicroserviceResult() {}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public String getBoundedContext() {
return boundedContext;
}

public void setBoundedContext(String boundedContext) {
this.boundedContext = boundedContext;
}

public boolean isNoBoundedContext() {
return noBoundedContext;
}

public void setNoBoundedContext(boolean noBoundedContext) {
this.noBoundedContext = noBoundedContext;
}

public boolean isNotJava() {
return notJava;
}

public void setNotJava(boolean notJava) {
this.notJava = notJava;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,12 @@

import java.util.List;

public class ProphetAppData {
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class ProphetAppData {
private ProphetAppGlobal global;
private List<MicroserviceResult> ms;

public ProphetAppData() {}

public ProphetAppGlobal getGlobal() {
return global;
}

public void setGlobal(ProphetAppGlobal global) {
this.global = global;
}

public List<MicroserviceResult> getMs() { return ms; }
public void setMs(List<MicroserviceResult> ms) { this.ms = ms; }
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
package edu.baylor.ecs.cloudhubs.prophetdto.app;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
public class ProphetAppGlobal {
String projectName;

Expand Down Expand Up @@ -27,61 +36,4 @@ public class ProphetAppGlobal {
* True if we failed to clone this repo, else false
*/
boolean cannotClone;

public ProphetAppGlobal() {
}

public ProphetAppGlobal(String projectName, String communication, String contextMap) {
this.projectName = projectName;
this.communication = communication;
this.contextMap = contextMap;
}

public String getProjectName() {
return projectName;
}

public void setProjectName(String projectName) {
this.projectName = projectName;
}

public boolean isNoCommunication() {
return noCommunication;
}

public void setNoCommunication(boolean noCommunication) {
this.noCommunication = noCommunication;
}

public String getCommunication() {
return communication;
}

public void setCommunication(String communication) {
this.communication = communication;
}

public boolean isNoContextMap() {
return noContextMap;
}

public void setNoContextMap(boolean noContextMap) {
this.noContextMap = noContextMap;
}

public String getContextMap() {
return contextMap;
}

public void setContextMap(String contextMap) {
this.contextMap = contextMap;
}

public boolean isCannotClone() {
return cannotClone;
}

public void setCannotClone(boolean cannotClone) {
this.cannotClone = cannotClone;
}
}
Original file line number Diff line number Diff line change
@@ -1,25 +1,11 @@
package edu.baylor.ecs.cloudhubs.prophetdto.app;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class ProphetError {
private boolean error;
private String errorMessage;

public ProphetError() {
}

public boolean isError() {
return error;
}

public void setError(boolean error) {
this.error = error;
}

public String getErrorMessage() {
return errorMessage;
}

public void setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
}
}
Original file line number Diff line number Diff line change
@@ -1,38 +1,20 @@
package edu.baylor.ecs.cloudhubs.prophetdto.app;

import java.util.Objects;

import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode
@Getter
@Setter
public class ProphetRequest {

String url;

public ProphetRequest(){}

public ProphetRequest(String url) {
this.url = url;
}

public String getUrl() {
return url;
}

public void setUrl(String url) {
this.url = url;
}

@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof ProphetRequest)) return false;
ProphetRequest that = (ProphetRequest) o;
return Objects.equals(getUrl(), that.getUrl());
}

@Override
public int hashCode() {
return Objects.hash(getUrl());
}

@Override
public String toString() {
return "ProphetRequest{" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,14 @@

import edu.baylor.ecs.cloudhubs.prophetdto.communication.Communication;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class ProphetResponse {

private Communication communication;

private String[] contextMap;

public ProphetResponse(){}

public Communication getCommunication() {
return communication;
}

public void setCommunication(Communication communication) {
this.communication = communication;
}

public String[] getContextMap() {
return contextMap;
}

public void setContextMap(String[] contextMap) {
this.contextMap = contextMap;
}
}
Loading