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

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


    return History.class.equals(type);
  }

  public void marshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context)
  {
    History history = (History) source;

    writer.addAttribute("createdBy", RevuUtils.getNonNullUser(history.getCreatedBy()).getLogin());
    writer.addAttribute("lastUpdatedBy", RevuUtils.getNonNullUser(history.getLastUpdatedBy()).getLogin());
    writer.addAttribute("createdOn", formatDate(history.getCreatedOn()));
    writer.addAttribute("lastUpdatedOn", formatDate(history.getLastUpdatedOn()));
  }
View Full Code Here


    String createdBy = reader.getAttribute("createdBy");
    String createdOn = reader.getAttribute("createdOn");
    String lastUpdatedBy = reader.getAttribute("lastUpdatedBy");
    String lastUpdatedOn = reader.getAttribute("lastUpdatedOn");

    History history = new History();

    if (createdBy != null)
    {
      history.setCreatedBy(retrieveUser(context, createdBy));
    }
    if (lastUpdatedBy != null)
    {
      history.setLastUpdatedBy(retrieveUser(context, lastUpdatedBy));
    }
    history.setCreatedOn(parseDate(createdOn));
    history.setLastUpdatedOn(parseDate(lastUpdatedOn));

    return history;
  }
View Full Code Here

    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));
    }
    history.setCreatedOn(parseDate(createdOn));

    return note;
  }
View Full Code Here

          reviewCurrentUser.addRole(User.Role.ADMIN);
        }
      }
    }

    History history = new History();
    Date now = new Date();
    history.setCreatedBy(currentUser);
    history.setCreatedOn(now);
    history.setLastUpdatedBy(currentUser);
    history.setLastUpdatedOn(now);
    review.setHistory(history);

    if (fromChangeList != null)
    {
      review.getFileScope().setVcsAfterRev(String.valueOf(fromChangeList.getNumber()));
View Full Code Here

      {
        reviewCurrentUser.addRole(User.Role.ADMIN);
      }
    }

    History history = new History();
    Date now = new Date();
    history.setCreatedBy(currentUser);
    history.setCreatedOn(now);
    history.setLastUpdatedBy(currentUser);
    history.setLastUpdatedOn(now);
    review.setHistory(history);

    if (fromChangeList != null)
    {
      review.getFileScope().setVcsAfterRev(String.valueOf(fromChangeList.getNumber()));
View Full Code Here

    return History.class.equals(type);
  }

  public void marshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context)
  {
    History history = (History) source;

    writer.addAttribute("createdBy", RevuUtils.getNonNullUser(history.getCreatedBy()).getLogin());
    writer.addAttribute("lastUpdatedBy", RevuUtils.getNonNullUser(history.getLastUpdatedBy()).getLogin());
    writer.addAttribute("createdOn", formatDate(history.getCreatedOn()));
    writer.addAttribute("lastUpdatedOn", formatDate(history.getLastUpdatedOn()));
  }
View Full Code Here

    String createdBy = reader.getAttribute("createdBy");
    String createdOn = reader.getAttribute("createdOn");
    String lastUpdatedBy = reader.getAttribute("lastUpdatedBy");
    String lastUpdatedOn = reader.getAttribute("lastUpdatedOn");

    History history = new History();

    if (createdBy != null)
    {
      history.setCreatedBy(retrieveUser(context, createdBy));
    }
    if (lastUpdatedBy != null)
    {
      history.setLastUpdatedBy(retrieveUser(context, lastUpdatedBy));
    }
    history.setCreatedOn(parseDate(createdOn));
    history.setLastUpdatedOn(parseDate(lastUpdatedOn));

    return history;
  }
View Full Code Here

    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));
    }
    history.setCreatedOn(parseDate(createdOn));

    return note;
  }
View Full Code Here

TOP

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

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.