Update of /var/cvs/src/org/mmbase/framework
In directory james.mmbase.org:/tmp/cvs-serv28787

Modified Files:
        Component.java BasicComponent.java 
Log Message:
compoennts have associated 'actions', reflecting that in the api too


See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/framework


Index: Component.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/framework/Component.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- Component.java      6 Aug 2007 16:57:25 -0000       1.15
+++ Component.java      21 Jan 2008 17:29:10 -0000      1.16
@@ -10,13 +10,14 @@
 import java.util.*;
 import java.net.URI;
 import org.mmbase.util.LocalizedString;
+import org.mmbase.security.Action;
 
 /**
  * A component is a piece of pluggable functionality that typically has 
dependencies on other
  * components, and may be requested several views.
  *
  * @author Michiel Meeuwissen
- * @version $Id: Component.java,v 1.15 2007/08/06 16:57:25 michiel Exp $
+ * @version $Id: Component.java,v 1.16 2008/01/21 17:29:10 michiel Exp $
  * @since MMBase-1.9
  */
 public interface Component {
@@ -106,4 +107,6 @@
      */
     Setting<?> getSetting(String name);
 
+    Map<String, Action> getActions();
+
 }


Index: BasicComponent.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/framework/BasicComponent.java,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -b -r1.39 -r1.40
--- BasicComponent.java 21 Jan 2008 15:31:36 -0000      1.39
+++ BasicComponent.java 21 Jan 2008 17:29:10 -0000      1.40
@@ -23,7 +23,7 @@
  * components, and may be requested several blocks.
  *
  * @author Michiel Meeuwissen
- * @version $Id: BasicComponent.java,v 1.39 2008/01/21 15:31:36 michiel Exp $
+ * @version $Id: BasicComponent.java,v 1.40 2008/01/21 17:29:10 michiel Exp $
  * @since MMBase-1.9
  */
 public class BasicComponent implements Component {
@@ -269,6 +269,10 @@
         return Collections.unmodifiableCollection(unsatisfied);
     }
 
+    public Map<String, Action> getActions() {
+        return ActionRepository.getInstance().get(getName());
+    }
+
     public void resolve(VirtualComponent unsat, Component comp) {
         unsatisfied.remove(unsat);
         dependencies.add(comp);
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to