public class LRepositoryImpl extends Object implements LRepository
| Constructor and Description |
|---|
LRepositoryImpl(javax.servlet.ServletContext context,
JcrRepository repository,
javax.jcr.Credentials creds) |
| Modifier and Type | Method and Description |
|---|---|
void |
backup(String name,
BackupParams options)
Backup repository.
|
String[] |
getWorkspaces()
Gets list of available workspaces.
|
void |
importXML(String workspace) |
String |
name()
Name of the repository.
|
javax.jcr.Repository |
repository()
Provides access to the original repository.
|
void |
restore(String name,
RestoreParams options)
Restore repository.
|
javax.jcr.Session |
session(String workspace)
Gets session to the given workspace.
|
public LRepositoryImpl(javax.servlet.ServletContext context, JcrRepository repository, javax.jcr.Credentials creds) throws javax.jcr.LoginException, javax.jcr.RepositoryException
javax.jcr.LoginExceptionjavax.jcr.RepositoryExceptionpublic String name()
LRepositoryname in interface LRepositorypublic String[] getWorkspaces()
LRepositorygetWorkspaces in interface LRepositorypublic javax.jcr.Session session(String workspace) throws RemoteException
LRepositorysession in interface LRepositoryworkspace - the name of the workspace.RemoteException - if there is a problem talking to a remote servicepublic javax.jcr.Repository repository()
LRepositoryrepository in interface LRepositorypublic void backup(String name, BackupParams options) throws RemoteException
LRepositorybackup in interface LRepositoryRemoteExceptionpublic void restore(String name, RestoreParams options) throws RemoteException
LRepositoryrestore in interface LRepositoryRemoteExceptionpublic void importXML(String workspace) throws RemoteException
RemoteExceptionCopyright © 2008–2018 JBoss, a division of Red Hat. All rights reserved.