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<String> |
extractExtensions(String typeWithExtension)
Extract extensions from input string
|
String |
extractType(String typeWithExtension)
Extract fileType from input string
input pattern: fileType[extension;extension], [extension;extension]
|
void |
run()
Runs the specific command, not including before- or after- actions.
|
Map<org.zanata.common.DocumentType,Set<String>> |
validateFileTypes(List<org.zanata.common.DocumentType> acceptedTypes,
List<String> inputFileTypes)
Return map of validated type with set of extensions
Validate user input file types against server accepted file types
Valid input - properties_utf8,properties[txt],plain_text[md;markdown]
- Each file type is only input once - e.g.
|
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 List<String> extractExtensions(String typeWithExtension)
@Nullable public String extractType(String typeWithExtension)
typeWithExtension
- public Map<org.zanata.common.DocumentType,Set<String>> validateFileTypes(List<org.zanata.common.DocumentType> acceptedTypes, List<String> inputFileTypes)
acceptedTypes
- inputFileTypes
- public void run() throws IOException
ConfigurableCommand
run
in class ConfigurableCommand<PushOptions>
IOException
Copyright © 2017 Zanata Project. All rights reserved.