Package name.pehl.karaka.server.tag.entity

Examples of name.pehl.karaka.server.tag.entity.Tag


    public List<Tag> produceTags()
    {
        List<Tag> tags = new ArrayList<Tag>();
        for (String name : names)
        {
            Tag tag = new Tag(name);
            tags.add(tag);
        }
        return tags;
    }
View Full Code Here


                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));
                }
                activities.add(activity);
                mdt.hourOfDay().add(hours);
            }
View Full Code Here

        // Tags
        List<Tag> savedTags = new ArrayList<Tag>();
        for (Tag tag : tags)
        {
            Tag savedTag = tagRepository.save(tag);
            savedTags.add(savedTag);
            logger.info("Persisted {}", tag);
        }

        // Activities
View Full Code Here

        {
            StringBuilder tagsAsString = new StringBuilder();
            for (Iterator<Key<Tag>> iterator = tags.iterator(); iterator.hasNext(); )
            {
                Key<Tag> key = iterator.next();
                Tag tag = tagRepository.get(key);
                tagsAsString.append(tag.getName());
                if (iterator.hasNext())
                {
                    tagsAsString.append(" ");
                }
            }
View Full Code Here

TOP

Related Classes of name.pehl.karaka.server.tag.entity.Tag

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.