public class PullCommand extends PushPullCommand<PullOptions>
PushPullCommand.TranslatedPercent
eTagCache, PROJECT_TYPE_OFFLINE_PO, sourceDocResourceClient, statsClient, transDocResourceClient
PROJECT_TYPE_GETTEXT, PROJECT_TYPE_PROPERTIES, PROJECT_TYPE_PUBLICAN, PROJECT_TYPE_UTF8_PROPERTIES, PROJECT_TYPE_XLIFF, PROJECT_TYPE_XML
Constructor and Description |
---|
PullCommand(PullOptions opts) |
PullCommand(PullOptions opts,
RestClientFactory clientFactory) |
Modifier and Type | Method and Description |
---|---|
PullStrategy |
createStrategy(PullOptions opts) |
static void |
logOptions(org.slf4j.Logger logger,
PullOptions opts) |
protected void |
pullDocForLocale(PullStrategy strat,
org.zanata.rest.dto.resource.Resource doc,
String localDocName,
String docUri,
boolean createSkeletons,
LocaleMapping locMapping,
File transFile) |
void |
run()
Runs the specific command, not including before- or after- actions.
|
belongsToCurrentModule, confirmWithUser, debug, getDetailStatisticsForProjectVersion, getDocListForProjectIterationFromServer, getDocsTranslatedPercent, getLocaleMapList, getQualifiedDocNamesForCurrentModuleFromServer, loadETagCache, needToGetStatistics, prepareStatsIfApplicable, qualifiedDocName, shouldPullThisLocale, storeETagCache, unqualifiedDocName
getProjectType
deprecate, expectYes, getClientFactory, getDeprecationMessage, getName, getOpts, isDeprecated, runWithActions, setClientFactory
public PullCommand(PullOptions opts)
public PullCommand(PullOptions opts, RestClientFactory clientFactory)
public PullStrategy createStrategy(PullOptions opts) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException
public static void logOptions(org.slf4j.Logger logger, PullOptions opts)
logger
- opts
- public void run() throws Exception
ConfigurableCommand
run
in class ConfigurableCommand<PullOptions>
Exception
protected void pullDocForLocale(PullStrategy strat, org.zanata.rest.dto.resource.Resource doc, String localDocName, String docUri, boolean createSkeletons, LocaleMapping locMapping, File transFile) throws IOException
IOException
Copyright © 2015 Zanata Project. All rights reserved.