public interface JCRTemplate
JCRSessionFactory to provide access to a JCR repository.| Modifier and Type | Method and Description |
|---|---|
<X> X |
doExecute(JahiaUser user,
String workspace,
Locale locale,
JCRCallback<X> callback)
Execute the action specified by the given callback object within a new user Session.
|
<X> X |
doExecute(String username,
String realm,
String workspace,
Locale locale,
JCRCallback<X> callback)
Execute the action specified by the given callback object within a new user Session.
|
<X> X |
doExecuteWithSystemSession(JCRCallback<X> callback)
Execute the action specified by the given callback object within a system Session.
|
<X> X |
doExecuteWithSystemSessionAsUser(JahiaUser user,
String workspace,
Locale locale,
JCRCallback<X> callback)
Execute the action specified by the given callback object within a system Session.
|
<X> X |
doExecuteWithSystemSessionInSameWorkspaceAndLocale(JCRCallback<X> callback)
Execute the action specified by the given callback object within a system Session.
|
JCRSessionFactory |
getSessionFactory() |
JCRSessionFactory getSessionFactory()
<X> X doExecuteWithSystemSessionInSameWorkspaceAndLocale(JCRCallback<X> callback) throws javax.jcr.RepositoryException
X - the resulting object to return from the callback.callback - callback the JCRCallback that executes the client
operationjavax.jcr.RepositoryException - if the method could not find a current user session, or if any other underlying
JCR error occurred.<X> X doExecuteWithSystemSession(JCRCallback<X> callback) throws javax.jcr.RepositoryException
callback - the JCRCallback that executes the client
operationjavax.jcr.RepositoryException - in case of JCR errors<X> X doExecuteWithSystemSessionAsUser(JahiaUser user, String workspace, Locale locale, JCRCallback<X> callback) throws javax.jcr.RepositoryException
user - the user to open the session withworkspace - the workspace name to log intolocale - the locale of the session, null to use unlocalized sessioncallback - the JCRCallback that executes the client
operationjavax.jcr.RepositoryException - in case of JCR errors<X> X doExecute(String username, String realm, String workspace, Locale locale, JCRCallback<X> callback) throws javax.jcr.RepositoryException
user - the user to open the session withworkspace - the workspace name to log intolocale - the locale of the session, null to use unlocalized sessioncallback - the JCRCallback that executes the client
operationjavax.jcr.RepositoryException - in case of JCR errors<X> X doExecute(JahiaUser user, String workspace, Locale locale, JCRCallback<X> callback) throws javax.jcr.RepositoryException
user - the user to open the session withworkspace - the workspace name to log intolocale - the locale of the session, null to use unlocalized sessioncallback - the JCRCallback that executes the client
operationjavax.jcr.RepositoryException - in case of JCR errorsCopyright © 2004–2021 Jahia Solutions Group SA. All rights reserved.