Package com.dream.domain.attachment

Examples of com.dream.domain.attachment.Portrait


    }

    public BasicInfo toBasicInfo() {
        Name name = new Name(this.chineseName, this.englishName);
        LocalDate birthday = JodaTimeUtil.parseLocalDate(this.birthday);
        Portrait portrait = null;
        try {
            if (!this.portrait.isEmpty()) {
                portrait = new Portrait(this.portrait.getOriginalFilename(), this.portrait.getContentType(), this.portrait.getBytes());
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
        return new BasicInfo(name, birthday, this.phone, this.email, this.qq, this.gender, this.address, this.selfDescription, portrait);
View Full Code Here


    }

    @Override
    public PortraitDTO loadPortraitByResumeGuid(String resumeGuid) {
        Resume resume = resumeDao.findByGuid(Resume.class, resumeGuid);
        Portrait portrait = resume.basicInfo().portrait();
        if (portrait == null) {
            return null;
        }
        return new PortraitDTO(portrait);
    }
View Full Code Here

TOP

Related Classes of com.dream.domain.attachment.Portrait

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.