Page 482 - MDP2022-3
P. 482

this.password  =  getPassword();
                             this.decodedPassword  =  getDecodedPassword();
                             this.userNickName  =  getUserNickName();
                             this.userUniqueId  =  getUserUniqueId();




                             if  (userInfo.getUserProfileImageUrl()  !=  null)  {
                                     this.userProfileImageUrl  =  userInfo.getUserProfileImageUrl();
                             }


                             if  (userInfo.getUserDescription()  !=  null)  {
                                     this.userDescription  =  userInfo.getUserDescription();
                             }
                             this.refreshToken  =  getRefreshToken();


                             this.authorityDtoSet                                                         =
             userInfo.getAuthorities().stream().map(AuthorityDto::new).collect(Collectors.toSet());
                     }
             }




             com.webmister.semicolon.dto.ReportResponse
             import  com.webmister.semicolon.domain.Report;
             import  com.webmister.semicolon.enumclass.UserStatus;
             import  lombok.Data;


             import  java.time.LocalDateTime;
             import  java.util.List;
             import  java.util.stream.Collectors;


             @Data
             public  class  ReportResponse  {


                     private  Long  id;
                     private  String  title;
                     private  String  content;
                     private  LocalDateTime  reportCreateTime,  reportUpdateTime;
                     private  Long  userId;
                     private  UserStatus  userUniqueID;
                     private  List<EssentialComment>  comments;


                     public  ReportResponse(Report  report)  {
                             this.id  =  report.getReportId();
                             this.title  =  report.getTitle();
                             this.content  =  report.getContents();
   477   478   479   480   481   482   483   484   485   486   487