]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc/src/main/java/org/argeo/slc/core/structure/StructureRegistry.java
Simplify structure framework
[gpl/argeo-slc.git] / org.argeo.slc / src / main / java / org / argeo / slc / core / structure / StructureRegistry.java
index 3ffb2d26ff1caa15139f4794d7deafe312139e6a..140882f749d8b268f249e15523b7e74a0125c436 100644 (file)
@@ -8,21 +8,24 @@ public interface StructureRegistry {
        public static String READ = "READ";\r
        /** All mode: everything is executed regardless of the active paths. */\r
        public static String ALL = "ALL";\r
-       /** Active mode: only teh active paths are executed. */\r
+       /** Active mode: only the active paths are executed. */\r
        public static String ACTIVE = "ACTIVE";\r
 \r
        /** Adds an element to the registry. */\r
-       public void register(StructureElement element);\r
+       public void register(StructurePath path, StructureElement element);\r
 \r
        /**\r
         * Adds the wrapped element of a <code>SructureAware</code>, and\r
         * propagates the registration.\r
         */\r
-       public void register(StructureAware structureAware);\r
+       public void register(StructurePath path, StructureAware structureAware);\r
 \r
        /** Lists <b>all</b> registered elements. */\r
        public List<StructureElement> listElements();\r
 \r
+       /** Lists <b>all</b> registered elements. */\r
+       public List<StructurePath> listPaths();\r
+\r
        /** Gets a element based on its path. */\r
        public StructureElement getElement(StructurePath path);\r
 \r