Package org.apache.jackrabbit.vault.cli
Class VaultFsApp
java.lang.Object
org.apache.jackrabbit.vault.util.console.AbstractApplication
org.apache.jackrabbit.vault.cli.VaultFsApp
Implements a console/shell that operates on a jcrfs.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected static org.slf4j.LoggerFields inherited from class org.apache.jackrabbit.vault.util.console.AbstractApplication
DEFAULT_CONF_FILENAME, KEY_HOST, KEY_LOGLEVEL, KEY_PATH, KEY_PROMPT, KEY_USER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.commons.cli2.builder.GroupBuilderaddApplicationOptions(org.apache.commons.cli2.builder.GroupBuilder gbuilder) protected voidprotected voidclose()protected voidconnect()createVaultContext(File localFile) protected voidvoidexecute(org.apache.commons.cli2.CommandLine commandLine) Returns the name of this applicationprotected AggregategetArtifactsNode(String path, boolean mustExist) protected ExecutionContextprotected FilegetPlatformFile(String path, boolean mustExist) getPlatformFiles(List<String> paths, boolean mustExist) Returns the name of the shell commandprotected VaultFilegetVaultFile(String path, boolean mustExist) protected voidinit()protected booleanprotected booleanprotected booleanprotected voidprotected voidlogout()static voidprotected voidvoidprepare(org.apache.commons.cli2.CommandLine cl) protected voidunmount()Methods inherited from class org.apache.jackrabbit.vault.util.console.AbstractApplication
getAppHelpFormatter, getApplicationCLGroup, getCopyrightLine, getEnv, getProperty, getVersion, getVersionString, loadConfig, printHelp, printVersion, run, saveConfig, setLogLevel, setProperty
-
Field Details
-
KEY_URI
- See Also:
-
KEY_WORKSPACE
- See Also:
-
KEY_MOUNTPOINT
- See Also:
-
KEY_DEFAULT_WORKSPACE
- See Also:
-
KEY_DEFAULT_MOUNTPOINT
- See Also:
-
KEY_DEFAULT_CREDS
- See Also:
-
KEY_DEFAULT_URI
- See Also:
-
KEY_DEFAULT_CONFIG_XML
- See Also:
-
KEY_DEFAULT_FILTER_XML
- See Also:
-
log
protected static org.slf4j.Logger log
-
-
Constructor Details
-
VaultFsApp
public VaultFsApp()
-
-
Method Details
-
main
-
createVaultContext
-
login
-
logout
protected void logout() -
isLoggedIn
protected boolean isLoggedIn() -
getVaultFileSystem
-
mount
-
isMounted
protected boolean isMounted() -
unmount
protected void unmount() -
getVaultFile
-
getPlatformFile
-
getPlatformFiles
-
getArtifactsNode
-
assertMounted
protected void assertMounted() -
connect
protected void connect() -
isConnected
protected boolean isConnected() -
disconnect
protected void disconnect() -
getPomProperties
- Overrides:
getPomPropertiesin classAbstractApplication
-
getApplicationName
Description copied from class:AbstractApplicationReturns the name of this application- Specified by:
getApplicationNamein classAbstractApplication- Returns:
- the name of this application
-
getShellCommand
Description copied from class:AbstractApplicationReturns the name of the shell command- Specified by:
getShellCommandin classAbstractApplication- Returns:
- the name of the shell command
-
getDefaultContext
- Specified by:
getDefaultContextin classAbstractApplication
-
getConsole
- Specified by:
getConsolein classAbstractApplication
-
init
protected void init()- Overrides:
initin classAbstractApplication
-
getCredentialsStore
-
close
protected void close()- Overrides:
closein classAbstractApplication
-
addApplicationOptions
public org.apache.commons.cli2.builder.GroupBuilder addApplicationOptions(org.apache.commons.cli2.builder.GroupBuilder gbuilder) - Overrides:
addApplicationOptionsin classAbstractApplication
-
execute
- Overrides:
executein classAbstractApplication- Throws:
ExecutionException
-
prepare
- Overrides:
preparein classAbstractApplication- Throws:
ExecutionException
-