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 ISourceDocResource |
sourceDocResource |
protected 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,
ISourceDocResource sourceDocResource,
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) |
getProjectTypedeprecate, getDeprecationMessage, getName, getOpts, getRequestFactory, isDeprecatedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrunprotected static final String PROJECT_TYPE_OFFLINE_PO
protected final ISourceDocResource sourceDocResource
protected final ITranslatedDocResource translationResources
protected URI uri
protected ETagCache eTagCache
public PushPullCommand(O opts, ZanataProxyFactory factory, ISourceDocResource sourceDocResource, ITranslatedDocResource translationResources, URI uri)
public PushPullCommand(O opts)
protected void confirmWithUser(String message) throws IOException
IOExceptionprotected static void expectYes(Console console) throws IOException
IOExceptionprotected 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.