Ejemplo n.º 1
0
  /** 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();
  }
Ejemplo n.º 2
0
  /** 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;
  }