com.xebialabs.deployit.jcr
Class JcrTemplate
java.lang.Object
com.xebialabs.deployit.jcr.JcrTemplate
@Component
public class JcrTemplate
- extends java.lang.Object
|
Constructor Summary |
JcrTemplate(javax.jcr.Repository repository)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JcrTemplate
public JcrTemplate(javax.jcr.Repository repository)
executeAsAdmin
public final <T> T executeAsAdmin(JcrCallback<T> callback)
execute
public final <T> T execute(JcrCallback<T> callback)
execute
public final <T> T execute(java.lang.String username,
java.lang.String password,
JcrCallback<T> callback)
throws RuntimeIOException,
RuntimeRepositoryException
- Throws:
RuntimeIOException
RuntimeRepositoryException
login
public void login()
isLoggedIn
public boolean isLoggedIn()
logout
public void logout()