You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
402 B
Java
16 lines
402 B
Java
package eu.eudat.logic.mapper.elastic;
|
|
|
|
import eu.eudat.data.entities.UserInfo;
|
|
import eu.eudat.elastic.entities.Collaborator;
|
|
|
|
public class CollaboratorMapper {
|
|
|
|
public static Collaborator toElastic(UserInfo user, Integer role) {
|
|
Collaborator elastic = new Collaborator();
|
|
elastic.setId(user.getId().toString());
|
|
elastic.setName(user.getName());
|
|
elastic.setRole(role);
|
|
return elastic;
|
|
}
|
|
}
|