Пример #1
0
 public void setDto(CurrentUserDto dto) {
   isAdmin = dto.isAdmin();
   isPublisher = dto.isPublisher();
   isGuest = dto.isGuest();
   email = dto.getEmail();
   logoutUrl = dto.getLogoutUrl();
   loginUrl = dto.getLoginUrl();
   nickname = dto.getNickname();
   universidad = dto.getUniversidad();
   facultad = dto.getFacultad();
   id = dto.getEmail();
   userId = "USER: " + UUID.randomUUID().toString();
 }
Пример #2
0
 public CurrentUserDto getDto() {
   CurrentUserDto dto = new CurrentUserDto();
   dto.setIsAdmin(isAdmin);
   dto.setIsPublisher(isPublisher);
   dto.setIsGuest(isGuest);
   dto.setEmail(email);
   dto.setLogoutUrl(logoutUrl);
   dto.setLoginUrl(loginUrl);
   dto.setNickname(nickname);
   dto.setUniversidad(universidad);
   dto.setFacultad(facultad);
   return dto;
 }