Author: michiel
Date: 2009-11-17 18:08:35 +0100 (Tue, 17 Nov 2009)
New Revision: 39748

Modified:
   mmbase/trunk/core/src/main/java/org/mmbase/bridge/util/MapNode.java
Log:
removed some stuff which was in super already. 

Modified: mmbase/trunk/core/src/main/java/org/mmbase/bridge/util/MapNode.java
===================================================================
--- mmbase/trunk/core/src/main/java/org/mmbase/bridge/util/MapNode.java 
2009-11-17 17:08:01 UTC (rev 39747)
+++ mmbase/trunk/core/src/main/java/org/mmbase/bridge/util/MapNode.java 
2009-11-17 17:08:35 UTC (rev 39748)
@@ -206,66 +206,24 @@
         return BridgeCollections.EMPTY_STRINGLIST;
     }
 
-    @Override
-    public void createAlias(String aliasName) {
-        throw new UnsupportedOperationException("Map nodes have no aliases");
-    }
 
     @Override
-    public void deleteAlias(String aliasName) {
-        throw new UnsupportedOperationException("Map nodes have no aliases");
-    }
-
-    @Override
     public Relation createRelation(Node destinationNode, RelationManager 
relationManager) {
-        throw new UnsupportedOperationException("Map nodes have no relations");
+        throw new UnsupportedOperationException(this.getClass().getName() + "s 
 have no relations");
     }
 
-
     @Override
-    public void setContext(String context) {
-        throw new UnsupportedOperationException("Map nodes have no security 
context");
-    }
-
-    // javadoc inherited (from Node)
-    @Override
-    public String getContext() {
-        throw new UnsupportedOperationException("Virtual nodes have no 
security context");
-    }
-
-
-    // javadoc inherited (from Node)
-    @Override
-    public StringList getPossibleContexts() {
-        return BridgeCollections.EMPTY_STRINGLIST;
-    }
-
-    @Override
     public boolean mayWrite() {
         return true;
     }
 
     @Override
-    public boolean mayDelete() {
-        return false;
-    }
-
-    @Override
     public boolean mayChangeContext() {
-        return false;
+        return true;
     }
 
-    public Collection<Function<?>>  getFunctions() {
-        return  nodeManager.getFunctions();
-    }
 
-
     @Override
-    protected Function getNodeFunction(String functionName) {
-        return nodeManager.getFunction(functionName);
-    }
-
-    @Override
     public void setNodeManager(NodeManager nm) {
         nodeManager = nm;
     }

_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to