Package projectatlast.milestone

Examples of projectatlast.milestone.Milestone


      Date deadline, Query query, Parser parser,
      ParseField parseField, ComparativeOperator operator) {
    // Calculate start value
    double startValue = calculateProgress(query, parser, parseField);
    // Create milestone
    Milestone milestone = new Milestone(student, goal, startValue,
        deadline, operator, query, parser, parseField);
    // Progress
    milestone.setProgress(startValue);
    // Sentence
    milestone.setSentence(buildSentence(milestone));
    // Put milestone
    return Registry.milestoneFinder().put(milestone);
  }
View Full Code Here


   * @return The milestone if the milestone was found and belongs to the
   *         student, null otherwise.
   */
  public static Milestone getMilestone(long milestoneId,
      Student student) {
    Milestone milestone = Registry.milestoneFinder()
        .getMilestone(milestoneId);
    if (!verifyOwner(milestone, student))
      return null;
    return milestone;
  }
View Full Code Here

   *         false if he is not.
   * @see #verifyOwner(Milestone, Student)
   */
  public static boolean verifyOwner(long milestoneId,
      Student student) {
    Milestone milestone = Registry.milestoneFinder()
        .getMilestone(milestoneId);
    if (milestone == null) {
      return false;
    }
    return verifyOwner(milestone, student);
View Full Code Here

TOP

Related Classes of projectatlast.milestone.Milestone

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.