Package org.andromda.timetracker.vo

Examples of org.andromda.timetracker.vo.TaskVO


        PersonVO naresh = createPerson("nbhatia", "Naresh", "Bhatia");
        PersonVO louis = createPerson("lcoude", "Louis", "Coude");
        PersonVO john = createPerson("jsmith", "John", "Smith");

        // Create tasks
        TaskVO research = createTask("Research");
        TaskVO development = createTask("Development");

        // Create timecards
        TimecardVO timecard1 = createTimecard(naresh, john);
        TimecardVO timecard2 = createTimecard(naresh, john);
        TimecardVO timecard3 = createTimecard(louis, john);
View Full Code Here


        System.out.println("Person " + person.getId() + " created - " + person.getUsername());
        return person;
    }

    private static TaskVO createTask(String taskName) {
        TaskVO task = new TaskVO(null, taskName);
        task.setId(timeTrackingService.createTask(task));
        System.out.println("Task " + task.getId() + " created - " + task.getName());
        return task;
    }
View Full Code Here

        TimeAllocationVO[] allocations = new TimeAllocationVO[count];
        timecard.setAllocations(allocations);
        for (int i = 0; i < count; i++) {
            Date startTime = new Date(timecard.getBegDate().getTime() + i * MILLIS_IN_DAY);
            Date endTime   = new Date(timecard.getBegDate().getTime() + (i + 1) * MILLIS_IN_DAY);
            TaskVO task = tasks[(int)Math.round((Math.random()*(tasks.length - 1)))];
            allocations[i] = new TimeAllocationVO(
                null,
                new TimePeriodVO(startTime, endTime),
                task.getId());
        }

        // Create timecard
        timecard.setId(timeTrackingService.createTimecard(timecard));

View Full Code Here

        PersonVO naresh = createPerson("nbhatia", "Naresh", "Bhatia");
        PersonVO louis = createPerson("lcoude", "Louis", "Coude");
        PersonVO john = createPerson("jsmith", "John", "Smith");

        // Create tasks
        TaskVO research = createTask("Research");
        TaskVO development = createTask("Development");

        // Create timecards
        TimecardVO timecard1 = createTimecard(naresh, john);
        TimecardVO timecard2 = createTimecard(naresh, john);
        TimecardVO timecard3 = createTimecard(louis, john);
View Full Code Here

        System.out.println("Person " + person.getId() + " created - " + person.getUsername());
        return person;
    }

    private static TaskVO createTask(String taskName) {
        TaskVO task = new TaskVO(null, taskName);
        task.setId(timeTrackingService.createTask(task));
        System.out.println("Task " + task.getId() + " created - " + task.getName());
        return task;
    }
View Full Code Here

        TimeAllocationVO[] allocations = new TimeAllocationVO[count];
        timecard.setAllocations(allocations);
        for (int i = 0; i < count; i++) {
            Date startTime = new Date(timecard.getBegDate().getTime() + i * MILLIS_IN_DAY);
            Date endTime   = new Date(timecard.getBegDate().getTime() + (i + 1) * MILLIS_IN_DAY);
            TaskVO task = tasks[(int)Math.round((Math.random()*(tasks.length - 1)))];
            allocations[i] = new TimeAllocationVO(
                null,
                new TimePeriodVO(startTime, endTime),
                task.getId());
        }

        // Create timecard
        timecard.setId(timeTrackingService.createTimecard(timecard));

View Full Code Here

TOP

Related Classes of org.andromda.timetracker.vo.TaskVO

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.