public class PullCommand extends PushPullCommand<PullOptions>
PushPullCommand.TranslatedPercenteTagCache, PROJECT_TYPE_OFFLINE_PO, sourceDocResourceClient, statsClient, transDocResourceClientPROJECT_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,
org.zanata.rest.client.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, unqualifiedDocNamegetProjectTypedeprecate, expectYes, getClientFactory, getDeprecationMessage, getName, getOpts, isDeprecated, runWithActions, setClientFactorypublic PullCommand(PullOptions opts)
public PullCommand(PullOptions opts, org.zanata.rest.client.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
ConfigurableCommandrun in class ConfigurableCommand<PullOptions>Exceptionprotected void pullDocForLocale(PullStrategy strat, org.zanata.rest.dto.resource.Resource doc, String localDocName, String docUri, boolean createSkeletons, LocaleMapping locMapping, File transFile) throws IOException
IOExceptionCopyright © 2016 Zanata Project. All rights reserved.