public class PushCommand extends PushPullCommand<PushOptions>
| Modifier and Type | Class and Description |
|---|---|
static interface |
PushCommand.TranslationResourcesVisitor |
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 |
|---|
PushCommand(PushOptions opts) |
PushCommand(PushOptions opts,
org.zanata.rest.client.CopyTransClient copyTransClient,
org.zanata.rest.client.AsyncProcessClient asyncProcessClient,
org.zanata.rest.client.RestClientFactory clientFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected List<String> |
getObsoleteDocNamesForProjectIterationFromServer()
gets doc list from server, returns a list of qualified doc names from
obsolete modules, or from no module.
|
AbstractPushStrategy |
getStrategy(PushOptions pushOptions) |
static void |
logOptions(org.slf4j.Logger logger,
PushOptions opts) |
void |
run()
Runs the specific command, not including before- or after- actions.
|
List<org.zanata.rest.dto.resource.TranslationsResource> |
splitIntoBatch(org.zanata.rest.dto.resource.TranslationsResource doc,
int maxBatchSize)
Split TranslationsResource into List<TranslationsResource>
according to maxBatchSize, but only if mergeType=AUTO
|
belongsToCurrentModule, confirmWithUser, debug, getDetailStatisticsForProjectVersion, getDocListForProjectIterationFromServer, getDocsTranslatedPercent, getLocaleMapList, getQualifiedDocNamesForCurrentModuleFromServer, loadETagCache, needToGetStatistics, prepareStatsIfApplicable, qualifiedDocName, shouldPullThisLocale, storeETagCache, unqualifiedDocNamegetProjectTypedeprecate, expectYes, getClientFactory, getDeprecationMessage, getName, getOpts, isDeprecated, runWithActions, setClientFactorypublic PushCommand(PushOptions opts)
public PushCommand(PushOptions opts, org.zanata.rest.client.CopyTransClient copyTransClient, org.zanata.rest.client.AsyncProcessClient asyncProcessClient, org.zanata.rest.client.RestClientFactory clientFactory)
public AbstractPushStrategy getStrategy(PushOptions pushOptions)
public static void logOptions(org.slf4j.Logger logger,
PushOptions opts)
public void run()
throws Exception
ConfigurableCommandrun in class ConfigurableCommand<PushOptions>Exceptionprotected List<String> getObsoleteDocNamesForProjectIterationFromServer()
public List<org.zanata.rest.dto.resource.TranslationsResource> splitIntoBatch(org.zanata.rest.dto.resource.TranslationsResource doc, int maxBatchSize)
doc - maxBatchSize - Copyright © 2017 Zanata Project. All rights reserved.