sort collabs by id
This commit is contained in:
@@ -37,10 +37,12 @@ import javax.xml.bind.annotation.XmlRootElement;
|
||||
isGetterVisibility = JsonAutoDetect.Visibility.PUBLIC_ONLY)
|
||||
public class RestCollaboration {
|
||||
|
||||
private long id;
|
||||
private String email;
|
||||
private String role;
|
||||
|
||||
public RestCollaboration(@NotNull Collaboration collaboration) {
|
||||
this.id = collaboration.getId();
|
||||
this.email = collaboration.getCollaborator().getEmail();
|
||||
this.role = collaboration.getRole().getLabel();
|
||||
}
|
||||
@@ -59,6 +61,10 @@ public class RestCollaboration {
|
||||
|
||||
}
|
||||
|
||||
public long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public String getRole() {
|
||||
return role;
|
||||
}
|
||||
|
Reference in New Issue
Block a user