Examples of GalleryTabTemplate


Examples of org.eurekastreams.server.domain.GalleryTabTemplate

        {
            MembershipCriteriaDTO mcdto = new MembershipCriteriaDTO();
            mcdto.setId(mc.getId());
            mcdto.setCriteria(mc.getCriteria());

            GalleryTabTemplate mcgtt = mc.getGalleryTabTemplate();
            if (mcgtt != null)
            {
                mcdto.setGalleryTabTemplateId(mcgtt.getId());
                mcdto.setGalleryTabTemplateName(mcgtt.getTitle());
            }

            Theme mct = mc.getTheme();
            if (mct != null)
            {
View Full Code Here

Examples of org.eurekastreams.server.domain.GalleryTabTemplate

     * @return GalleryTabTemplate object.
     */
    @Override
    public GalleryTabTemplate execute(final FindByIdRequest inRequest)
    {
        return new GalleryTabTemplate();
    }
View Full Code Here

Examples of org.eurekastreams.server.domain.GalleryTabTemplate

    public Boolean execute(final PrincipalActionContext inActionContext)
    {
        Person currentUser = (Person) findById.execute(new FindByIdRequest("Person", inActionContext.getPrincipal()
                .getId()));

        GalleryTabTemplate gtt = (GalleryTabTemplate) findById.execute(new FindByIdRequest("GalleryTabTemplate",
                (Long) inActionContext.getParams()));

        TabTemplate newTabTemplate = new TabTemplate(gtt.getTabTemplate());
        newTabTemplate.setGalleryTabTemplate(gtt);
        for (Gadget gadget : newTabTemplate.getGadgets())
        {
            gadget.setOwner(currentUser);
        }
View Full Code Here

Examples of org.eurekastreams.server.domain.GalleryTabTemplate

        String galleryTabTemplateStringId = (String) fields.get(GALLERYTABTEMPLATE_ID_KEY);
        Long galleryTabTemplateId = StringUtils.isNotEmpty(galleryTabTemplateStringId) ? Long
                .parseLong(galleryTabTemplateStringId) : null;

        // find/create the GalleryTabTemplate.
        GalleryTabTemplate gtt = getGalleryTabTemplateByIdMapper.execute(galleryTabTemplateId == null ? null
                : new FindByIdRequest("GalleryTabTemplate", galleryTabTemplateId));

        // if required set the tab template.
        if (tabId != null)
        {
            // look up source tab by id.
            Tab tab = findTabByIdMapper.execute(new FindByIdRequest("Tab", tabId));

            // create new tabTemplate from source.
            TabTemplate newTabTemplate = new TabTemplate(tab.getTemplate());

            gtt.setTabTemplate(newTabTemplate);
            gtt.setTitle(newTabTemplate.getTabName());
        }

        // get/create the category and set it.
        GalleryItemCategory galleryItemCategory = galleryItemCategoryMapper.findByName(GalleryItemType.TAB, category);
        gtt.setCategory(galleryItemCategory);

        // set the description
        gtt.setDescription(description);

        // persist the new GalleryTabTemplate to datastore.
        return persistMapper.execute(new PersistenceRequest<GalleryTabTemplate>(gtt));
    }
View Full Code Here

Examples of org.eurekastreams.server.domain.GalleryTabTemplate

        // String q = "SELECT gtt.id, gtt.created, gtt.description, gtt.title, gtt.category.id, "
        // + "gtt.category.galleryItemType, " + "gtt.category.name, count(childTagTemplates)"
        // + "FROM GalleryTabTemplate as gtt JOIN gtt.tabTemplates as childTagTemplates "
        // + "ORDER BY size(tabTemplates) DESC ";

        GalleryTabTemplate gttEntity;
        Session session = (Session) getEntityManager().getDelegate();
        for (GalleryTabTemplateDTO gtt : inPagedSet.getPagedSet())
        {
            gttEntity = (GalleryTabTemplate) session.load(GalleryTabTemplate.class, gtt.getId());
            String q = "SELECT count(id) FROM TabTemplate WHERE galleryTabTemplate = :entity";
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.