public interface SessionDecorator
javax.jcr.Session
instances can be decorated for some reasons.
For example, sessions in a session pool can be decorated to override logout()
method
to change the default action by returning itself to the pool.
Or, in some cases, a session can be decorated to disallow writing actions to make it read-only.Modifier and Type | Method and Description |
---|---|
javax.jcr.Session |
decorate(javax.jcr.Session session)
Decorates the session and returns another decorated session.
|
javax.jcr.Session |
decorate(javax.jcr.Session session,
String userID)
Decorates the session and returns another decorated session
with the user ID used to acquire the session
|
javax.jcr.Session decorate(javax.jcr.Session session)
session
- javax.jcr.Session decorate(javax.jcr.Session session, String userID)
session
- userID
- Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.