1 22 package org.jboss.test.security.ejb.project.support; 23 24 import java.util.Hashtable ; 25 import javax.naming.CompositeName ; 26 import javax.naming.Context ; 27 import javax.naming.Name ; 28 import javax.naming.NamingEnumeration ; 29 import javax.naming.NamingException ; 30 import javax.naming.NameParser ; 31 import javax.naming.directory.Attribute ; 32 import javax.naming.directory.Attributes ; 33 import javax.naming.directory.BasicAttributes ; 34 import javax.naming.directory.DirContext ; 35 import javax.naming.directory.ModificationItem ; 36 import javax.naming.directory.SearchControls ; 37 38 45 public abstract class DirContextStringImpl implements DirContext 46 { 47 private NameParser nameParser; 48 49 50 public DirContextStringImpl(NameParser nameParser) 51 { 52 this.nameParser = nameParser; 53 } 54 public DirContextStringImpl() 55 { 56 this(DefaultName.getNameParser()); 57 } 58 59 public void bind(java.lang.String name, Object obj) throws NamingException 61 { 62 bind(nameParser.parse(name), obj); 63 } 64 65 public String composeName(String name,String name1) throws NamingException 66 { 67 return null; 68 } 69 70 public Context createSubcontext(java.lang.String name) throws NamingException 71 { 72 return createSubcontext(nameParser.parse(name)); 73 } 74 75 public void destroySubcontext(java.lang.String name) throws NamingException 76 { 77 destroySubcontext(nameParser.parse(name)); 78 } 79 80 public NameParser getNameParser(java.lang.String name) throws NamingException 81 { 82 return getNameParser(nameParser.parse(name)); 83 } 84 85 public NamingEnumeration list(java.lang.String name) throws NamingException 86 { 87 return list(nameParser.parse(name)); 88 } 89 90 public NamingEnumeration listBindings(java.lang.String name) throws NamingException 91 { 92 return listBindings(nameParser.parse(name)); 93 } 94 95 public java.lang.Object lookup(String name) throws NamingException 96 { 97 return lookup(nameParser.parse(name)); 98 } 99 public java.lang.Object lookupLink(String name) throws NamingException 100 { 101 return lookupLink(nameParser.parse(name)); 102 } 103 104 public void rebind(String name,Object obj) throws NamingException 105 { 106 rebind(nameParser.parse(name), obj); 107 } 108 109 public void rename(String name,String name1) throws NamingException 110 { 111 rename(nameParser.parse(name), nameParser.parse(name1)); 112 } 113 114 public void unbind(String name) throws NamingException 115 { 116 unbind(nameParser.parse(name)); 117 } 118 119 public void bind(String name,Object obj, Attributes attributes) throws NamingException 120 { 121 bind(nameParser.parse(name), obj, attributes); 122 } 123 124 public DirContext createSubcontext(String name, Attributes attributes) throws NamingException 125 { 126 return createSubcontext(nameParser.parse(name), attributes); 127 } 128 129 public Attributes getAttributes(String name) throws NamingException 130 { 131 return getAttributes(nameParser.parse(name)); 132 } 133 134 public Attributes getAttributes(String name,String [] attrNames) throws NamingException 135 { 136 return getAttributes(nameParser.parse(name), attrNames); 137 } 138 139 public DirContext getSchema(String name) throws NamingException 140 { 141 return getSchema(nameParser.parse(name)); 142 } 143 144 public DirContext getSchemaClassDefinition(String name) throws NamingException 145 { 146 return getSchemaClassDefinition(nameParser.parse(name)); 147 } 148 149 public void modifyAttributes(String name, ModificationItem [] modificationItem) throws NamingException 150 { 151 modifyAttributes(nameParser.parse(name), modificationItem); 152 } 153 154 public void modifyAttributes(String name,int index, Attributes attributes) throws NamingException 155 { 156 modifyAttributes(nameParser.parse(name), index, attributes); 157 } 158 159 public void rebind(String name,Object obj, Attributes attributes) throws NamingException 160 { 161 rebind(nameParser.parse(name), obj, attributes); 162 } 163 164 public NamingEnumeration search(String name, Attributes attributes) throws NamingException 165 { 166 return search(nameParser.parse(name), attributes); 167 } 168 169 public NamingEnumeration search(String name,String name1, SearchControls searchControls) throws NamingException 170 { 171 return search(nameParser.parse(name), name1, searchControls); 172 } 173 174 public NamingEnumeration search(String name, Attributes attributes, String [] str2) throws NamingException 175 { 176 return search(nameParser.parse(name), attributes, str2); 177 } 178 179 public NamingEnumeration search(String name,String name1, Object [] obj, SearchControls searchControls) throws NamingException { 180 return null; 181 } 182 183 185 } 186 | Popular Tags |