public class PushCommand extends PushPullCommand<PushOptions>
Modifier and Type | Class and Description |
---|---|
static interface |
PushCommand.TranslationResourcesVisitor |
eTagCache, PROJECT_TYPE_OFFLINE_PO, sourceDocResource, translationResources, uri
PROJECT_TYPE_FILE, PROJECT_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,
ZanataProxyFactory factory,
org.zanata.rest.client.ISourceDocResource sourceDocResource,
org.zanata.rest.client.ITranslatedDocResource translationResources,
URI uri) |
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.
|
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, expectYes, getDocListForProjectIterationFromServer, getLocaleMapList, getQualifiedDocNamesForCurrentModuleFromServer, loadETagCache, qualifiedDocName, storeETagCache, unqualifiedDocName
getProjectType
deprecate, getDeprecationMessage, getName, getOpts, getRequestFactory, isDeprecated, runWithActions
public PushCommand(PushOptions opts)
public PushCommand(PushOptions opts, ZanataProxyFactory factory, org.zanata.rest.client.ISourceDocResource sourceDocResource, org.zanata.rest.client.ITranslatedDocResource translationResources, URI uri)
public static void logOptions(org.slf4j.Logger logger, PushOptions opts)
public void run() throws Exception
ConfigurableCommand
run
in class ConfigurableCommand<PushOptions>
Exception
protected List<String> getObsoleteDocNamesForProjectIterationFromServer()
public List<org.zanata.rest.dto.resource.TranslationsResource> splitIntoBatch(org.zanata.rest.dto.resource.TranslationsResource doc, int maxBatchSize)
doc
- maxBatchSize
- Copyright © 2014 Zanata Project. All rights reserved.