1 10 11 package org.mmbase.bridge; 12 import java.util.*; 13 14 import org.mmbase.security.UserContext; 15 import org.mmbase.util.functions.Function; 16 17 26 public interface Cloud { 27 28 public static final String PROP_XMLMODE = "org.mmbase.xml-mode"; 29 30 public static final String PROP_SESSIONNAME = "org.mmbase.cloud.sessionname"; 31 32 41 public Node getNode(int number) throws NotFoundException; 42 43 53 public Node getNode(String number) throws NotFoundException; 54 55 56 65 public Node getNodeByAlias(String alias) throws NotFoundException; 66 67 78 public Relation getRelation(int number) throws NotFoundException; 79 80 92 public Relation getRelation(String number) throws NotFoundException; 93 94 103 public boolean hasNode(int number); 104 105 115 public boolean hasNode(String number); 116 117 127 public boolean hasRelation(int number); 128 129 140 public boolean hasRelation(String number); 141 142 152 public boolean mayRead(int number); 153 154 165 public boolean mayRead(String number); 166 167 173 public NodeManagerList getNodeManagers(); 174 175 182 public NodeManager getNodeManager(String name) throws NotFoundException; 183 184 190 public boolean hasNodeManager(String name); 191 192 200 public NodeManager getNodeManager(int nodeManagerId) throws NotFoundException; 201 202 210 public RelationManager getRelationManager(int relationManagerId) throws NotFoundException; 211 212 221 public RelationManager getRelationManager(String sourceManagerName, String destinationManagerName, String roleName) throws NotFoundException; 222 223 224 234 public RelationManager getRelationManager(NodeManager sourceManager, NodeManager destinationManager, String roleName) throws NotFoundException; 235 236 237 238 246 public boolean hasRelationManager(String sourceManagerName, String destinationManagerName, String roleName); 247 248 249 258 public boolean hasRelationManager(NodeManager sourceManager, NodeManager destinationManager, String roleName); 259 260 261 267 public boolean hasRole(String roleName); 268 269 270 277 public RelationManager getRelationManager(String roleName) throws NotFoundException; 278 279 285 public boolean hasRelationManager(String roleName); 286 287 293 public RelationManagerList getRelationManagers(); 294 295 305 public RelationManagerList getRelationManagers(String sourceManagerName, String destinationManagerName, String roleName) throws NotFoundException; 306 307 317 public RelationManagerList getRelationManagers(NodeManager sourceManager, NodeManager destinationManager, 318 String roleName) throws NotFoundException; 319 320 325 public CloudContext getCloudContext(); 326 327 333 public Transaction createTransaction(); 334 335 342 public Transaction createTransaction(String name) throws AlreadyExistsException; 343 344 354 public Transaction createTransaction(String name, boolean overwrite) throws AlreadyExistsException; 355 356 363 public Transaction getTransaction(String name); 364 365 366 372 public String getName(); 373 374 380 public String getDescription(); 381 382 387 public UserContext getUser(); 388 389 513 public NodeList getList(String startNodes, String nodePath, String fields, 514 String constraints, String orderby, String directions, 515 String searchDir, boolean distinct); 516 517 525 public NodeList getList(Query query); 526 527 528 533 public Query createQuery(); 534 535 536 540 public Query createAggregatedQuery(); 541 542 543 550 public NodeQuery createNodeQuery(); 551 552 553 559 public void setLocale(Locale locale); 560 561 567 public Locale getLocale(); 568 569 576 public Object getProperty(Object key); 577 578 585 public void setProperty(Object key, Object value); 586 587 591 public Map getProperties(); 592 593 604 public Collection getFunctions(String setName); 605 606 616 public Function getFunction(String setName, String functionName); 617 618 624 public NodeList createNodeList(); 625 626 632 public RelationList createRelationList(); 633 634 640 public NodeManagerList createNodeManagerList(); 641 642 648 public RelationManagerList createRelationManagerList(); 649 650 657 public StringList getPossibleContexts(); 658 659 } 660 | Popular Tags |