Package name.pehl.karaka.server.activity.entity

Examples of name.pehl.karaka.server.activity.entity.Time


            int activitiesCount = 1 + random.nextInt(ACTIVITIES_PER_DAY);
            int hours = 2 + random.nextInt(6) / activitiesCount;
            for (int j = 0; j < activitiesCount; j++)
            {
                Activity activity = new Activity(loremIpsum.randomWords(2), loremIpsum.randomWords(4), timeZone);
                activity.setStart(new Time(mdt));
                int hour = mdt.hourOfDay().get() + hours;
                activity.setEnd(new Time(mdt.copy().hourOfDay().set(hour)));
                activity.setProject(Ref.create(projects.get(random.nextInt(projects.size()))));
                for (int i = 0; i < TAGS_PER_ACTIVITY; i++)
                {
                    Tag tag = tagKeys.get(random.nextInt(tagKeys.size()));
                    activity.addTag(Key.create(tag));
View Full Code Here


            {
                Day day = new Day(currentDate.getYear(), currentDate.getMonthOfYear(), currentDate.getDayOfMonth());
                week.add(day);
                for (Activity activity : activities)
                {
                    Time start = activity.getStart();
                    if (currentDate.equals(start.toDateMidnight()) && date.getMonthOfYear() == start.getMonth())
                    {
                        day.add(activityConverter.toModel(activity));
                    }
                }
            }
View Full Code Here

        {
            Day day = new Day(currentDate.getYear(), currentDate.getMonthOfYear(), currentDate.getDayOfMonth());
            days.add(day);
            for (Activity activity : activities)
            {
                Time start = activity.getStart();
                if (currentDate.equals(start.toDateMidnight()))
                {
                    day.add(activityConverter.toModel(activity));
                }
            }
        }
View Full Code Here

TOP

Related Classes of name.pehl.karaka.server.activity.entity.Time

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.