Package org.sylfra.idea.plugins.revu.model

Examples of org.sylfra.idea.plugins.revu.model.IssueNote


    return IssueNote.class.equals(type);
  }

  public void marshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context)
  {
    IssueNote note = (IssueNote) source;

    writer.addAttribute("createdBy", RevuUtils.getNonNullUser(note.getHistory().getCreatedBy()).getLogin());
    writer.addAttribute("createdOn", formatDate(note.getHistory().getCreatedOn()));
    writer.setValue(note.getContent());
  }
View Full Code Here


  public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context)
  {
    String createdBy = reader.getAttribute("createdBy");
    String createdOn = reader.getAttribute("createdOn");

    IssueNote note = new IssueNote();
    note.setContent(reader.getValue());
    History history = new History();
    note.setHistory(history);

    if (createdBy != null)
    {
      history.setCreatedBy(retrieveUser(context, createdBy));
    }
View Full Code Here

    return IssueNote.class.equals(type);
  }

  public void marshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context)
  {
    IssueNote note = (IssueNote) source;

    writer.addAttribute("createdBy", RevuUtils.getNonNullUser(note.getHistory().getCreatedBy()).getLogin());
    writer.addAttribute("createdOn", formatDate(note.getHistory().getCreatedOn()));
    writer.setValue(note.getContent());
  }
View Full Code Here

  public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context)
  {
    String createdBy = reader.getAttribute("createdBy");
    String createdOn = reader.getAttribute("createdOn");

    IssueNote note = new IssueNote();
    note.setContent(reader.getValue());
    History history = new History();
    note.setHistory(history);

    if (createdBy != null)
    {
      history.setCreatedBy(retrieveUser(context, createdBy));
    }
View Full Code Here

TOP

Related Classes of org.sylfra.idea.plugins.revu.model.IssueNote

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.