public abstract class PushPullCommand<O extends PushPullOptions> extends ConfigurableProjectCommand<O>
Modifier and Type | Field and Description |
---|---|
protected ETagCache |
eTagCache |
protected static String |
PROJECT_TYPE_OFFLINE_PO |
protected org.zanata.rest.client.ISourceDocResource |
sourceDocResource |
protected org.zanata.rest.client.ITranslatedDocResource |
translationResources |
protected URI |
uri |
PROJECT_TYPE_GETTEXT, PROJECT_TYPE_PROPERTIES, PROJECT_TYPE_PUBLICAN, PROJECT_TYPE_UTF8_PROPERTIES, PROJECT_TYPE_XLIFF, PROJECT_TYPE_XML
Constructor and Description |
---|
PushPullCommand(O opts) |
PushPullCommand(O opts,
ZanataProxyFactory factory,
org.zanata.rest.client.ISourceDocResource sourceDocResource,
org.zanata.rest.client.ITranslatedDocResource translationResources,
URI uri) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
belongsToCurrentModule(String qualifiedDocName) |
protected void |
confirmWithUser(String message) |
protected void |
debug(Object jaxbElement) |
protected List<org.zanata.rest.dto.resource.ResourceMeta> |
getDocListForProjectIterationFromServer() |
static LocaleList |
getLocaleMapList(LocaleList projectLocales,
String[] locales)
Filters the project's list of locales
|
protected List<String> |
getQualifiedDocNamesForCurrentModuleFromServer() |
protected void |
loadETagCache() |
protected String |
qualifiedDocName(String localDocName) |
protected void |
storeETagCache() |
protected String |
unqualifiedDocName(String qualifiedDocName) |
getProjectType
deprecate, expectYes, getDeprecationMessage, getName, getOpts, getRequestFactory, isDeprecated, run, runWithActions
protected static final String PROJECT_TYPE_OFFLINE_PO
protected final org.zanata.rest.client.ISourceDocResource sourceDocResource
protected final org.zanata.rest.client.ITranslatedDocResource translationResources
protected URI uri
protected ETagCache eTagCache
public PushPullCommand(O opts, ZanataProxyFactory factory, org.zanata.rest.client.ISourceDocResource sourceDocResource, org.zanata.rest.client.ITranslatedDocResource translationResources, URI uri)
public PushPullCommand(O opts)
protected void confirmWithUser(String message) throws IOException
IOException
protected void debug(Object jaxbElement)
protected boolean belongsToCurrentModule(String qualifiedDocName)
protected List<String> getQualifiedDocNamesForCurrentModuleFromServer()
protected List<org.zanata.rest.dto.resource.ResourceMeta> getDocListForProjectIterationFromServer()
public static LocaleList getLocaleMapList(LocaleList projectLocales, String[] locales)
projectLocales
- locales defined by the project's zanata.xmllocales
- locales requested by the user (eg Maven param, command line
option)ConfigException
- if one of the locales was not found in zanata.xmlprotected void loadETagCache()
protected void storeETagCache()
Copyright © 2015 Zanata Project. All rights reserved.