Skip to content

Commit

Permalink
apply formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 committed Dec 20, 2024
1 parent 20773e6 commit 4a4be4a
Show file tree
Hide file tree
Showing 47 changed files with 639 additions and 213 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@ public record KeyResultMetricDto(Long id, int version, String keyResultType, Str
KeyResultLastCheckInMetricDto lastCheckIn, LocalDateTime createdOn, LocalDateTime modifiedOn, boolean writeable,
List<ActionDto> actionList) implements KeyResultDto {
@Override
public List<ActionDto> getActionList() { return actionList; }
public List<ActionDto> getActionList() {
return actionList;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ public record KeyResultOrdinalDto(Long id, int version, String keyResultType, St
KeyResultObjectiveDto objective, KeyResultLastCheckInOrdinalDto lastCheckIn, LocalDateTime createdOn,
LocalDateTime modifiedOn, boolean writeable, List<ActionDto> actionList) implements KeyResultDto {
@Override
public List<ActionDto> getActionList() { return actionList; }
public List<ActionDto> getActionList() {
return actionList;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,7 @@ public OkrResponseStatusException(HttpStatus status, List<ErrorDto> errors) {
this.errors = errors;
}

public List<ErrorDto> getErrors() { return errors; }
public List<ErrorDto> getErrors() {
return errors;
}
}
52 changes: 39 additions & 13 deletions backend/src/main/java/ch/puzzle/okr/models/Action.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,37 +44,63 @@ private Action(Builder builder) {
keyResult = builder.keyResult;
}

public Long getId() { return id; }
public Long getId() {
return id;
}

public void resetId() {
id = null;
}

public String getAction() { return action; }
public String getAction() {
return action;
}

public void setAction(String action) { this.action = action; }
public void setAction(String action) {
this.action = action;
}

public int getPriority() { return priority; }
public int getPriority() {
return priority;
}

public void setPriority(int priority) { this.priority = priority; }
public void setPriority(int priority) {
this.priority = priority;
}

public boolean isChecked() { return isChecked; }
public boolean isChecked() {
return isChecked;
}

public void setChecked(boolean checked) { isChecked = checked; }
public void setChecked(boolean checked) {
isChecked = checked;
}

public KeyResult getKeyResult() { return keyResult; }
public KeyResult getKeyResult() {
return keyResult;
}

public void setKeyResult(KeyResult keyResult) { this.keyResult = keyResult; }
public void setKeyResult(KeyResult keyResult) {
this.keyResult = keyResult;
}

public int getVersion() { return version; }
public int getVersion() {
return version;
}

public void setVersion(int version) { this.version = version; }
public void setVersion(int version) {
this.version = version;
}

@Override
public boolean isWriteable() { return writeable; }
public boolean isWriteable() {
return writeable;
}

@Override
public void setWriteable(boolean writeable) { this.writeable = writeable; }
public void setWriteable(boolean writeable) {
this.writeable = writeable;
}

@Override
public String toString() {
Expand Down
24 changes: 18 additions & 6 deletions backend/src/main/java/ch/puzzle/okr/models/Completed.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,29 @@ private Completed(Builder builder) {
setComment(builder.comment);
}

public Long getId() { return id; }
public Long getId() {
return id;
}

public int getVersion() { return version; }
public int getVersion() {
return version;
}

public Objective getObjective() { return objective; }
public Objective getObjective() {
return objective;
}

public void setObjective(Objective objective) { this.objective = objective; }
public void setObjective(Objective objective) {
this.objective = objective;
}

public String getComment() { return comment; }
public String getComment() {
return comment;
}

public void setComment(String comment) { this.comment = comment; }
public void setComment(String comment) {
this.comment = comment;
}

@Override
public String toString() {
Expand Down
88 changes: 66 additions & 22 deletions backend/src/main/java/ch/puzzle/okr/models/Objective.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,51 +69,95 @@ private Objective(Builder builder) {
setModifiedBy(builder.modifiedBy);
}

public Long getId() { return id; }
public Long getId() {
return id;
}

public int getVersion() { return version; }
public int getVersion() {
return version;
}

public String getTitle() { return title; }
public String getTitle() {
return title;
}

public void setTitle(String title) { this.title = title; }
public void setTitle(String title) {
this.title = title;
}

public User getCreatedBy() { return createdBy; }
public User getCreatedBy() {
return createdBy;
}

public void setCreatedBy(User createdBy) { this.createdBy = createdBy; }
public void setCreatedBy(User createdBy) {
this.createdBy = createdBy;
}

public Team getTeam() { return team; }
public Team getTeam() {
return team;
}

public void setTeam(Team team) { this.team = team; }
public void setTeam(Team team) {
this.team = team;
}

public Quarter getQuarter() { return quarter; }
public Quarter getQuarter() {
return quarter;
}

public void setQuarter(Quarter quarter) { this.quarter = quarter; }
public void setQuarter(Quarter quarter) {
this.quarter = quarter;
}

public String getDescription() { return description; }
public String getDescription() {
return description;
}

public void setDescription(String description) { this.description = description; }
public void setDescription(String description) {
this.description = description;
}

public LocalDateTime getModifiedOn() { return modifiedOn; }
public LocalDateTime getModifiedOn() {
return modifiedOn;
}

public void setModifiedOn(LocalDateTime modifiedOn) { this.modifiedOn = modifiedOn; }
public void setModifiedOn(LocalDateTime modifiedOn) {
this.modifiedOn = modifiedOn;
}

public State getState() { return state; }
public State getState() {
return state;
}

public void setState(State state) { this.state = state; }
public void setState(State state) {
this.state = state;
}

public LocalDateTime getCreatedOn() { return createdOn; }
public LocalDateTime getCreatedOn() {
return createdOn;
}

public void setCreatedOn(LocalDateTime createdOn) { this.createdOn = createdOn; }
public void setCreatedOn(LocalDateTime createdOn) {
this.createdOn = createdOn;
}

public User getModifiedBy() { return modifiedBy; }
public User getModifiedBy() {
return modifiedBy;
}

public void setModifiedBy(User modifiedBy) { this.modifiedBy = modifiedBy; }
public void setModifiedBy(User modifiedBy) {
this.modifiedBy = modifiedBy;
}

@Override
public boolean isWriteable() { return writeable; }
public boolean isWriteable() {
return writeable;
}

@Override
public void setWriteable(boolean writeable) { this.writeable = writeable; }
public void setWriteable(boolean writeable) {
this.writeable = writeable;
}

@Override
public String toString() {
Expand Down
28 changes: 21 additions & 7 deletions backend/src/main/java/ch/puzzle/okr/models/Quarter.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,33 @@ private Quarter(Builder builder) {
setEndDate(builder.endDate);
}

public Long getId() { return id; }
public Long getId() {
return id;
}

public String getLabel() { return label; }
public String getLabel() {
return label;
}

public void setLabel(String label) { this.label = label; }
public void setLabel(String label) {
this.label = label;
}

public LocalDate getStartDate() { return startDate; }
public LocalDate getStartDate() {
return startDate;
}

public void setStartDate(LocalDate startDate) { this.startDate = startDate; }
public void setStartDate(LocalDate startDate) {
this.startDate = startDate;
}

public LocalDate getEndDate() { return endDate; }
public LocalDate getEndDate() {
return endDate;
}

public void setEndDate(LocalDate endDate) { this.endDate = endDate; }
public void setEndDate(LocalDate endDate) {
this.endDate = endDate;
}

@Override
public String toString() {
Expand Down
32 changes: 24 additions & 8 deletions backend/src/main/java/ch/puzzle/okr/models/Team.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,23 +37,39 @@ private Team(Builder builder) {
setUserTeamList(builder.userTeamList);
}

public Long getId() { return id; }
public Long getId() {
return id;
}

public int getVersion() { return version; }
public int getVersion() {
return version;
}

public String getName() { return name; }
public String getName() {
return name;
}

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

public List<UserTeam> getUserTeamList() { return userTeamList; }
public List<UserTeam> getUserTeamList() {
return userTeamList;
}

public void setUserTeamList(List<UserTeam> userTeamList) { this.userTeamList = userTeamList; }
public void setUserTeamList(List<UserTeam> userTeamList) {
this.userTeamList = userTeamList;
}

@Override
public boolean isWriteable() { return writeable; }
public boolean isWriteable() {
return writeable;
}

@Override
public void setWriteable(boolean writeable) { this.writeable = writeable; }
public void setWriteable(boolean writeable) {
this.writeable = writeable;
}

@Override
public String toString() {
Expand Down
Loading

0 comments on commit 4a4be4a

Please sign in to comment.