|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.beans.config.ContentRepository
RepositoryConstants
, WorkspaceMapping
, SessionProviderRegistry
instead.
public final class ContentRepository
Legacy type - will be dropped with one of the next release.
Field Summary | |
---|---|
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 |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
instead
public static final String NAMESPACE_URI
RepositoryConstants.NAMESPACE_URI
insteadpublic static final String DEFAULT_WORKSPACE
public static String REPOSITORY_USER
public static String REPOSITORY_PSWD
Method Detail |
---|
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 failed
javax.jcr.RepositoryException
- exception while accessing the repositorypublic static boolean checkIfInitialized(String logicalWorkspaceName) throws javax.jcr.RepositoryException, AccessDeniedException
RepositoryManager.checkIfInitialized(String)
directly.
javax.jcr.RepositoryException
AccessDeniedException
RuntimeException
- if the workspace doesn't exist or has not yet been loadedpublic 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.
repositoryDefinition
-
RepositoryNotInitializedException
InstantiationException
IllegalAccessException
ClassNotFoundException
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |