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

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

execute

public final <T> T execute(JcrCallback<T> callback)
                throws RuntimeIOException,
                       RuntimeRepositoryException
Throws:
RuntimeIOException
RuntimeRepositoryException

login

public void login()

isLoggedIn

public boolean isLoggedIn()

logout

public void logout()