Package org.zanata.rest.client

Examples of org.zanata.rest.client.IAsynchronousProcessResource


        log.info("copyTrans completed: {}-{}-{}", projectSlug, iterationSlug, docId);
    }

    public void asyncPushSource(String projectSlug, String iterationSlug,
            Resource sourceResource, boolean copyTrans) {
        IAsynchronousProcessResource resource =
                zanataProxyFactory.getAsynchronousProcessResource();
        ProcessStatus processStatus = resource.startSourceDocCreationOrUpdate(
                sourceResource.getName(), projectSlug, iterationSlug,
                sourceResource,
                Sets.<String>newHashSet(), false);
        processStatus = waitUntilFinished(resource, processStatus);
        log.info("finished async source push ({}-{}): {}", projectSlug,
View Full Code Here


    }

    public void asyncPushTarget(String projectSlug, String iterationSlug,
            String docId, LocaleId localeId, TranslationsResource transResource,
            String mergeType) {
        IAsynchronousProcessResource resource =
                zanataProxyFactory.getAsynchronousProcessResource();
        ProcessStatus processStatus =
                resource.startTranslatedDocCreationOrUpdate(docId, projectSlug,
                        iterationSlug, localeId, transResource,
                        Collections.<String>emptySet(), mergeType);
        processStatus = waitUntilFinished(resource, processStatus);
        log.info("finished async translation({}-{}) push: {}", projectSlug,
                iterationSlug, processStatus.getStatusCode());
View Full Code Here

TOP

Related Classes of org.zanata.rest.client.IAsynchronousProcessResource

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.