public T executeWithContext(DirContext ctx) throws javax.naming.NamingException { Attributes attributes = ctx.getAttributes(dn); return mapper.mapFromAttributes(attributes); } });
public T executeWithContext(DirContext ctx) throws javax.naming.NamingException { Attributes filteredAttributes = ctx.getAttributes(dn, attributes); return mapper.mapFromAttributes(filteredAttributes); } });
public T executeWithContext(DirContext ctx) throws javax.naming.NamingException { Attributes filteredAttributes = ctx.getAttributes(dn, attributes); return mapper.mapFromAttributes(filteredAttributes); } });
public T executeWithContext(DirContext ctx) throws javax.naming.NamingException { Attributes attributes = ctx.getAttributes(dn); return mapper.mapFromAttributes(attributes); } });
public T executeWithContext(DirContext ctx) throws javax.naming.NamingException { Attributes filteredAttributes = ctx.getAttributes(dn, attributes); return mapper.mapFromAttributes(filteredAttributes); } });
public T executeWithContext(DirContext ctx) throws javax.naming.NamingException { Attributes attributes = ctx.getAttributes(dn); return mapper.mapFromAttributes(attributes); } });
public T executeWithContext(DirContext ctx) throws javax.naming.NamingException { Attributes attributes = ctx.getAttributes(dn); return mapper.mapFromAttributes(attributes); } });
public T executeWithContext(DirContext ctx) throws javax.naming.NamingException { Attributes filteredAttributes = ctx.getAttributes(dn, attributes); return mapper.mapFromAttributes(filteredAttributes); } });
public T executeWithContext(DirContext ctx) throws javax.naming.NamingException { Attributes filteredAttributes = ctx.getAttributes(dn, attributes); return mapper.mapFromAttributes(filteredAttributes); } });
public T executeWithContext(DirContext ctx) throws javax.naming.NamingException { Attributes attributes = ctx.getAttributes(dn); return mapper.mapFromAttributes(attributes); } });
public T executeWithContext(DirContext ctx) throws javax.naming.NamingException { Attributes attributes = ctx.getAttributes(dn); return mapper.mapFromAttributes(attributes); } });
public T executeWithContext(DirContext ctx) throws javax.naming.NamingException { Attributes filteredAttributes = ctx.getAttributes(dn, attributes); return mapper.mapFromAttributes(filteredAttributes); } });
public T executeWithContext(DirContext ctx) throws javax.naming.NamingException { Attributes filteredAttributes = ctx.getAttributes(dn, attributes); return mapper.mapFromAttributes(filteredAttributes); } });
public T executeWithContext(DirContext ctx) throws javax.naming.NamingException { Attributes attributes = ctx.getAttributes(dn); return mapper.mapFromAttributes(attributes); } });
public T executeWithContext(DirContext ctx) throws javax.naming.NamingException { Attributes attributes = ctx.getAttributes(dn); return mapper.mapFromAttributes(attributes); } });
public T executeWithContext(DirContext ctx) throws javax.naming.NamingException { Attributes filteredAttributes = ctx.getAttributes(dn, attributes); return mapper.mapFromAttributes(filteredAttributes); } });
@Override @SuppressWarnings("unchecked") public List search(Name base, String filter, int searchScope, String[] attrs, AttributesMapper mapper) { List result = new ArrayList(); this.searchFilter = filter; for (String attributeKey : attrs) { List<BasicAttributes> list = attributesMap.get(attributeKey); try { for (BasicAttributes basicAttributes : list) { result.add(mapper.mapFromAttributes(basicAttributes)); } } catch (javax.naming.NamingException e) { throw new RuntimeException("Exception during search", e); } } return result; }
/** * Cast the NameClassPair to a SearchResult and pass its attributes to the * {@link AttributesMapper}. * * @param nameClassPair a <code> SearchResult</code> instance. * @return the Object returned from the mapper. */ public T getObjectFromNameClassPair(NameClassPair nameClassPair) { if (!(nameClassPair instanceof SearchResult)) { throw new IllegalArgumentException("Parameter must be an instance of SearchResult"); } SearchResult searchResult = (SearchResult) nameClassPair; Attributes attributes = searchResult.getAttributes(); try { return mapper.mapFromAttributes(attributes); } catch (javax.naming.NamingException e) { throw LdapUtils.convertLdapException(e); } } }
/** * Cast the NameClassPair to a SearchResult and pass its attributes to the * {@link AttributesMapper}. * * @param nameClassPair a <code> SearchResult</code> instance. * @return the Object returned from the mapper. */ public T getObjectFromNameClassPair(NameClassPair nameClassPair) { if (!(nameClassPair instanceof SearchResult)) { throw new IllegalArgumentException("Parameter must be an instance of SearchResult"); } SearchResult searchResult = (SearchResult) nameClassPair; Attributes attributes = searchResult.getAttributes(); try { return mapper.mapFromAttributes(attributes); } catch (javax.naming.NamingException e) { throw LdapUtils.convertLdapException(e); } } }
/** * Cast the NameClassPair to a SearchResult and pass its attributes to the * {@link AttributesMapper}. * * @param nameClassPair a <code> SearchResult</code> instance. * @return the Object returned from the mapper. */ public T getObjectFromNameClassPair(NameClassPair nameClassPair) { if (!(nameClassPair instanceof SearchResult)) { throw new IllegalArgumentException("Parameter must be an instance of SearchResult"); } SearchResult searchResult = (SearchResult) nameClassPair; Attributes attributes = searchResult.getAttributes(); try { return mapper.mapFromAttributes(attributes); } catch (javax.naming.NamingException e) { throw LdapUtils.convertLdapException(e); } } }