1 7 8 package javax.naming.directory; 9 10 import javax.naming.*; 11 12 149 150 public interface DirContext extends Context { 151 152 167 public Attributes getAttributes(Name name) throws NamingException; 168 169 179 public Attributes getAttributes(String name) throws NamingException; 180 181 207 public Attributes getAttributes(Name name, String [] attrIds) 208 throws NamingException; 209 210 224 public Attributes getAttributes(String name, String [] attrIds) 225 throws NamingException; 226 227 245 public final static int ADD_ATTRIBUTE = 1; 246 247 264 public final static int REPLACE_ATTRIBUTE = 2; 265 266 285 public final static int REMOVE_ATTRIBUTE = 3; 286 287 308 public void modifyAttributes(Name name, int mod_op, Attributes attrs) 309 throws NamingException; 310 311 329 public void modifyAttributes(String name, int mod_op, Attributes attrs) 330 throws NamingException; 331 332 354 public void modifyAttributes(Name name, ModificationItem [] mods) 355 throws NamingException; 356 357 372 public void modifyAttributes(String name, ModificationItem [] mods) 373 throws NamingException; 374 375 399 public void bind(Name name, Object obj, Attributes attrs) 400 throws NamingException; 401 402 418 public void bind(String name, Object obj, Attributes attrs) 419 throws NamingException; 420 421 449 public void rebind(Name name, Object obj, Attributes attrs) 450 throws NamingException; 451 452 468 public void rebind(String name, Object obj, Attributes attrs) 469 throws NamingException; 470 471 494 public DirContext createSubcontext(Name name, Attributes attrs) 495 throws NamingException; 496 497 512 public DirContext createSubcontext(String name, Attributes attrs) 513 throws NamingException; 514 515 517 540 public DirContext getSchema(Name name) throws NamingException; 541 542 552 public DirContext getSchema(String name) throws NamingException; 553 554 587 public DirContext getSchemaClassDefinition(Name name) 588 throws NamingException; 589 590 604 public DirContext getSchemaClassDefinition(String name) 605 throws NamingException; 606 607 609 678 public NamingEnumeration<SearchResult > 679 search(Name name, 680 Attributes matchingAttributes, 681 String [] attributesToReturn) 682 throws NamingException; 683 684 698 public NamingEnumeration<SearchResult > 699 search(String name, 700 Attributes matchingAttributes, 701 String [] attributesToReturn) 702 throws NamingException; 703 704 723 public NamingEnumeration<SearchResult > 724 search(Name name, Attributes matchingAttributes) 725 throws NamingException; 726 727 739 public NamingEnumeration<SearchResult > 740 search(String name, Attributes matchingAttributes) 741 throws NamingException; 742 743 839 public NamingEnumeration<SearchResult > 840 search(Name name, 841 String filter, 842 SearchControls cons) 843 throws NamingException; 844 845 868 public NamingEnumeration<SearchResult > 869 search(String name, 870 String filter, 871 SearchControls cons) 872 throws NamingException; 873 874 974 public NamingEnumeration<SearchResult > 975 search(Name name, 976 String filterExpr, 977 Object [] filterArgs, 978 SearchControls cons) 979 throws NamingException; 980 981 1016 public NamingEnumeration<SearchResult > 1017 search(String name, 1018 String filterExpr, 1019 Object [] filterArgs, 1020 SearchControls cons) 1021 throws NamingException; 1022} 1023 | Popular Tags |