import javax.jcr.Session;
import javax.jcr.nodetype.NodeType;
import javax.jcr.Session;
import javax.jcr.nodetype.NodeType;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
import org.argeo.jcr.ArgeoJcrUtils;
import org.argeo.jcr.ArgeoNames;
import org.argeo.jcr.JcrUtils;
import org.argeo.jcr.ArgeoJcrUtils;
import org.argeo.jcr.ArgeoNames;
import org.argeo.jcr.JcrUtils;
* Node or just an URI and a label if user is anonymous
*/
public class RepoElem extends DistParentElem {
* Node or just an URI and a label if user is anonymous
*/
public class RepoElem extends DistParentElem {
- // private final static Log log = LogFactory.getLog(RepoElem.class);
+ private final static Log log = LogFactory.getLog(RepoElem.class);
+
private Repository repository;
private Credentials credentials;
private RepositoryFactory repositoryFactory;
private Repository repository;
private Credentials credentials;
private RepositoryFactory repositoryFactory;
}
public Object[] getChildren() {
}
public Object[] getChildren() {
+ try {
+ connect();
+ } catch (Exception e) {
+ log.error("Cannot connect to " + uri + " return no children.", e);
+ return new Object[0];
+ }
+
Session session = null;
try {
session = repository.login(credentials);
Session session = null;
try {
session = repository.login(credentials);