Package org.jahia.ajax.gwt.client.widget.contentengine

Examples of org.jahia.ajax.gwt.client.widget.contentengine.EngineCards


                        if (linker instanceof ManagerLinker) {
                            container = new EngineWindow();
                        } else {
                            container = new EnginePanel();
                        }
                        EngineContainer cards = new EngineCards(container, linker);
                        if (infosListByWorflowGroup.entrySet().isEmpty()) {
                            new PublicationStatusWindow(linker, null, null, cards);
                        }
                        for (Map.Entry<String, List<GWTJahiaPublicationInfo>> entry : infosListByWorflowGroup.entrySet()) {
                            final List<GWTJahiaPublicationInfo> infoList = entry.getValue();

                            String workflowDefinition = infoList.get(0).getWorkflowDefinition();
                            if (workflowDefinition != null) {
                                final PublicationWorkflow custom = new PublicationWorkflow(infoList);
                                new WorkflowActionDialog(infoList.get(0).getMainPath(),Messages.getWithArgs("label.workflow.start.message",
                                        "{0} started by {1} on {2} - {3} content items involved",
                                        new Object[]{result.get(workflowDefinition),JahiaGWTParameters.getCurrentUser(),DateTimeFormat.getShortDateFormat().format(new Date()),infoList.size()})
                                         , result.get(workflowDefinition),
                                        linker, custom, cards);
                            } else {
                                // Workflow defined
                                new PublicationStatusWindow(linker, getAllUuids(infoList), infoList, cards);
                            }
                        }

                        cards.showEngine();
                    }

                });
    }
View Full Code Here


                                if (linker instanceof ManagerLinker) {
                                    container = new EngineWindow();
                                } else {
                                    container = new EnginePanel();
                                }
                                EngineContainer cards = new EngineCards(container, linker);
                                new WorkflowActionDialog(selectedNode.getPath(), Messages.getWithArgs("label.workflow.start.message",
                                        "{0} started by {1} on {2} - {3} content items involved",
                                        new Object[]{workflowDefinition.getDisplayName(),JahiaGWTParameters.getCurrentUser(), DateTimeFormat.getFormat(
                                                DateTimeFormat.PredefinedFormat.DATE_TIME_SHORT).format(new Date()),result.size()})
                                         , workflowDefinition, linker,
                                        new UnpublicationWorkflow(result), cards);
                                cards.showEngine();
                            }

                            public void onApplicationFailure(Throwable caught) {
                                linker.loaded();
                                Window.alert("Cannot get status: " + caught.getMessage());
View Full Code Here

                    MenuItem item = new MenuItem(value.getDisplayName());
                    item.addSelectionListener(new SelectionListener<MenuEvent>() {
                        @Override
                        public void componentSelected(MenuEvent ce) {
                            EngineContainer container = new EnginePanel();
                            EngineContainer cards = new EngineCards(container, linker);
                            new WorkflowActionDialog(singleSelection.getPath(),
                                    value.getDisplayName(), value, linker, null, cards);
                            cards.showEngine();
                        }
                    });
                    menu.add(item);
                }
            }
View Full Code Here

TOP

Related Classes of org.jahia.ajax.gwt.client.widget.contentengine.EngineCards

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.