1 10 11 package org.mmbase.bridge; 12 import java.util.Map ; 13 import java.util.Locale ; 14 import javax.servlet.ServletResponse ; 15 import javax.servlet.ServletRequest ; 16 17 18 30 public interface NodeManager extends Node { 31 32 36 public final static int ORDER_NONE = -1; 37 41 public final static int ORDER_CREATE = 0; 42 47 public final static int ORDER_EDIT = 1; 48 52 public final static int ORDER_LIST = 2; 53 57 public final static int ORDER_SEARCH = 3; 58 59 public final static int GUI_SINGULAR = 1; 60 public final static int GUI_PLURAL = 2; 61 62 69 public Node createNode(); 70 71 76 public Cloud getCloud(); 77 78 83 public NodeManager getParent() throws NotFoundException; 84 85 90 public NodeManagerList getDescendants(); 91 92 97 public String getName(); 98 99 105 public String getProperty(String name); 106 107 112 public Map getProperties(); 113 114 120 public String getGUIName(); 121 122 131 public String getGUIName(int plurality); 132 133 142 public String getGUIName(int plurality, Locale locale); 143 144 149 public String getDescription(); 150 151 158 public String getDescription(Locale locale); 159 160 165 public FieldList getFields(); 166 167 181 public FieldList getFields(int order); 182 183 190 public Field getField(String name) throws NotFoundException; 191 192 199 public boolean hasField(String fieldName); 200 201 278 public NodeList getList(String constraints, String orderby, String directions); 279 280 281 282 293 public NodeQuery createQuery(); 294 295 302 public NodeList getList(NodeQuery query); 303 304 305 311 public String getInfo(String command); 312 313 321 public String getInfo(String command, ServletRequest req, ServletResponse resp); 322 323 328 public RelationManagerList getAllowedRelations(); 329 330 339 public RelationManagerList getAllowedRelations(String nodeManager, String role, String direction); 340 341 350 public RelationManagerList getAllowedRelations(NodeManager nodeManager, String role, String direction); 351 352 360 public NodeList getList(String command, Map parameters); 361 362 372 public NodeList getList(String command, Map parameters, ServletRequest req, ServletResponse resp); 373 374 379 public boolean mayCreateNode(); 380 381 387 public FieldList createFieldList(); 388 389 395 public NodeList createNodeList(); 396 397 403 public RelationList createRelationList(); 404 405 } 406 | Popular Tags |