public class RawPushCommand extends PushPullCommand<PushOptions>
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 |
|---|
RawPushCommand(PushOptions opts) |
RawPushCommand(PushOptions opts,
org.zanata.rest.client.RestClientFactory clientFactory) |
RawPushCommand(PushOptions opts,
org.zanata.rest.client.RestClientFactory clientFactory,
ConsoleInteractor console) |
| Modifier and Type | Method and Description |
|---|---|
List<org.zanata.common.FileTypeInfo> |
fileTypeInfoList(org.zanata.rest.client.FileResourceClient client)
Try to get the file types from the server (if server is new enough), otherwise use
compiled-in values (as older versions of the client did).
|
com.google.common.collect.ImmutableList<org.zanata.common.FileTypeInfo> |
getActualFileTypes(List<org.zanata.common.FileTypeInfo> serverFileTypes,
List<String> fileTypesSpec)
Return map of validated DocumentType to set of corresponding extensions, by applying the user's
file type options to the server's accepted file types.
|
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 RawPushCommand(PushOptions opts)
public RawPushCommand(PushOptions opts, org.zanata.rest.client.RestClientFactory clientFactory)
public RawPushCommand(PushOptions opts, org.zanata.rest.client.RestClientFactory clientFactory, ConsoleInteractor console)
public com.google.common.collect.ImmutableList<org.zanata.common.FileTypeInfo> getActualFileTypes(List<org.zanata.common.FileTypeInfo> serverFileTypes, List<String> fileTypesSpec)
serverFileTypes - fileTypesSpec - public void run()
throws IOException
ConfigurableCommandrun in class ConfigurableCommand<PushOptions>IOExceptionpublic List<org.zanata.common.FileTypeInfo> fileTypeInfoList(org.zanata.rest.client.FileResourceClient client)
client - Copyright © 2017 Zanata Project. All rights reserved.