Examples of GuvnorRepository


Examples of org.guvnor.tools.GuvnorRepository

        }
        return res;
    }

    private GuvnorMetadataProps getGuvnorMetadataProps(TreeObject node) throws Exception {
        GuvnorRepository rep = node.getGuvnorRepository();
        IWebDavClient webdav = WebDavServerCache.getWebDavClient(rep.getLocation());
        if (webdav == null) {
            webdav = WebDavClientFactory.createClient(new URL(rep.getLocation()));
            WebDavServerCache.cacheWebDavClient(rep.getLocation(), webdav);
        }
        ResourceProperties props  = webdav.queryProperties(node.getFullPath());
        return new GuvnorMetadataProps(node.getName(),
                                      node.getGuvnorRepository().getLocation(),
                                      node.getFullPath(),
View Full Code Here

Examples of org.guvnor.tools.GuvnorRepository

        deleteRepositoryLocAction = new Action() {
            public void run() {
                ISelection selection = viewer.getSelection();
                Object obj = ((IStructuredSelection)selection).getFirstElement();
                if (obj instanceof TreeParent) {
                    GuvnorRepository rep = ((TreeParent)obj).getGuvnorRepository();
                    if (MessageDialog.openConfirm(RepositoryView.this.getSite().getShell(),
                                                 Messages.getString("remove.rep.dialog.caption"), //$NON-NLS-1$
                                                 MessageFormat.format(Messages.getString("remove.rep.dialog.msg"), //$NON-NLS-1$
                                                                     new Object[] { rep.getLocation() }))) {
                        Activator.getLocationManager().removeRepository(rep.getLocation());
                    }
                }
            }
        };
        deleteRepositoryLocAction.setText(Messages.getString("action.delete.rep")); //$NON-NLS-1$
View Full Code Here

Examples of org.guvnor.tools.GuvnorRepository

            }
        }
    }

    private String getResourceContents(TreeObject node) throws Exception {
        GuvnorRepository rep = node.getGuvnorRepository();
        IWebDavClient webdav = WebDavServerCache.getWebDavClient(rep.getLocation());
        if (webdav == null) {
            webdav = WebDavClientFactory.createClient(new URL(rep.getLocation()));
            WebDavServerCache.cacheWebDavClient(rep.getLocation(), webdav);
        }
        String res = webdav.getResourceContents(node.getFullPath());
        return res;
    }
View Full Code Here

Examples of org.guvnor.tools.GuvnorRepository

                                  IElementCollector collector,
                                 IProgressMonitor monitor) {
            monitor.beginTask(Messages.getString("pending"), 1); //$NON-NLS-1$

            monitor.worked(1);
            GuvnorRepository rep = node.getGuvnorRepository();
            try {
                IWebDavClient webdav = WebDavServerCache.getWebDavClient(rep.getLocation());
                if (webdav == null) {
                    webdav = WebDavClientFactory.createClient(new URL(rep.getLocation()));
                    WebDavServerCache.cacheWebDavClient(rep.getLocation(), webdav);
                }
                Map<String, ResourceProperties> listing = null;
                try {
                    listing = webdav.listDirectory(node.getFullPath());
                } catch (WebDavException wde) {
View Full Code Here

Examples of org.guvnor.tools.GuvnorRepository

    private void handleRepositoryCreation() {
        // First we'll see if the repository already exists
        GuvWizardModel model = ((IGuvnorWizard)super.getWizard()).getModel();
        if (model.shouldCreateNewRep()
           && model.getRepLocation() != null) {
            GuvnorRepository theRep = Activator.getLocationManager().
                                        findRepository(model.getRepLocation());
            if (theRep != null) {
                // The repository already exists, nothing to do
                return;
            }
View Full Code Here

Examples of org.guvnor.tools.GuvnorRepository

    private void handleRepositoryCreation() {
        // First we'll see if the repository already exists
        GuvWizardModel model = ((IGuvnorWizard)super.getWizard()).getModel();
        if (model.shouldCreateNewRep()
           && model.getRepLocation() != null) {
            GuvnorRepository theRep = Activator.getLocationManager().
                                        findRepository(model.getRepLocation());
            if (theRep != null) {
                // The repository already exists, nothing to do
                return;
            }
View Full Code Here

Examples of org.guvnor.tools.GuvnorRepository

    private void handleRepositoryCreation() {
        // First we'll see if the repository already exists
        GuvWizardModel model = ((IGuvnorWizard)super.getWizard()).getModel();
        if (model.shouldCreateNewRep()
           && model.getRepLocation() != null) {
            GuvnorRepository theRep = Activator.getLocationManager().
                                        findRepository(model.getRepLocation());
            if (theRep != null) {
                // The repository already exists, nothing to do
                return;
            }
View Full Code Here

Examples of org.guvnor.tools.GuvnorRepository

/**
* Utilities for the Guvnor wizards.
*/
public class WizardUtils {
    public static void createGuvnorRepository(GuvWizardModel model) throws Exception {
        Activator.getLocationManager().addRepository(new GuvnorRepository(model.getRepLocation()));
        URL serverUrl = new URL(model.getRepLocation());
        Map<String, String> info = new HashMap<String, String>();
        info.put("username", model.getUsername()); //$NON-NLS-1$
        info.put("password", model.getPassword()); //$NON-NLS-1$
        if (model.shouldSaveAuthInfo()) {
View Full Code Here

Examples of org.guvnor.tools.GuvnorRepository

    private void handleRepositoryCreation() {
        // First we'll see if the repository already exists
        GuvWizardModel model = ((IGuvnorWizard)super.getWizard()).getModel();
        if (model.shouldCreateNewRep()
           && model.getRepLocation() != null) {
            GuvnorRepository theRep = Activator.getLocationManager().
                                        findRepository(model.getRepLocation());
            if (theRep != null) {
                // The repository already exists, nothing to do
                return;
            }
View Full Code Here

Examples of org.guvnor.tools.GuvnorRepository

        }
        return res;
    }

    private GuvnorMetadataProps getGuvnorMetadataProps(TreeObject node) throws Exception {
        GuvnorRepository rep = node.getGuvnorRepository();
        IWebDavClient webdav = WebDavServerCache.getWebDavClient(rep.getLocation());
        if (webdav == null) {
            webdav = WebDavClientFactory.createClient(new URL(rep.getLocation()));
            WebDavServerCache.cacheWebDavClient(rep.getLocation(), webdav);
        }
        ResourceProperties props  = webdav.queryProperties(node.getFullPath());
        return new GuvnorMetadataProps(node.getName(),
                                      node.getGuvnorRepository().getLocation(),
                                      node.getFullPath(),
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.