public class JCRStoreProvider extends Object implements Comparable<JCRStoreProvider>
JackrabbitStoreProvider,
but you can have different repositories mounted, which are based on other store providers.| Modifier and Type | Field and Description |
|---|---|
protected String |
authenticationType |
protected String |
guestPassword |
protected String |
guestUser |
protected javax.jcr.Repository |
repo |
protected String |
rmibind |
protected JCRSessionFactory |
sessionFactory |
protected String |
systemPassword |
protected String |
systemUser |
| Constructor and Description |
|---|
JCRStoreProvider() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCacheNode(javax.jcr.Node node)
Checks if the specified node, backed by this provider, can be cached.
|
boolean |
canExportNode(javax.jcr.Node node)
Indicates if the specified node, backed by this provider, is considered during export operation
|
boolean |
canExportProperty(javax.jcr.Property property)
Indicates if the specified property, backed by this provider, is considered during export operation
|
protected boolean |
canRegisterCustomNodeTypes() |
void |
checkAvailability() |
int |
compareTo(JCRStoreProvider o) |
protected javax.jcr.Repository |
createRepository()
Creates an instance of the content repository.
|
void |
deployDefinitions(String systemId)
Deploy definitions registered with the given systemId into the underlying repository
|
protected void |
dump(javax.jcr.Node n) |
boolean |
equals(Object o) |
String |
getAbsoluteContextPath(javax.servlet.ServletRequest request) |
String |
getAuthenticationType() |
protected javax.jcr.Credentials |
getCredentials(javax.jcr.Credentials originalCredentials) |
int |
getDepth() |
String |
getFactory() |
JahiaGroupManagerService |
getGroupManagerService() |
protected javax.jcr.Credentials |
getGuestCredentials() |
String |
getHttpPath() |
List<JCRNodeWrapper> |
getImportDropBoxes(String site,
JahiaUser user) |
JCRItemWrapper |
getItemWrapper(javax.jcr.Item item,
JCRSessionWrapper session) |
String |
getKey() |
String |
getMountPoint() |
String |
getMountStatusMessage() |
JCRNodeWrapper |
getNodeWrapper(javax.jcr.Node objectNode,
JCRSessionWrapper session) |
JCRNodeWrapper |
getNodeWrapper(javax.jcr.Node objectNode,
String path,
JCRNodeWrapper parent,
JCRSessionWrapper session) |
Patcher |
getPatcher() |
JCRPropertyWrapper |
getPropertyWrapper(javax.jcr.Property prop,
JCRSessionWrapper session) |
javax.jcr.query.QueryManager |
getQueryManager(JCRSessionWrapper session) |
String |
getRelativeRoot() |
javax.jcr.Repository |
getRepository() |
protected javax.jcr.Repository |
getRepositoryByJNDI() |
protected javax.jcr.Repository |
getRepositoryByRMI() |
String |
getRepositoryName() |
String |
getRmibind() |
JCRStoreService |
getService() |
javax.jcr.Session |
getSession(javax.jcr.Credentials credentials,
String workspace) |
JCRSessionFactory |
getSessionFactory() |
JCRNodeWrapper |
getSiteFolder(String site) |
JahiaSitesService |
getSitesService() |
protected javax.jcr.Credentials |
getSystemCredentials() |
JCRSessionWrapper |
getSystemSession() |
JCRSessionWrapper |
getSystemSession(String workspace) |
String |
getUrl() |
JCRNodeWrapper |
getUserFolder(JahiaUser user) |
JahiaUserManagerService |
getUserManagerService() |
Map<String,Constructor<?>> |
getValidators() |
javax.jcr.PropertyIterator |
getWeakReferences(JCRNodeWrapper node,
String propertyName,
javax.jcr.Session session)
Get weak references of a node
|
String |
getWebdavPath() |
int |
hashCode() |
protected void |
initContent() |
protected void |
initDynamicMountPoints() |
protected void |
initNodeTypes() |
protected void |
initObservers() |
boolean |
isAvailable()
Same as
isAvailable(false) |
boolean |
isAvailable(boolean silent)
Checks whether this provider is available to serve content.
|
boolean |
isDefault() |
boolean |
isDynamicallyMounted() |
boolean |
isExportable()
Deprecated.
now canExportNode and canExportProperty are used
Indicates if the nodes, backed by this provider, are considered during export operation.
|
boolean |
isInitialized() |
boolean |
isLockingAvailable() |
boolean |
isMainStorage() |
boolean |
isReadOnly() |
boolean |
isRunning()
Deprecated.
with no replacement
|
boolean |
isSearchAvailable() |
boolean |
isSlowConnection() |
boolean |
isUpdateMixinAvailable() |
boolean |
isVersioningAvailable() |
protected void |
registerCustomNodeTypes(String systemId,
javax.jcr.Workspace ws) |
void |
registerNamespaces()
Deploy all namespaces into provider
|
protected void |
rmiBind() |
protected void |
rmiUnbind() |
void |
setAuthenticationType(String authenticationType) |
void |
setDynamicallyMounted(boolean dynamicallyMounted) |
void |
setFactory(String factory) |
void |
setGroupManagerService(JahiaGroupManagerService groupManagerService) |
void |
setGuestPassword(String password) |
void |
setGuestUser(String user) |
void |
setKey(String key) |
void |
setMainStorage(boolean mainStorage) |
void |
setMountPoint(String mountPoint) |
void |
setMountStatus(JCRMountPointNode.MountStatus status)
Sets the mount status of this provider to the specified one.
|
void |
setMountStatus(JCRMountPointNode.MountStatus status,
String message)
Sets the mount status of this provider to the specified one.
|
void |
setMountStatusMessage(String mountStatusMessage) |
void |
setObserversUseRelativeRoot(boolean observersUseRelativePath) |
void |
setPatcher(Patcher patcher) |
void |
setProvidesDynamicMountPoints(boolean providesDynamicMountPoints) |
void |
setRegisterObservers(boolean registerObservers) |
void |
setRelativeRoot(String relativeRoot) |
void |
setRepository(javax.jcr.Repository repo) |
void |
setRepositoryName(String repositoryName) |
void |
setRmibind(String rmibind) |
void |
setService(JCRStoreService service) |
void |
setSessionFactory(JCRSessionFactory sessionFactory) |
void |
setSessionKeepAliveCheckInterval(long sessionKeepAliveCheckInterval)
Deprecated.
without no replacement
|
void |
setSitesService(JahiaSitesService sitesService) |
void |
setSlowConnection(boolean slowConnection) |
void |
setSystemPassword(String password) |
void |
setSystemUser(String user) |
void |
setUrl(String url) |
void |
setUserManagerService(JahiaUserManagerService userManagerService) |
void |
setWebdavPath(String webdavPath) |
void |
start() |
boolean |
start(boolean checkAvailability)
Starts this provider if possible, checking its availability before attempting the starting procedure if so requested.
|
void |
stop() |
void |
undeployDefinitions(String systemId)
Undeploy definitions registered with the given systemId from the underlying repository
|
protected void |
unregisterCustomNodeTypes(String systemId,
javax.jcr.Workspace ws) |
protected void |
unregisterObservers() |
protected String systemUser
protected String systemPassword
protected String guestUser
protected String guestPassword
protected String authenticationType
protected String rmibind
protected JCRSessionFactory sessionFactory
protected volatile javax.jcr.Repository repo
public String getKey()
public void setKey(String key)
public String getMountPoint()
public void setMountPoint(String mountPoint)
public String getWebdavPath()
public String getRelativeRoot()
public void setRelativeRoot(String relativeRoot)
public int getDepth()
public void setWebdavPath(String webdavPath)
public String getHttpPath()
public String getRepositoryName()
public void setRepositoryName(String repositoryName)
public String getFactory()
public void setFactory(String factory)
public String getUrl()
public void setUrl(String url)
public void setSystemUser(String user)
public void setSystemPassword(String password)
public void setGuestUser(String user)
public void setGuestPassword(String password)
public String getAuthenticationType()
public void setAuthenticationType(String authenticationType)
public String getRmibind()
public void setRmibind(String rmibind)
public JahiaUserManagerService getUserManagerService()
public void setUserManagerService(JahiaUserManagerService userManagerService)
public JahiaGroupManagerService getGroupManagerService()
public void setGroupManagerService(JahiaGroupManagerService groupManagerService)
public JahiaSitesService getSitesService()
public void setSitesService(JahiaSitesService sitesService)
public JCRStoreService getService()
public void setService(JCRStoreService service)
public JCRSessionFactory getSessionFactory()
public void setSessionFactory(JCRSessionFactory sessionFactory)
@Deprecated public void setSessionKeepAliveCheckInterval(long sessionKeepAliveCheckInterval)
public Patcher getPatcher()
public void setPatcher(Patcher patcher)
public void start()
throws JahiaInitializationException
JahiaInitializationExceptionpublic boolean start(boolean checkAvailability)
throws JahiaInitializationException
checkAvailability - whether or not to check the availability before attempting the starting proceduretrue if this provider is available or availability checking was not requested, false otherwise.JahiaInitializationExceptionpublic boolean isAvailable()
isAvailable(false)public boolean isAvailable(boolean silent)
silent - true if the check should be done silently (i.e. without outputting information on the console), false otherwisetrue if this provider can serve content, false otherwise.public void checkAvailability()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void setMountStatus(JCRMountPointNode.MountStatus status)
status - the new status of this providerpublic void setMountStatus(JCRMountPointNode.MountStatus status, String message)
status - the new status of this providerpublic String getMountStatusMessage()
public void setMountStatusMessage(String mountStatusMessage)
protected void initNodeTypes()
throws javax.jcr.RepositoryException,
IOException
javax.jcr.RepositoryExceptionIOExceptionprotected void initObservers()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionprotected void initContent()
throws javax.jcr.RepositoryException,
IOException
javax.jcr.RepositoryExceptionIOExceptionprotected void initDynamicMountPoints()
public void stop()
protected void rmiUnbind()
@Deprecated public boolean isRunning()
public void deployDefinitions(String systemId) throws IOException, javax.jcr.RepositoryException
systemId - IOExceptionjavax.jcr.RepositoryException - in case of JCR-related errorspublic void registerNamespaces()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryException - in case of JCR-related errorspublic void undeployDefinitions(String systemId) throws IOException, javax.jcr.RepositoryException
systemId - IOExceptionjavax.jcr.RepositoryException - in case of JCR-related errorspublic javax.jcr.Repository getRepository()
protected void rmiBind()
protected javax.jcr.Repository createRepository()
Repositorypublic void setRepository(javax.jcr.Repository repo)
protected javax.jcr.Repository getRepositoryByJNDI()
protected javax.jcr.Repository getRepositoryByRMI()
public javax.jcr.Session getSession(javax.jcr.Credentials credentials,
String workspace)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionprotected javax.jcr.Credentials getCredentials(javax.jcr.Credentials originalCredentials)
throws javax.jcr.PathNotFoundException,
javax.jcr.RepositoryException,
javax.jcr.ValueFormatException
javax.jcr.PathNotFoundExceptionjavax.jcr.RepositoryExceptionjavax.jcr.ValueFormatExceptionpublic JCRItemWrapper getItemWrapper(javax.jcr.Item item, JCRSessionWrapper session) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic JCRNodeWrapper getNodeWrapper(javax.jcr.Node objectNode, JCRSessionWrapper session) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic JCRNodeWrapper getNodeWrapper(javax.jcr.Node objectNode, String path, JCRNodeWrapper parent, JCRSessionWrapper session) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic JCRPropertyWrapper getPropertyWrapper(javax.jcr.Property prop, JCRSessionWrapper session) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionprotected boolean canRegisterCustomNodeTypes()
protected void registerCustomNodeTypes(String systemId, javax.jcr.Workspace ws) throws IOException, javax.jcr.RepositoryException
IOExceptionjavax.jcr.RepositoryExceptionprotected void unregisterCustomNodeTypes(String systemId, javax.jcr.Workspace ws) throws IOException, javax.jcr.RepositoryException
IOExceptionjavax.jcr.RepositoryExceptionpublic JCRNodeWrapper getUserFolder(JahiaUser user) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic List<JCRNodeWrapper> getImportDropBoxes(String site, JahiaUser user) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic JCRNodeWrapper getSiteFolder(String site) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic String getAbsoluteContextPath(javax.servlet.ServletRequest request)
public boolean isMainStorage()
public void setMainStorage(boolean mainStorage)
public boolean isDynamicallyMounted()
public void setDynamicallyMounted(boolean dynamicallyMounted)
@Deprecated public boolean isExportable()
true if the nodes, backed by this provider, are also included during the export operation; false if
they are skippedpublic boolean canCacheNode(javax.jcr.Node node)
true for nodes, which are either read-only or can push observation events if their content is changed, to ensure cache
consistency.true if the specified node can be cached; false otherwisepublic boolean canExportNode(javax.jcr.Node node)
true if the specified node, backed by this provider, is included during the export operation
false if it isn'tpublic boolean canExportProperty(javax.jcr.Property property)
true if the specified property, backed by this provider, is included during the export operation
false if it isn'tpublic boolean isDefault()
protected void dump(javax.jcr.Node n)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic javax.jcr.query.QueryManager getQueryManager(JCRSessionWrapper session) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic JCRSessionWrapper getSystemSession() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic JCRSessionWrapper getSystemSession(String workspace) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic boolean isInitialized()
public void setProvidesDynamicMountPoints(boolean providesDynamicMountPoints)
public boolean isReadOnly()
public boolean isVersioningAvailable()
public boolean isLockingAvailable()
public boolean isSearchAvailable()
public boolean isUpdateMixinAvailable()
public boolean isSlowConnection()
public void setSlowConnection(boolean slowConnection)
public javax.jcr.PropertyIterator getWeakReferences(JCRNodeWrapper node, String propertyName, javax.jcr.Session session) throws javax.jcr.RepositoryException
node - nodepropertyName - name of the propertysession - sessionjavax.jcr.RepositoryException - in case of JCR-related errorspublic int compareTo(JCRStoreProvider o)
compareTo in interface Comparable<JCRStoreProvider>public Map<String,Constructor<?>> getValidators()
public void setRegisterObservers(boolean registerObservers)
public void setObserversUseRelativeRoot(boolean observersUseRelativePath)
protected void unregisterObservers()
protected javax.jcr.Credentials getGuestCredentials()
protected javax.jcr.Credentials getSystemCredentials()
Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.