public class RawPushCommand extends PushPullCommand<PushOptions>
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 |
---|
RawPushCommand(PushOptions opts) |
RawPushCommand(PushOptions opts,
RestClientFactory clientFactory) |
RawPushCommand(PushOptions opts,
RestClientFactory clientFactory,
ConsoleInteractor console) |
Modifier and Type | Method and Description |
---|---|
List<FileTypeInfo> |
fileTypeInfoList(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<FileTypeInfo> |
getActualFileTypes(List<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, unqualifiedDocName
getProjectType
deprecate, expectYes, getClientFactory, getDeprecationMessage, getName, getOpts, isDeprecated, runWithActions, setClientFactory
public RawPushCommand(PushOptions opts)
public RawPushCommand(PushOptions opts, RestClientFactory clientFactory)
public RawPushCommand(PushOptions opts, RestClientFactory clientFactory, ConsoleInteractor console)
public com.google.common.collect.ImmutableList<FileTypeInfo> getActualFileTypes(List<FileTypeInfo> serverFileTypes, List<String> fileTypesSpec)
serverFileTypes
- fileTypesSpec
- public void run() throws IOException
ConfigurableCommand
run
in class ConfigurableCommand<PushOptions>
IOException
public List<FileTypeInfo> fileTypeInfoList(FileResourceClient client)
client
- Copyright © 2017 Zanata Project. All rights reserved.