Package org.apache.jackrabbit.vault.vlt
Class VltContext
- java.lang.Object
-
- org.apache.jackrabbit.vault.vlt.VltContext
-
public class VltContext extends Object
VaultContext
...
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Logger
log
-
Constructor Summary
Constructors Constructor Description VltContext(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
-
-
-
Constructor Detail
-
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 Detail
-
getMountpoint
public RepositoryAddress getMountpoint() throws VltException
- Throws:
VltException
-
createMetaDirectory
public static MetaDirectory createMetaDirectory(File base) throws VltException
- Throws:
VltException
-
getFsRoot
public String getFsRoot()
-
setFsRoot
public void setFsRoot(String fsRoot)
-
getGlobalIgnored
public PathFilter getGlobalIgnored()
-
setGlobalIgnored
public void setGlobalIgnored(PathFilter globalIgnored)
-
setFsRoot
public void setFsRoot(VltDirectory dir) throws VltException
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
public void setMountpoint(RepositoryAddress addr) throws VltException
- Throws:
VltException
-
login
public Session login(RepositoryAddress mountpoint) throws RepositoryException
- Throws:
RepositoryException
-
getFileSystem
public VaultFileSystem getFileSystem(RepositoryAddress mountpoint) throws VltException
- Throws:
VltException
-
getExportRoot
public ExportRoot getExportRoot()
-
getMetaInf
public MetaInf getMetaInf()
-
getDefaultFilterRoots
public String[] getDefaultFilterRoots()
-
setDefaultFilterRoots
public void setDefaultFilterRoots(String[] defaultFilterRoots)
-
getDefaultFilter
public String getDefaultFilter()
-
setDefaultFilter
public void setDefaultFilter(String defaultFilter)
-
close
public void close()
-
execute
public boolean execute(org.apache.jackrabbit.vault.vlt.actions.Action action) throws VltException
- Throws:
VltException
-
error
public VltException error(String path, String msg)
-
exception
public VltException exception(String path, String msg, Throwable cause)
-
printAction
public void printAction(VltFile file, FileAction action)
-
printAction
public void printAction(String path, FileAction action, String contentType)
-
printError
public void printError(VltException e)
-
printMessage
public void printMessage(String msg)
-
printStatus
public void printStatus(VltFile file) throws VltException
- Throws:
VltException
-
printRemoteStatus
public void printRemoteStatus(VltFile file, FileAction action) throws VltException
- Throws:
VltException
-
getStdout
public PrintStream getStdout()
-
getCwd
public File getCwd()
-
isVerbose
public boolean isVerbose()
-
setVerbose
public void setVerbose(boolean verbose)
-
isQuiet
public boolean isQuiet()
-
setQuiet
public void setQuiet(boolean quiet)
-
-