X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=plugins%2Forg.argeo.slc.client.ui.dist%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fclient%2Fui%2Fdist%2Fmodel%2FRepoElem.java;h=28841c8695aaf51195a6fe881e7af9756ba3dfd6;hb=1e6cf7254fb9f150251594cf0383b3b1c5210517;hp=3dc56ed2bb1c844a4cd52a13490a7dadb4360a1a;hpb=7ac8a536076af44569a23d9d67bb443cdc06018b;p=gpl%2Fargeo-slc.git diff --git a/plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/model/RepoElem.java b/plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/model/RepoElem.java index 3dc56ed2b..28841c869 100644 --- a/plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/model/RepoElem.java +++ b/plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/model/RepoElem.java @@ -199,20 +199,32 @@ public class RepoElem extends DistParentElem { return uri; } + public String getRepoNodePath() { + if (repoNode == null) + return null; + else + try { + return repoNode.getPath(); + } catch (RepositoryException e) { + throw new SlcException("Cannot get node path for repository " + + label, e); + } + } + /** * Exposes the local repoNode that completely define a connection to a * repository (including a set of credentials). Might return null in case of * an anonymous user */ - public Node getRepoNode() { + protected Node getRepoNode() { return repoNode; } - public Repository getRepository() { + protected Repository getRepository() { return repository; } - - public Credentials getCredentials() { + + protected Credentials getCredentials() { return credentials; }