public class UserDTO extends Object
Modifier and Type | Method and Description |
---|---|
String |
getEmail() |
Long |
getId() |
String |
getName() |
String |
getPassword() |
boolean |
isAdmin() |
void |
setAdmin(boolean admin) |
void |
setEmail(String email) |
void |
setId(Long id) |
void |
setName(String name) |
void |
setPassword(String password) |
static UserDTO |
wrap(User user) |
static List<UserDTO> |
wrapAll(List<User> users) |
public UserDTO()
public UserDTO(User user)
public Long getId()
public String getName()
public String getEmail()
public void setId(Long id)
public void setName(String name)
public void setEmail(String email)
public String getPassword()
public void setPassword(String password)
public boolean isAdmin()
public void setAdmin(boolean admin)
Copyright © 2015. All rights reserved.