com.xebialabs.deployit.jcr
Class JcrTemplate

java.lang.Object
  extended by com.xebialabs.deployit.jcr.JcrTemplate

@Component
public class JcrTemplate
extends java.lang.Object


Constructor Summary
JcrTemplate(javax.jcr.Repository repository)
           
 
Method Summary
<T> T
execute(JcrCallback<T> callback)
           
<T> T
execute(java.lang.String username, java.lang.String password, JcrCallback<T> callback)
           
<T> T
executeAsAdmin(JcrCallback<T> callback)
           
 boolean isLoggedIn()
           
 void login()
           
 void logout()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JcrTemplate

public JcrTemplate(javax.jcr.Repository repository)
Method Detail

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()