]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc.core/src/main/java/org/argeo/slc/core/structure/tree/TreeSRegistry.java
Modifications required for web
[gpl/argeo-slc.git] / org.argeo.slc.core / src / main / java / org / argeo / slc / core / structure / tree / TreeSRegistry.java
index 32ea36413657a858d132263102a049d94431ff94..e38f31e9d3337595006b2b169bdf42632fa33278 100644 (file)
@@ -13,9 +13,11 @@ import org.argeo.slc.core.structure.StructureRegistry;
 \r
 /** Tree based implementation of a structure registry. */\r
 public class TreeSRegistry implements StructureRegistry {\r
+       public final static String STATUS_ACTIVE = "STATUS_ACTIVE";\r
+       \r
        /** For ORM */\r
        private Long tid;\r
-       private TreeSPath root;\r
+       private String status;\r
        private Map<TreeSPath, SimpleSElement> elements = new TreeMap<TreeSPath, SimpleSElement>();\r
 \r
        private String mode = StructureRegistry.ALL;\r
@@ -65,14 +67,13 @@ public class TreeSRegistry implements StructureRegistry {
                this.activePaths = activePaths;\r
        }\r
 \r
-       /** Gets the related root path. */\r
-       public TreeSPath getRoot() {\r
-               return root;\r
+\r
+       public String getStatus() {\r
+               return status;\r
        }\r
 \r
-       /** Sets the related root path. */\r
-       public void setRoot(TreeSPath root) {\r
-               this.root = root;\r
+       public void setStatus(String status) {\r
+               this.status = status;\r
        }\r
 \r
        /** Gets the elements. */\r