Package org.jahia.ajax.gwt.client.data.workflow

Examples of org.jahia.ajax.gwt.client.data.workflow.GWTJahiaWorkflowInfo


                    JCRSessionWrapper session = node.getSession();
                    for (String code : node1.getLanguages()) {
                        Locale locale = LanguageCodeConverters.languageCodeToLocale(code);
                        JCRSessionWrapper localeSession =
                                sessionFactory.getCurrentUserSession(session.getWorkspace().getName(), locale);
                        GWTJahiaWorkflowInfo info = workflow.getWorkflowInfo(n.getPath(), localeSession, locale);
                        infoMap.put(code, info);
                    }
                    n.setWorkflowInfos(infoMap);
                }
            } catch (UnsupportedRepositoryOperationException e) {
View Full Code Here


public class UnpublishActionItem extends BaseActionItem {
    public void onComponentSelection() {
        final GWTJahiaNode selectedNode = linker.getSelectionContext().getSingleSelection();
        if (selectedNode != null) {
            linker.loading(Messages.get("label.content.unpublishing", "Unpublishing"));
            GWTJahiaWorkflowInfo workflowInfo = selectedNode.getWorkflowInfo();
            if (workflowInfo != null) {
                final GWTJahiaWorkflowDefinition workflowDefinition = workflowInfo.getPossibleWorkflows().get(
                        new GWTJahiaWorkflowType("unpublish"));

                final List<String> uuids = new ArrayList<String>();
                List<GWTJahiaNode> jahiaNodes = linker.getSelectionContext().getMultipleSelection();
                if (jahiaNodes.size() > 1) {
View Full Code Here

        String lastUnpublished = null;
        boolean allPublished = true;
        for (Module module : moduleList) {
            if (module.getNode() != null) {
                GWTJahiaWorkflowInfo info = module.getNode().getWorkflowInfo();
                if (info.getActiveWorkflows().size()>0) {
                    GWTJahiaWorkflow workflow = info.getActiveWorkflows().values().iterator().next();
                    String current = workflow.getDefinition().getName();
                    allPublished = false;
                    if(workflow.getDuedate()!=null) {
                        infoLayers.addInfoLayer(module, "Workflow :<br/>"+current+" is waiting on timer.<br/>Will be triggered at : "+ DateTimeFormat.getMediumDateTimeFormat().format(workflow.getDuedate()),
                                 "red", "red", removeListener, true, "0.7");
View Full Code Here

        LinkerSelectionContext lh = linker.getSelectionContext();
        final GWTJahiaNode singleSelection = lh.getSingleSelection();
        setEnabled(false);
        if (singleSelection != null) {

            GWTJahiaWorkflowInfo workflowInfo = singleSelection.getWorkflowInfo();
            Map<GWTJahiaWorkflowType, GWTJahiaWorkflowDefinition> possibleWorkflows = workflowInfo.getPossibleWorkflows();

            final Menu menu = new Menu();
            for (Map.Entry<GWTJahiaWorkflowType, GWTJahiaWorkflowDefinition> entry : possibleWorkflows.entrySet()) {
                if (!entry.getKey().getName().toLowerCase().endsWith("publish")) {
                    final GWTJahiaWorkflowDefinition value = entry.getValue();
View Full Code Here

TOP

Related Classes of org.jahia.ajax.gwt.client.data.workflow.GWTJahiaWorkflowInfo

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.