public class SpringJackrabbitRepository extends org.apache.jackrabbit.commons.AbstractRepository implements org.apache.jackrabbit.api.JackrabbitRepository, org.springframework.web.context.ServletContextAware, org.springframework.context.ApplicationContextAware, ReadOnlyModeCapable
OPTION_PRINCIPAL_MANAGEMENT_SUPPORTED, OPTION_PRIVILEGE_MANAGEMENT_SUPPORTED, OPTION_USER_MANAGEMENT_SUPPORTEDIDENTIFIER_STABILITY, IDENTIFIER_STABILITY_INDEFINITE_DURATION, IDENTIFIER_STABILITY_METHOD_DURATION, IDENTIFIER_STABILITY_SAVE_DURATION, IDENTIFIER_STABILITY_SESSION_DURATION, LEVEL_1_SUPPORTED, LEVEL_2_SUPPORTED, NODE_TYPE_MANAGEMENT_AUTOCREATED_DEFINITIONS_SUPPORTED, NODE_TYPE_MANAGEMENT_INHERITANCE, NODE_TYPE_MANAGEMENT_INHERITANCE_MINIMAL, NODE_TYPE_MANAGEMENT_INHERITANCE_MULTIPLE, NODE_TYPE_MANAGEMENT_INHERITANCE_SINGLE, NODE_TYPE_MANAGEMENT_MULTIPLE_BINARY_PROPERTIES_SUPPORTED, NODE_TYPE_MANAGEMENT_MULTIVALUED_PROPERTIES_SUPPORTED, NODE_TYPE_MANAGEMENT_ORDERABLE_CHILD_NODES_SUPPORTED, NODE_TYPE_MANAGEMENT_OVERRIDES_SUPPORTED, NODE_TYPE_MANAGEMENT_PRIMARY_ITEM_NAME_SUPPORTED, NODE_TYPE_MANAGEMENT_PROPERTY_TYPES, NODE_TYPE_MANAGEMENT_RESIDUAL_DEFINITIONS_SUPPORTED, NODE_TYPE_MANAGEMENT_SAME_NAME_SIBLINGS_SUPPORTED, NODE_TYPE_MANAGEMENT_UPDATE_IN_USE_SUPORTED, NODE_TYPE_MANAGEMENT_VALUE_CONSTRAINTS_SUPPORTED, OPTION_ACCESS_CONTROL_SUPPORTED, OPTION_ACTIVITIES_SUPPORTED, OPTION_BASELINES_SUPPORTED, OPTION_JOURNALED_OBSERVATION_SUPPORTED, OPTION_LIFECYCLE_SUPPORTED, OPTION_LOCKING_SUPPORTED, OPTION_NODE_AND_PROPERTY_WITH_SAME_NAME_SUPPORTED, OPTION_NODE_TYPE_MANAGEMENT_SUPPORTED, OPTION_OBSERVATION_SUPPORTED, OPTION_QUERY_SQL_SUPPORTED, OPTION_RETENTION_SUPPORTED, OPTION_SHAREABLE_NODES_SUPPORTED, OPTION_SIMPLE_VERSIONING_SUPPORTED, OPTION_TRANSACTIONS_SUPPORTED, OPTION_UNFILED_CONTENT_SUPPORTED, OPTION_UPDATE_MIXIN_NODE_TYPES_SUPPORTED, OPTION_UPDATE_PRIMARY_NODE_TYPE_SUPPORTED, OPTION_VERSIONING_SUPPORTED, OPTION_WORKSPACE_MANAGEMENT_SUPPORTED, OPTION_XML_EXPORT_SUPPORTED, OPTION_XML_IMPORT_SUPPORTED, QUERY_FULL_TEXT_SEARCH_SUPPORTED, QUERY_JOINS, QUERY_JOINS_INNER, QUERY_JOINS_INNER_OUTER, QUERY_JOINS_NONE, QUERY_LANGUAGES, QUERY_STORED_QUERIES_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, WRITE_SUPPORTED| Constructor and Description |
|---|
SpringJackrabbitRepository() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.jackrabbit.api.JackrabbitRepository |
createRepository()
Creates a repository instance based on the contained JNDI reference.
|
org.apache.jackrabbit.core.cluster.ClusterNode |
getClusterNode()
Jackrabbit cluster node instance or
null if clustering is not activated. |
long |
getClusterRevision()
Returns current Jackrabbit cluster node revision or
0 if clustering is not activated. |
org.springframework.core.io.Resource |
getConfigFile() |
String |
getDescriptor(String key)
Delegated to the underlying repository instance.
|
String[] |
getDescriptorKeys()
Delegated to the underlying repository instance.
|
javax.jcr.Value |
getDescriptorValue(String key) |
javax.jcr.Value[] |
getDescriptorValues(String key) |
org.springframework.core.io.Resource |
getHomeDir() |
static SpringJackrabbitRepository |
getInstance()
Returns a singleton instance of this class.
|
int |
getReadOnlyModePriority()
Get the priority of the service.
|
org.apache.jackrabbit.api.JackrabbitRepository |
getRepository() |
String |
getServletContextAttributeName() |
boolean |
isSingleValueDescriptor(String key) |
javax.jcr.Session |
login(javax.jcr.Credentials credentials,
String workspaceName)
Delegated to the underlying repository instance.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setConfigFile(org.springframework.core.io.Resource configFile) |
void |
setDataStoreGarbageCollectorBeanId(String dataStoreGarbageCollectorBeanId) |
void |
setHomeDir(org.springframework.core.io.Resource homeDir) |
void |
setPerformMigrationToDataStoreIfNeeded(boolean performMigrationToDataStoreIfNeeded) |
void |
setServletContext(javax.servlet.ServletContext servletContext) |
void |
setServletContextAttributeName(String servletContextAttributeName) |
void |
setSettings(SettingsBean settings) |
void |
setTimeoutSwitchingToReadOnlyMode(long timeoutSwitchingToReadOnlyMode)
Set timeout waiting until switching to read only mode is possible.
|
void |
shutdown()
Delegated to the underlying repository instance.
|
void |
start() |
void |
stop() |
void |
switchReadOnlyMode(boolean enable)
Enable/disable read-only mode for a specific functional area this ReadOnlyModeCapable is responsible for.
|
void |
syncClusterNode()
Performs the sync on the Jackrabbit cluster node.
|
isStandardDescriptor, login, login, login, loginpublic static SpringJackrabbitRepository getInstance()
public org.springframework.core.io.Resource getConfigFile()
public void setConfigFile(org.springframework.core.io.Resource configFile)
public org.springframework.core.io.Resource getHomeDir()
public void setHomeDir(org.springframework.core.io.Resource homeDir)
public String getServletContextAttributeName()
public void setServletContextAttributeName(String servletContextAttributeName)
public void setServletContext(javax.servlet.ServletContext servletContext)
setServletContext in interface org.springframework.web.context.ServletContextAwareprotected org.apache.jackrabbit.api.JackrabbitRepository createRepository()
throws javax.jcr.RepositoryException,
IOException
javax.jcr.RepositoryException - if the repository could not be createdIOExceptionpublic void start()
throws javax.jcr.RepositoryException,
IOException
javax.jcr.RepositoryExceptionIOExceptionpublic void stop()
public javax.jcr.Session login(javax.jcr.Credentials credentials,
String workspaceName)
throws javax.jcr.LoginException,
javax.jcr.NoSuchWorkspaceException,
javax.jcr.RepositoryException
login in interface javax.jcr.Repositoryjavax.jcr.LoginExceptionjavax.jcr.NoSuchWorkspaceExceptionjavax.jcr.RepositoryExceptionpublic String getDescriptor(String key)
getDescriptor in interface javax.jcr.Repositorypublic String[] getDescriptorKeys()
getDescriptorKeys in interface javax.jcr.Repositorypublic boolean isSingleValueDescriptor(String key)
isSingleValueDescriptor in interface javax.jcr.Repositorypublic javax.jcr.Value getDescriptorValue(String key)
getDescriptorValue in interface javax.jcr.Repositorypublic javax.jcr.Value[] getDescriptorValues(String key)
getDescriptorValues in interface javax.jcr.Repositorypublic org.apache.jackrabbit.api.JackrabbitRepository getRepository()
public void shutdown()
shutdown in interface org.apache.jackrabbit.api.JackrabbitRepositorypublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void setDataStoreGarbageCollectorBeanId(String dataStoreGarbageCollectorBeanId)
public void setSettings(SettingsBean settings)
public void setPerformMigrationToDataStoreIfNeeded(boolean performMigrationToDataStoreIfNeeded)
public org.apache.jackrabbit.core.cluster.ClusterNode getClusterNode()
null if clustering is not activated.null if clustering is not activatedpublic long getClusterRevision()
0 if clustering is not activated.0 if clustering is not activatedpublic void syncClusterNode()
public void switchReadOnlyMode(boolean enable)
ReadOnlyModeCapableswitchReadOnlyMode in interface ReadOnlyModeCapableenable - true in case the read-only mode should be enabled; false otherwisepublic int getReadOnlyModePriority()
ReadOnlyModeCapablegetReadOnlyModePriority in interface ReadOnlyModeCapablepublic void setTimeoutSwitchingToReadOnlyMode(long timeoutSwitchingToReadOnlyMode)
timeoutSwitchingToReadOnlyMode - Timeout waiting until switching to read only mode is possible, ms.Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.