Package net.caprazzi.minima.model

Examples of net.caprazzi.minima.model.Story


 
  public void upgradeEntry(Entry entry) throws Exception {
   
    System.out.println("upgrading " + entry);
   
    Story story = Story.fromJson(entry.getData());
   
    story.setId(entry.getKey() + "rx");
    story.setRevision(1);
   
    if (story.getList().equals("todo"))
      story.setList(ID_LIST_TODO);
   
    else if (story.getList().equals("doing"))
      story.setList(ID_LIST_DOING);
   
    else if (story.getList().equals("done"))
      story.setList(ID_LIST_DONE);
   
   
    Meta<Story> meta = Meta.wrap("story", story);
   
    System.out.println(new String(meta.toJson()));
View Full Code Here

TOP

Related Classes of net.caprazzi.minima.model.Story

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.