Examples of MetadataStubExt


Examples of com.salesforce.ide.core.remote.MetadataStubExt

    /**
     * We rely on Spring to give us an instance of this MetadataFactory and provide a override for this method with a
     * lookup method injection.
     */
    public MetadataStubExt getMetadataStubExtInstance() {
        return new MetadataStubExt();
    }
View Full Code Here

Examples of com.salesforce.ide.core.remote.MetadataStubExt

        return new MetadataStubExt();
    }

    MetadataStubExt getNewMetadataStubExt(ForceProject forceProject) throws ForceConnectionException,
            ForceRemoteException {
        MetadataStubExt metadataStubExt = getMetadataStubExtInstance();
        Connection connection = getConnectionFactory().getConnection(forceProject);
        metadataStubExt.initializeMetadataConnection(connection);
        return metadataStubExt;
    }
View Full Code Here

Examples of com.salesforce.ide.core.remote.MetadataStubExt

    public MetadataStubExt refreshMetadataStubExt(Connection connection) throws ForceConnectionException,
            ForceRemoteException {
        final ForceProject forceProject = connection.getForceProject();

        final MetadataStubExt metadataStubExt = metadataStubs.get(forceProject);
        if (metadataStubExt != null) {
            metadataStubExt.initializeMetadataConnection(connection);
        }

        return metadataStubExt;
    }
View Full Code Here

Examples of com.salesforce.ide.core.remote.MetadataStubExt

    public boolean removeMetadataStubExt(ForceProject forceProject) {
        if (forceProject == null) {
            return false;
        }

        MetadataStubExt obsoleteMetadataStubExt = metadataStubs.remove(forceProject);
        return obsoleteMetadataStubExt != null ? true : false;
    }
View Full Code Here

Examples of com.salesforce.ide.core.remote.MetadataStubExt

            logStoredMetadataStubExts();
            logger.debug("Checking cache for existing metadata stub for connection project:\n "
                    + forceProject.getLogDisplay() + "[" + forceProject.hashCode() + "]");
        }

        MetadataStubExt metadataStubExt = metadataStubs.get(forceProject);

        if (metadataStubExt == null) {
            metadataStubExt = getNewMetadataStubExt(forceProject);
            cacheMetadataStubExt(forceProject, metadataStubExt);
        } else {
View Full Code Here

Examples of com.salesforce.ide.core.remote.MetadataStubExt

        Set<ForceProject> forceProjects = metadataStubs.keySet();
        StringBuffer strBuffer = new StringBuffer("Cached metadata stubs [" + metadataStubs.size() + "] are:");
        int metadataStubCnt = 0;
        for (ForceProject forceProject : forceProjects) {
            MetadataStubExt metadataStubExt = metadataStubs.get(forceProject);
            strBuffer.append("\n (").append(++metadataStubCnt).append(") ").append(forceProject.getLogDisplay())
                    .append(" [").append(forceProject.hashCode()).append("]");
            if (metadataStubExt != null) {
                strBuffer.append(", ").append(metadataStubExt.toStringLite());
            }
        }
        logger.info(strBuffer.toString());
    }
View Full Code Here

Examples of com.salesforce.ide.core.remote.MetadataStubExt

        try {
            if (obj instanceof Connection) {
                Connection connection = (Connection) obj;
                connection = connectionFactory.refreshConnection(connection);
            } else if (obj instanceof MetadataStubExt) {
                MetadataStubExt metadataStubExt = (MetadataStubExt) obj;
                Connection connection = metadataStubExt.getConnection();
                connection = connectionFactory.refreshConnection(connection);
                metadataStubExt = metadataFactory.refreshMetadataStubExt(connection);
            } else if (obj instanceof ToolingStubExt) {
                ToolingStubExt toolingStubExt = (ToolingStubExt) obj;
                Connection connection = toolingStubExt.getConnection();
View Full Code Here

Examples of com.salesforce.ide.core.remote.MetadataStubExt

        Connection connection = null;

        if (joinPoint.getTarget() instanceof Connection) {
            connection = (Connection) joinPoint.getTarget();
        } else if (joinPoint.getTarget() instanceof MetadataStubExt) {
            MetadataStubExt stub = (MetadataStubExt) joinPoint.getTarget();
            connection = stub.getConnection();
        } else if (joinPoint.getTarget() instanceof ToolingStubExt) {
            ToolingStubExt stub = (ToolingStubExt) joinPoint.getTarget();
            connection = stub.getConnection();
        } else if (Utils.isNotEmpty(joinPoint.getArgs())) {
            Object[] objects = joinPoint.getArgs();
            for (Object object : objects) {
                if (object instanceof IProject && connectionFactory != null) {
                    try {
View Full Code Here

Examples of com.salesforce.ide.core.remote.MetadataStubExt

        String[] keys = keySet.toArray(new String[keySet.size()]);
        Arrays.sort(keys);

        // query describe metadata for organization namespace - don't get from
        // ForceProject due to project might not be created yet.
        MetadataStubExt metadataStubExt =
                ContainerDelegate.getInstance().getFactoryLocator().getMetadataFactory().getMetadataStubExt(
                    getConnection());
        DescribeMetadataResultExt describeMetadataResultExt =
                ContainerDelegate.getInstance().getServiceLocator().getMetadataService().getDescribeMetadata(
                    metadataStubExt, new NullProgressMonitor());
View Full Code Here

Examples of com.salesforce.ide.core.remote.MetadataStubExt

                                getConnection(), listMetadataQueries, monitor);

                    // query describe metadata for organization namespace -
                    // don't get from ForceProject due to project might not be
                    // created yet.
                    MetadataStubExt metadataStubExt =
                            ContainerDelegate.getInstance().getFactoryLocator().getMetadataFactory()
                            .getMetadataStubExt(getConnection());
                    DescribeMetadataResultExt describeMetadataResultExt =
                            ContainerDelegate.getInstance().getServiceLocator().getMetadataService()
                            .getDescribeMetadata(metadataStubExt, new NullProgressMonitor());
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.