Package org.apache.jackrabbit.vault.vlt
Class VltContext
java.lang.Object
org.apache.jackrabbit.vault.vlt.VltContext
VaultContext...-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVltContext(File cwd, File localFile, RepositoryProvider repProvider, CredentialsStore credsProvider) Deprecated.VltContext(File cwd, File localFile, RepositoryProvider repProvider, CredentialsStore credsProvider, PrintStream out) Deprecated.VltContext(File cwd, File localFile, RepositoryProvider repProvider, CredentialsStore credsProvider, PrintStream out, ConnectionOptions connectionOptions) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static MetaDirectorycreateMetaDirectory(File base) booleanexecute(org.apache.jackrabbit.vault.vlt.actions.Action action) getCwd()getCwdRelativePath(String path) String[]getFileSystem(RepositoryAddress mountpoint) booleanisQuiet()booleanlogin(RepositoryAddress mountpoint) voidprintAction(String path, FileAction action, String contentType) voidprintAction(VltFile file, FileAction action) voidvoidprintMessage(String msg) voidprintMessage(String msg, VltFile file) voidprintMessage(VltFile file, String msg) voidprintRemoteStatus(VltFile file, FileAction action) voidprintStatus(VltFile file) voidsetDefaultFilter(String defaultFilter) voidsetDefaultFilterRoots(String[] defaultFilterRoots) voidvoidsetFsRoot(VltDirectory dir) Sets the filesystem root to the aggregate path defined by the entries of the given directory.voidsetGlobalIgnored(PathFilter globalIgnored) voidvoidsetQuiet(boolean quiet) voidsetVerbose(boolean verbose)
-
Field Details
-
log
protected static org.slf4j.Logger log
-
-
Constructor Details
-
VltContext
@Deprecated public VltContext(File cwd, File localFile, RepositoryProvider repProvider, CredentialsStore credsProvider) throws IOException Deprecated.- Parameters:
cwd-localFile-repProvider-credsProvider-- Throws:
IOException
-
VltContext
@Deprecated public VltContext(File cwd, File localFile, RepositoryProvider repProvider, CredentialsStore credsProvider, PrintStream out) throws IOException Deprecated.- Parameters:
cwd-localFile-repProvider-credsProvider-out-- Throws:
IOException
-
VltContext
public VltContext(File cwd, File localFile, RepositoryProvider repProvider, CredentialsStore credsProvider, PrintStream out, ConnectionOptions connectionOptions) throws IOException - Throws:
IOException
-
-
Method Details
-
getMountpoint
- Throws:
VltException
-
createMetaDirectory
- Throws:
VltException
-
getFsRoot
-
setFsRoot
-
getGlobalIgnored
-
setGlobalIgnored
-
setFsRoot
Sets the filesystem root to the aggregate path defined by the entries of the given directory.- Parameters:
dir- the directory- Throws:
VltException- if an error occurs
-
setMountpoint
- Throws:
VltException
-
login
- Throws:
RepositoryException
-
getFileSystem
- Throws:
VltException
-
getExportRoot
-
getMetaInf
-
getDefaultFilterRoots
-
setDefaultFilterRoots
-
getDefaultFilter
-
setDefaultFilter
-
close
public void close() -
execute
- Throws:
VltException
-
getCwdRelativePath
-
error
-
exception
-
printAction
-
printAction
-
printError
-
printMessage
-
printMessage
-
printMessage
-
printStatus
- Throws:
VltException
-
printRemoteStatus
- Throws:
VltException
-
getStdout
-
getCwd
-
isVerbose
public boolean isVerbose() -
setVerbose
public void setVerbose(boolean verbose) -
isQuiet
public boolean isQuiet() -
setQuiet
public void setQuiet(boolean quiet)
-
VltContext(File, File, RepositoryProvider, CredentialsStore, PrintStream, ConnectionOptions)