Skip to content

Commit

Permalink
Add ids for API, application and page. Minor clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
brasseld committed Nov 23, 2015
1 parent b77b1bc commit 5a9390e
Show file tree
Hide file tree
Showing 13 changed files with 69 additions and 609 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

14 changes: 14 additions & 0 deletions src/main/java/io/gravitee/repository/management/model/Api.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
*/
public class Api {

/**
* The api ID.
*/
private String id;

/**
* The api name.
*/
Expand Down Expand Up @@ -127,6 +132,14 @@ public void setDefinition(String definition) {
this.definition = definition;
}

public String getId() {
return id;
}

public void setId(String id) {
this.id = id;
}

@Override
public boolean equals(Object o) {
if (this == o) return true;
Expand All @@ -144,6 +157,7 @@ public int hashCode() {
@Override
public String toString() {
final StringBuilder sb = new StringBuilder("Api{");
sb.append("id='").append(id).append('\'');
sb.append("name='").append(name).append('\'');
sb.append(", version='").append(version).append('\'');
sb.append(", lifecycleState=").append(lifecycleState);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
*/
public class Application {

/**
* The application ID.
*/
private String id;

/**
* The application name
*/
Expand Down Expand Up @@ -89,22 +94,31 @@ public void setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
}

public String getId() {
return id;
}

public void setId(String id) {
this.id = id;
}

@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Application that = (Application) o;
return Objects.equals(name, that.name);
return Objects.equals(id, that.id);
}

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

@Override
public String toString() {
final StringBuilder sb = new StringBuilder("Application{");
sb.append("id='").append(id).append('\'');
sb.append("name='").append(name).append('\'');
sb.append(", type='").append(type).append('\'');
sb.append('}');
Expand Down
76 changes: 0 additions & 76 deletions src/main/java/io/gravitee/repository/management/model/Member.java

This file was deleted.

Loading

0 comments on commit 5a9390e

Please sign in to comment.