@SuppressWarnings( "rawtypes" ) private void getPaths( String rootName, Map<String, Attributes> childs, List<String> paths ) throws Exception { NamingEnumeration ne = getInitialContext().list( rootName ); while ( ne.hasMore() ) { NameClassPair nameCP = (NameClassPair) ne.next(); childs.put( nameCP.getName() + "," + rootName, getInitialContext().getAttributes( nameCP.getName() + "," + rootName ) ); getPaths( nameCP.getName() + "," + rootName, childs, paths ); paths.add( nameCP.getName() + "," + rootName ); } }
Attributes attrs = getInitialContext().getAttributes( "", new String[] { "namingContexts" } ); Attribute attr = attrs.get( "namingContexts" );
getInitialContext().getAttributes( dn ); found = true; } catch ( NameNotFoundException n ) {
public Attributes getAttributes(String name, String[] attrIds) throws NamingException { return initCtx.getAttributes(name, attrIds); }
public Attributes getAttributes(String name) throws NamingException { return initCtx.getAttributes(name); }
public Attributes getAttributes(Name name) throws NamingException { return initCtx.getAttributes(name); }
public Attributes getAttributes(Name name, String[] attrIds) throws NamingException { return initCtx.getAttributes(name, attrIds); }
public Attributes getAttributes(String name, String[] attrIds) throws NamingException { return initCtx.getAttributes(name, attrIds); }
public Attributes getAttributes(Name name, String[] attrIds) throws NamingException { return initCtx.getAttributes(name, attrIds); }
public Attributes getAttributes(String name) throws NamingException { return initCtx.getAttributes(name); }
public Attributes getAttributes(Name name) throws NamingException { return initCtx.getAttributes(name); }
public void attributesChanged(Name name) { if (name.equals(dn)) { try { show(dn, iCtx.getAttributes(dn)); } catch (NamingException e) { workbench.getErrorReporter().reportError(e); } } }
public void execute() throws NamingException { Attributes attributes = iCtx.getAttributes(node .getDistinguishedName()); attributesComponent.show( node.getDistinguishedName(), attributes); } });
searchBaseDN, filter); Attributes attrs = ctx.getAttributes(userDN, null); int dotIndex = attributeId.indexOf("."); if (dotIndex > -1) { Attributes nestedAttrs = ctx.getAttributes(dnSlice, null); Attribute attr = nestedAttrs.get(attributeId .substring(dotIndex + 1));
String userDN = getUserDN(name); Attributes roleAttribs = ctx.getAttributes(userDN, new String[] { getUserRoleAttribute() }); Attribute roleAttrib = roleAttribs.get( getUserRoleAttribute() ); if (roleAttrib != null) Attributes attribs = ctx.getAttributes((String) roleAttrib.get(i), new String[] { getRoleNameAttribute() }); Attribute roleNameAttrib = attribs.get( getRoleNameAttribute() );
Attributes attribs = ctx.getAttributes(userDN, new String[] { getEnabledAttribute() }); Attribute enabledAttrib = attribs.get( getEnabledAttribute() ); if (enabledAttrib != null)
try Attributes result2 = ctx.getAttributes(roleDN, returnAttribute); Attribute roles2 = result2.get(getRoleNameAttribute()); if( roles2 != null )
Attributes attribs = ctx.getAttributes(securityPrincipal, new String[] { getEnabledAttribute() }); Attribute enabledAttrib = attribs.get( getEnabledAttribute() ); if (enabledAttrib != null)
Attributes result = ctx.getAttributes(dn, attrNames); if (result != null && result.size() > 0) try Attributes result2 = ctx.getAttributes(roleDN, returnAttribute); Attribute roles2 = result2.get(roleNameAttributeID); if (roles2 != null)
public void execute(DirectoryTreeObject target) throws BackendException { try { workbench.startWorkIndicator(); Attributes attributes = sourceObject.getConnection().getAttributes( sourceObject.getDistinguishedName()); Name sourceName = sourceObject.getDistinguishedName(); Name sourceRDN = sourceName.getSuffix(sourceName.size() - 1); Name newName = ((Name) target.getDistinguishedName().clone()) .addAll(sourceRDN); workbench.setStatusbarMessage(messages.format( "clipboard.object.cut", sourceObject.getDistinguishedName(), newName.toString())); target.getConnection().createSubcontext(newName, attributes); eventRegistry.fireStructureChanged(target.getTree() .getConnectionInformation().getGUID(), newName); workbench.stopWorkIndicator(); } catch (NamingException e) { workbench.stopWorkIndicator(); workbench.getErrorReporter().reportError( messages.getMessage("error.tree.copy"), e); } } }