Examples of BaseAsyncCallback


Examples of org.jahia.ajax.gwt.client.core.BaseAsyncCallback

        });
    }

    public void savePaths() {
        JahiaContentManagementService.App.getInstance()
                .saveOpenPathsForRepository(repository, openPath, new BaseAsyncCallback() {
                    public void onSuccess(Object o) {
                        // nothing to do
                    }

                    public void onApplicationFailure(Throwable throwable) {
View Full Code Here

Examples of org.jahia.ajax.gwt.client.core.BaseAsyncCallback

                final HashMap<String, Object> map = new HashMap<String, Object>();
                map.put("customWorkflowInfo", PublicationWorkflow.this);

                JahiaContentManagementService.App.getInstance().startWorkflow(getAllUuids(), wf, nodeProperties,
                        dialog.getComments(), map, new BaseAsyncCallback() {
                            public void onApplicationFailure(Throwable caught) {
                                WorkInProgressActionItem.removeStatus(status);
                                Log.error("Cannot publish", caught);
                                com.google.gwt.user.client.Window.alert("Cannot publish " + caught.getMessage());
                            }
View Full Code Here

Examples of org.jahia.ajax.gwt.client.core.BaseAsyncCallback

                    final String status = Messages.get("label.publication.task", "Publishing content");
                    Info.display(status, status);
                    WorkInProgressActionItem.setStatus(status);
                    final List<String> allUuids = getAllUuids();
                    JahiaContentManagementService.App.getInstance().publish(allUuids, nodeProperties, null,
                            new BaseAsyncCallback() {
                                public void onApplicationFailure(Throwable caught) {
                                    WorkInProgressActionItem.removeStatus(status);
                                    Info.display("Cannot publish", "Cannot publish");
                                    com.google.gwt.user.client.Window.alert("Cannot publish " + caught.getMessage());
                                }
View Full Code Here

Examples of org.jahia.ajax.gwt.client.core.BaseAsyncCallback

            container.closeEngine();
            final String status = Messages.get("label.publication.task", "Publishing content");
            Info.display(status,status);
            WorkInProgressActionItem.setStatus(status);
            JahiaContentManagementService.App.getInstance()
                    .publish(uuids, null, null, new BaseAsyncCallback() {
                        public void onApplicationFailure(Throwable caught) {
                            WorkInProgressActionItem.removeStatus(status);
                            Info.display("Cannot publish", "Cannot publish");
                            Log.error("Cannot publish", caught);
                        }
View Full Code Here

Examples of org.jahia.ajax.gwt.client.core.BaseAsyncCallback

            for (GWTJahiaNode node : selectedItems) {
                if (node.getName().endsWith(".zip") || node.getName().endsWith(".ZIP")) {
                    selectedPaths.add(node.getPath());
                }
            }
            JahiaContentManagementService.App.getInstance().unzip(selectedPaths, new BaseAsyncCallback() {
                public void onApplicationFailure(Throwable throwable) {
                    Window.alert(Messages.get("failure.unzip.label") + "\n" + throwable.getLocalizedMessage());
                    linker.loaded();
                }
View Full Code Here

Examples of org.jahia.ajax.gwt.client.core.BaseAsyncCallback

            String newName = Window.prompt(Messages.get("confirm.newName.label") + " " + selection.getName(),
                    selection.getName());
            if (newName != null && newName.length() > 0 && !newName.equals(selection.getName())) {
                final boolean folder = !selection.isFile();
                JahiaContentManagementService.App.getInstance()
                        .rename(selection.getPath(), newName, new BaseAsyncCallback() {
                            public void onApplicationFailure(Throwable throwable) {
                                Window.alert(
                                        Messages.get("failure.rename.label") + "\n" + throwable.getLocalizedMessage());
                                linker.loaded();
                            }
View Full Code Here

Examples of org.jahia.ajax.gwt.client.core.BaseAsyncCallback

        }
        if (m != null) {
            linker.loading(Messages.get("statusbar.pasting.label"));
            final CopyPasteEngine copyPasteEngine = CopyPasteEngine.getInstance();
            JahiaContentManagementService
                    .App.getInstance().paste(JCRClientUtils.getPathesList(copyPasteEngine.getCopiedPaths()), m.getPath(), null, copyPasteEngine.isCut(), new BaseAsyncCallback() {
                public void onApplicationFailure(Throwable throwable) {
                    Window.alert(Messages.get("failure.paste.label") + "\n" + throwable.getLocalizedMessage());
                    linker.loaded();
                }
View Full Code Here

Examples of org.jahia.ajax.gwt.client.core.BaseAsyncCallback

                Window.alert(Messages.get("failure.unmountLock1.label") + " " + selection.getName() + Messages.get("failure.unmountLock2.label") + " " + selection.getLockInfos());
            } else if (Window.confirm(Messages.get("confirm.unmount.label") + " " + selection.getName() + " ?")) {
                linker.loading(Messages.get("statusbar.unmounting.label"));
                List<String> selectedPaths = new ArrayList<String>(1);
                selectedPaths.add(selection.getPath());
                JahiaContentManagementService.App.getInstance().deletePaths(selectedPaths, new BaseAsyncCallback() {
                    public void onApplicationFailure(Throwable throwable) {
                        Window.alert(Messages.get("failure.unmount.label") + "\n" + throwable.getLocalizedMessage());
                        linker.loaded();
                    }
View Full Code Here

Examples of org.jahia.ajax.gwt.client.core.BaseAsyncCallback

                final String[] parts = nodePath.split("/");
                nodePath = "/" + parts[1] + "/" + parts[2];
                linker.loading(Messages.get("org.jahia.admin.site.ManageTemplates.deploymentInProgress", "Your templates are being deployed..."));
                JahiaContentManagementService.App.getInstance()
                        .deployTemplates(nodePath, destinationPath, new BaseAsyncCallback() {
                            public void onApplicationFailure(Throwable caught) {
                                linker.loaded();
                                getSites(linker);
                                Info.display(Messages.get("label.templatesDeploy", "Deploy Templates"), Messages.get("org.jahia.admin.site.ManageTemplates.deploymentError", "Error during your templates deployment"));
                            }
View Full Code Here

Examples of org.jahia.ajax.gwt.client.core.BaseAsyncCallback

                LinkerSelectionContext lh = linker.getSelectionContext();
                GWTJahiaNode target = lh.getSingleSelection();
                if (target != null) {
                    JahiaContentManagementService.App.getInstance().pasteReferences(
                            Arrays.asList(target.getPath()), page.getPath(), null,
                            new BaseAsyncCallback() {
                                public void onApplicationFailure(Throwable caught) {
                                    Info.display("Portal Components",
                                            "Error while making your component available for users in their portal page.");
                                }
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.