Skip to content

Commit

Permalink
refactor: Remove methods for API repository
Browse files Browse the repository at this point in the history
  • Loading branch information
brasseld committed Nov 20, 2015
1 parent f625101 commit 894c36f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public interface ApiRepository extends CrudRepository<Api, String>{

void deleteMember(String api, String username) throws TechnicalException;

Collection<Membership> getMembers(String api) throws TechnicalException;
Collection<Membership> getMembers(String api, MembershipType membershipType) throws TechnicalException;

Membership getMember(String api, String username) throws TechnicalException;
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
package io.gravitee.repository.management.model;

import java.util.Date;
import java.util.List;
import java.util.Objects;
import java.util.Set;

/**
* @author David BRASSELY (brasseld at gmail.com)
Expand Down Expand Up @@ -52,7 +52,7 @@ public class User {
/**
* The user roles
*/
private List<String> roles;
private Set<String> roles;

/**
* The user creation date
Expand Down Expand Up @@ -104,11 +104,11 @@ public void setPassword(String password) {
this.password = password;
}

public List<String> getRoles() {
public Set<String> getRoles() {
return roles;
}

public void setRoles(List<String> roles) {
public void setRoles(Set<String> roles) {
this.roles = roles;
}

Expand Down Expand Up @@ -148,7 +148,6 @@ public String toString() {
sb.append(", lastname='").append(lastname).append('\'');
sb.append(", mail='").append(email).append('\'');
sb.append(", username='").append(username).append('\'');
sb.append(", roles='").append(roles).append('\'');
sb.append('}');
return sb.toString();
}
Expand Down

0 comments on commit 894c36f

Please sign in to comment.