public interface ManageableRepository
extends javax.jcr.Repository
| Modifier and Type | Field and Description | 
|---|---|
static int | 
OFFLINE
Repository OFFLINE status. 
 | 
static int | 
ONLINE
Repository ONLINE status. 
 | 
static int | 
SUSPENDED
Repository SUSPENDED status. 
 | 
static int | 
UNDEFINED
Repository UNDEFINED status. 
 | 
LEVEL_1_SUPPORTED, LEVEL_2_SUPPORTED, OPTION_LOCKING_SUPPORTED, OPTION_OBSERVATION_SUPPORTED, OPTION_QUERY_SQL_SUPPORTED, OPTION_TRANSACTIONS_SUPPORTED, OPTION_VERSIONING_SUPPORTED, QUERY_XPATH_DOC_ORDER, QUERY_XPATH_POS_INDEX, REP_NAME_DESC, REP_VENDOR_DESC, REP_VENDOR_URL_DESC, REP_VERSION_DESC, SPEC_NAME_DESC, SPEC_VERSION_DESC| Modifier and Type | Method and Description | 
|---|---|
void | 
addItemPersistenceListener(String workspaceName,
                          ItemsPersistenceListener listener)
Add the items persistence listener to the named workspace. 
 | 
boolean | 
canRemoveWorkspace(String workspaceName)
Indicates if workspace with name workspaceName can be removed. 
 | 
void | 
configWorkspace(WorkspaceEntry wsConfig)
Add new workspace configuration. 
 | 
void | 
createWorkspace(String workspaceName)
Create new workspace with name workspaceName. 
 | 
RepositoryEntry | 
getConfiguration()  | 
javax.jcr.Session | 
getDynamicSession(String workspaceName,
                 Collection<MembershipEntry> membershipEntries)  | 
javax.jcr.NamespaceRegistry | 
getNamespaceRegistry()  | 
ExtendedNodeTypeManager | 
getNodeTypeManager()  | 
int | 
getState()
Returns repository state. 
 | 
String | 
getStateTitle()
Returns the string representation of current repository state. 
 | 
javax.jcr.Session | 
getSystemSession(String workspaceName)  | 
org.exoplatform.services.jcr.core.WorkspaceContainerFacade | 
getWorkspaceContainer(String workspaceName)
Returns an entry point of workspace managing objects. 
 | 
String[] | 
getWorkspaceNames()  | 
void | 
importWorkspace(String workspaceName,
               InputStream xmlSource)
Create new workspace with name workspaceName and import data from exported
 XML. 
 | 
boolean | 
isWorkspaceInitialized(String workspaceName)
Check if workspace is initialized. 
 | 
void | 
removeWorkspace(String workspaceName)
Remove workspace with name workspaceName. 
 | 
void | 
setState(int state)
Set repository state. 
 | 
static final int OFFLINE
static final int ONLINE
static final int SUSPENDED
static final int UNDEFINED
void addItemPersistenceListener(String workspaceName, ItemsPersistenceListener listener)
workspaceName - - name of workspacelistener - Item persistence listenerboolean canRemoveWorkspace(String workspaceName) throws javax.jcr.NoSuchWorkspaceException
workspaceName - - name of workspacejavax.jcr.NoSuchWorkspaceExceptionvoid configWorkspace(WorkspaceEntry wsConfig) throws org.exoplatform.services.jcr.config.RepositoryConfigurationException, javax.jcr.RepositoryException
wsConfig - - configuration of workspaceorg.exoplatform.services.jcr.config.RepositoryConfigurationExceptionjavax.jcr.RepositoryExceptionvoid createWorkspace(String workspaceName) throws javax.jcr.RepositoryException
workspaceName - - name of workspacejavax.jcr.RepositoryExceptionRepositoryEntry getConfiguration()
javax.jcr.NamespaceRegistry getNamespaceRegistry()
ExtendedNodeTypeManager getNodeTypeManager()
javax.jcr.Session getSystemSession(String workspaceName) throws javax.jcr.RepositoryException
workspaceName - - name of workspacejavax.jcr.RepositoryExceptionjavax.jcr.Session getDynamicSession(String workspaceName, Collection<MembershipEntry> membershipEntries) throws javax.jcr.RepositoryException
workspaceName - - name of workspacemembershipEntries - - list of membershipsjavax.jcr.RepositoryExceptionString[] getWorkspaceNames()
void importWorkspace(String workspaceName, InputStream xmlSource) throws javax.jcr.RepositoryException, IOException
workspaceName - - name of workspacexmlSource - - InputStream with content of workspacejavax.jcr.RepositoryExceptionIOExceptionboolean isWorkspaceInitialized(String workspaceName) throws javax.jcr.RepositoryException
workspaceName - - name of workspacejavax.jcr.RepositoryExceptionvoid removeWorkspace(String workspaceName) throws javax.jcr.RepositoryException
workspaceName - - name of workspacejavax.jcr.RepositoryExceptionorg.exoplatform.services.jcr.core.WorkspaceContainerFacade getWorkspaceContainer(String workspaceName)
void setState(int state)
              throws javax.jcr.RepositoryException
state - the new repository state to setjavax.jcr.RepositoryExceptionint getState()
String getStateTitle()
Copyright © 2003-2017 eXo Platform SAS. All Rights Reserved.