public interface JCRCallback<T>
| Modifier and Type | Method and Description |
|---|---|
T |
doInJCR(JCRSessionWrapper session)
Called by
JCRTemplate within an active JCR
javax.jcr.JCRSession. |
T doInJCR(JCRSessionWrapper session) throws javax.jcr.RepositoryException
JCRTemplate within an active JCR
javax.jcr.JCRSession. It is not responsible for logging
out of the Session or handling transactions.
Allows for returning a result object created within the
callback, i.e. a domain object or a collection of domain
objects. A thrown RuntimeException is treated as an
application exception; it is propagated to the caller of the
template.session - session passed by the JCRTemplatejavax.jcr.RepositoryException - in case of JCR errorsCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.