org.zanata.client.commands
Class PushPullCommand<O extends PushPullOptions>
java.lang.Object
org.zanata.client.commands.ConfigurableCommand<O>
org.zanata.client.commands.ConfigurableProjectCommand<O>
org.zanata.client.commands.PushPullCommand<O>
- All Implemented Interfaces:
- ZanataCommand
- Direct Known Subclasses:
- PullCommand, PushCommand, RawPullCommand, RawPushCommand
public abstract class PushPullCommand<O extends PushPullOptions>
- extends ConfigurableProjectCommand<O>
- Author:
- Sean Flanigan sflaniga@redhat.com
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROJECT_TYPE_OFFLINE_PO
protected static final String PROJECT_TYPE_OFFLINE_PO
- See Also:
- Constant Field Values
sourceDocResource
protected final ISourceDocResource sourceDocResource
translationResources
protected final ITranslatedDocResource translationResources
uri
protected URI uri
eTagCache
protected ETagCache eTagCache
PushPullCommand
public PushPullCommand(O opts,
ZanataProxyFactory factory,
ISourceDocResource sourceDocResource,
ITranslatedDocResource translationResources,
URI uri)
PushPullCommand
public PushPullCommand(O opts)
confirmWithUser
protected void confirmWithUser(String message)
throws IOException
- Throws:
IOException
expectYes
protected static void expectYes(Console console)
throws IOException
- Throws:
IOException
debug
protected void debug(Object jaxbElement)
qualifiedDocName
protected String qualifiedDocName(String localDocName)
unqualifiedDocName
protected String unqualifiedDocName(String qualifiedDocName)
belongsToCurrentModule
protected boolean belongsToCurrentModule(String qualifiedDocName)
getQualifiedDocNamesForCurrentModuleFromServer
protected List<String> getQualifiedDocNamesForCurrentModuleFromServer()
getDocListForProjectIterationFromServer
protected List<org.zanata.rest.dto.resource.ResourceMeta> getDocListForProjectIterationFromServer()
getLocaleMapList
public static LocaleList getLocaleMapList(LocaleList projectLocales,
String[] locales)
- Filters the project's list of locales
- Parameters:
projectLocales - locales defined by the project's zanata.xmllocales - locales requested by the user (eg Maven param, command line option)
- Returns:
- the filtered list of locales
- Throws:
ConfigException - if one of the locales was not found in zanata.xml
loadETagCache
protected void loadETagCache()
storeETagCache
protected void storeETagCache()
Copyright © 2013 Zanata Project. All Rights Reserved.