Project management and data store


Published on

  • Be the first to comment

  • Be the first to like this

No Downloads
Total Views
On Slideshare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide
  • Avoid disorganization.
  • Define tasks, create dependencies, define risks and divide responsabilities
  • The colleagues can be a risk… for instance, if someone has a job or is looking for a job… maybe it’s a risk…Time is always a risk and estimations…Others courses can influence the time spent on this course…
  • Always a task need to have a responsible, the goal is that someone has to keep an eye what is going on… The goal is not to find a guilty, the role is to have always someone who knows why???
  • Project management and data store

    1. 1. Project Management José Luis Santos
    2. 2. What do you have?1. Milestones A QUANTIFIED LEARNING TEAM2. Project3. Technology4. Class diagram5. Use case6. Scenarios7. and…
    3. 3. What is the next step?
    4. 4. How can we do it?Tasks DependenciesRisks Responsibilities
    5. 5. How do we define a task? To learn JQUERY To implement the model To implement the control part (Servlets) To design the interface
    6. 6. Take care!!!!Design tasks are low time consuming… … while implementation tasks are high time consuming
    7. 7. Take care!!!!Design tasksare easily addressable… … while implementation tasks are sometimes complex to fix them
    8. 8. What is a dependency? Task A Task B Design Implementation Interface Controller
    9. 9. What is a risk?Take them seriously!!!!
    10. 10. Who knows why it failed?
    11. 11. What can we do?
    12. 12. Data Store(Google App Engine) José Luis Santos
    13. 13. ServletDatastoreServicedatastore = DatastoreServiceFactory.getDatastoreService();Entity person = new Entity("Person", "test");person.setUnindexedProperty("name", "TestUser"); //Unindexed properties for these properties that you willnot filter onEntity weddingPhoto = new Entity("Photo", person.getKey()); // We link this Entity to another (Foreign key)weddingPhoto.setProperty("imageUrl", "");weddingPhoto.setProperty("date", new Date());Entity weddingVideo = new Entity("Video", person.getKey()); // We link this Entity to another (Foreign key)weddingVideo.setProperty("videoUrl", "");weddingVideo. setUnindexedProperty("date", new Date());datastore.put(person);datastore.put(weddingPhoto);datastore.put(weddingVideo);req.setAttribute("Key", person.getKey()); //Sending an object to a jsp fileRequestDispatcher dispatcher = getServletContext().getRequestDispatcher("/store.jsp");dispatcher.forward(req,resp);
    14. 14. JSPDatastoreServicedatastore = DatastoreServiceFactory.getDatastoreService();Key key = (Key)request.getAttribute("Key"); //We get an object not only an Stringif (key != null){Query userMediaQuery = new Query();userMediaQuery.setAncestor(key);// Ancestor queries return ancestors by default. This filter excludes the ancestor from query results.userMediaQuery.addFilter(Entity.KEY_RESERVED_PROPERTY, Query.FilterOperator.GREATER_THAN, key);// Returns both weddingPhoto and weddingVideo even though they are different entity kinds.List<Entity> results = datastore.prepare(userMediaQuery).asList( FetchOptions.Builder.withDefaults());for (inti=0;i<results.size();i++){if (results.get(i).getKind().compareTo("Video")==0){%>This is a photo:<br/><imgsrc="<%=results.get(i).getProperty("videoUrl")%>"></img><br/><% }else if (results.get(i).getKind().compareTo("Photo")==0){%>This is a video:<br/><imgsrc="<%=results.get(i).getProperty("imageUrl")%>"></img><br/><% }%>
    15. 15. Objectify
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.