RepositoryConstants
, WorkspaceMapping
, SessionProviderRegistry
instead.public final class ContentRepository extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CONFIG
Deprecated.
Use
RepositoryConstants.CONFIG instead |
static String |
DEFAULT_WORKSPACE
Deprecated.
|
static String |
NAMESPACE_PREFIX
Deprecated.
Use
RepositoryConstants.NAMESPACE_PREFIX instead |
static String |
NAMESPACE_URI
Deprecated.
Use
RepositoryConstants.NAMESPACE_URI instead |
static String |
REPOSITORY_PSWD
Deprecated.
since 4.5 - do not use
|
static String |
REPOSITORY_USER
Deprecated.
since 4.5 - do not use
|
static String |
USER_GROUPS
Deprecated.
Use
RepositoryConstants.USER_GROUPS instead |
static String |
USER_ROLES
Deprecated.
Use
RepositoryConstants.USER_ROLES instead |
static String |
USERS
Deprecated.
Use
RepositoryConstants.USERS instead |
static String |
VERSION_STORE
Deprecated.
Use
RepositoryConstants.VERSION_STORE instead |
static String |
WEBSITE
Deprecated.
Use
RepositoryConstants.WEBSITE instead |
Modifier and Type | Method and Description |
---|---|
static void |
addMappedRepositoryName(String logicalWorkspaceName,
String repositoryName)
Deprecated.
since 4.5 - use
RepositoryManager.addWorkspaceMapping(info.magnolia.repository.definition.WorkspaceMappingDefinition) directly. |
static void |
addMappedRepositoryName(String logicalWorkspaceName,
String repositoryName,
String workspaceName)
Deprecated.
since 4.5 - use
RepositoryManager.addWorkspaceMapping(info.magnolia.repository.definition.WorkspaceMappingDefinition) directly. |
static boolean |
checkIfInitialized()
Deprecated.
since 4.5 - use
RepositoryManager.checkIfInitialized() directly. |
static boolean |
checkIfInitialized(String logicalWorkspaceName)
Deprecated.
since 4.5 - use
RepositoryManager.checkIfInitialized(String) directly. |
static Iterator<String> |
getAllRepositoryNames()
Deprecated.
since 4.5 - use
RepositoryManager.getWorkspaceNames() directly. |
static String |
getDefaultWorkspace(String repositoryId)
Deprecated.
Get default workspace name.
|
static String |
getInternalWorkspaceName(String physicalWorkspaceName)
Deprecated.
since 4.5 - do not use.
|
static String |
getMappedRepositoryName(String logicalWorkspaceName)
Deprecated.
since 4.5 - use
RepositoryManager.getWorkspaceMapping(String) . |
static String |
getMappedWorkspaceName(String logicalWorkspaceName)
Deprecated.
since 4.5 - use
RepositoryManager.getWorkspaceMapping(String) . |
static String |
getParentRepositoryName(String physicalWorkspaceName)
Deprecated.
since 4.5 - do not use.
|
static javax.jcr.Repository |
getRepository(String repositoryOrLogicalWorkspace)
Deprecated.
since 4.5 - use
RepositoryManager.getRepository(String) directly. |
static RepositoryDefinition |
getRepositoryMapping(String repositoryOrLogicalWorkspace)
Deprecated.
since 4.5 - use
RepositoryManager.getRepositoryDefinition(String) directly. |
static Provider |
getRepositoryProvider(String repositoryOrLogicalWorkspace)
Deprecated.
since 4.5 - use
RepositoryManager.getRepositoryProvider(String) directly. |
static boolean |
hasRepositoryMapping(String repositoryOrLogicalWorkspace)
Deprecated.
since 4.5 - use
RepositoryManager.hasRepository(String) directly. |
static void |
init()
Deprecated.
since 4.5 - use
RepositoryManager.init() directly. |
static void |
loadRepository(RepositoryDefinition repositoryDefinition)
Deprecated.
since 4.5 - use
RepositoryManager.loadRepository(info.magnolia.repository.definition.RepositoryDefinition) directly. |
static void |
loadWorkspace(String repositoryId,
String workspaceName)
Deprecated.
since 4.5 - use
RepositoryManager.loadWorkspace(String, String) directly. |
static void |
reload()
Deprecated.
since 4.5 - use
RepositoryManager.reload() directly. |
static void |
shutdown()
Deprecated.
since 4.5 - use
RepositoryManager.shutdown() directly. |
public static final String WEBSITE
RepositoryConstants.WEBSITE
insteadpublic static final String USERS
RepositoryConstants.USERS
insteadpublic static final String USER_ROLES
RepositoryConstants.USER_ROLES
insteadpublic static final String USER_GROUPS
RepositoryConstants.USER_GROUPS
insteadpublic static final String CONFIG
RepositoryConstants.CONFIG
insteadpublic static final String VERSION_STORE
RepositoryConstants.VERSION_STORE
insteadpublic static final String NAMESPACE_PREFIX
RepositoryConstants.NAMESPACE_PREFIX
insteadpublic static final String NAMESPACE_URI
RepositoryConstants.NAMESPACE_URI
insteadpublic static final String DEFAULT_WORKSPACE
public static String REPOSITORY_USER
public static String REPOSITORY_PSWD
public static void init()
RepositoryManager.init()
directly.public static void shutdown()
RepositoryManager.shutdown()
directly.public static boolean checkIfInitialized() throws AccessDeniedException, javax.jcr.RepositoryException
RepositoryManager.checkIfInitialized()
directly.false
only if
all the workspaces are empty (no node else than the root one).false
if all the workspaces are empty, true
if at least one of them has content.AccessDeniedException
- repository authentication failedjavax.jcr.RepositoryException
- exception while accessing the repositorypublic static boolean checkIfInitialized(String logicalWorkspaceName) throws javax.jcr.RepositoryException, AccessDeniedException
RepositoryManager.checkIfInitialized(String)
directly.RuntimeException
- if the workspace doesn't exist or has not yet been loadedjavax.jcr.RepositoryException
AccessDeniedException
public static void reload()
RepositoryManager.reload()
directly.init()
public static void loadRepository(RepositoryDefinition repositoryDefinition) throws RepositoryNotInitializedException, InstantiationException, IllegalAccessException, ClassNotFoundException
RepositoryManager.loadRepository(info.magnolia.repository.definition.RepositoryDefinition)
directly.public static void loadWorkspace(String repositoryId, String workspaceName) throws javax.jcr.RepositoryException
RepositoryManager.loadWorkspace(String, String)
directly.javax.jcr.RepositoryException
public static String getParentRepositoryName(String physicalWorkspaceName) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
- if no physical workspace exists by that namepublic static String getMappedRepositoryName(String logicalWorkspaceName)
RepositoryManager.getWorkspaceMapping(String)
.public static String getMappedWorkspaceName(String logicalWorkspaceName)
RepositoryManager.getWorkspaceMapping(String)
.public static void addMappedRepositoryName(String logicalWorkspaceName, String repositoryName)
RepositoryManager.addWorkspaceMapping(info.magnolia.repository.definition.WorkspaceMappingDefinition)
directly.public static void addMappedRepositoryName(String logicalWorkspaceName, String repositoryName, String workspaceName)
RepositoryManager.addWorkspaceMapping(info.magnolia.repository.definition.WorkspaceMappingDefinition)
directly.public static String getDefaultWorkspace(String repositoryId)
public static javax.jcr.Repository getRepository(String repositoryOrLogicalWorkspace)
RepositoryManager.getRepository(String)
directly.IllegalArgumentException
- if there is no repository or workspace by this namepublic static Provider getRepositoryProvider(String repositoryOrLogicalWorkspace)
RepositoryManager.getRepositoryProvider(String)
directly.IllegalArgumentException
- if there is no repository or workspace by this namepublic static RepositoryDefinition getRepositoryMapping(String repositoryOrLogicalWorkspace)
RepositoryManager.getRepositoryDefinition(String)
directly.public static boolean hasRepositoryMapping(String repositoryOrLogicalWorkspace)
RepositoryManager.hasRepository(String)
directly.true
if a mapping for the given repository name or workspace name exist.public static Iterator<String> getAllRepositoryNames()
RepositoryManager.getWorkspaceNames()
directly.public static String getInternalWorkspaceName(String physicalWorkspaceName)
Copyright © 2003–2017 Magnolia International Ltd.. All rights reserved.