public abstract class PushPullCommand<O extends PushPullOptions> extends ConfigurableProjectCommand<O>
Modifier and Type | Field and Description |
---|---|
protected ETagCache |
eTagCache |
protected org.zanata.rest.client.ISourceDocResource |
sourceDocResource |
protected org.zanata.rest.client.ITranslatedDocResource |
translationResources |
protected URI |
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 |
---|
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 static void |
expectYes(Console console) |
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, getDeprecationMessage, getName, getOpts, getRequestFactory, isDeprecated
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
run
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 static void expectYes(Console console) 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 © 2013 Zanata Project. All Rights Reserved.