]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/model/RepoElem.java
+ clean repo model
[gpl/argeo-slc.git] / plugins / org.argeo.slc.client.ui.dist / src / main / java / org / argeo / slc / client / ui / dist / model / RepoElem.java
index 3dc56ed2bb1c844a4cd52a13490a7dadb4360a1a..28841c8695aaf51195a6fe881e7af9756ba3dfd6 100644 (file)
@@ -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;
        }