/** Constructor */ public MessagePartDesc(MessagePartDescVo desc, DataFilter filter) { super(desc); DataFilter compFilter = filter.forComponent(MessagePartDesc.class); this.subject = trunc(desc.getSubject(), 500); this.details = desc.getDetails(); }
/** Converts this entity to a value object */ public MessagePartDescVo toVo(DataFilter filter) { DataFilter compFilter = filter.forComponent(MessagePartDesc.class); MessagePartDescVo desc = new MessagePartDescVo(); desc.setLang(lang); desc.setSubject(subject); desc.setDetails(details); return desc; }