/** * {@inheritDoc} */ @Override @SuppressWarnings("unchecked") public <T> T lookup(String dn, ParameterizedContextMapper<T> mapper) { return (T) ldapOperations.lookup(dn, mapper); }
/** * {@inheritDoc} */ @Override @SuppressWarnings("unchecked") public <T> T lookup(Name dn, ParameterizedContextMapper<T> mapper) { return (T) ldapOperations.lookup(dn, mapper); }
/** * {@inheritDoc} */ @Override @SuppressWarnings("unchecked") public <T> T lookup(String dn, ParameterizedContextMapper<T> mapper) { return (T) ldapOperations.lookup(dn, mapper); }
/** * {@inheritDoc} */ @Override @SuppressWarnings("unchecked") public <T> T lookup(Name dn, ParameterizedContextMapper<T> mapper) { return (T) ldapOperations.lookup(dn, mapper); }
/** * {@inheritDoc} */ @Override @SuppressWarnings("unchecked") public <T> T lookup(String dn, ParameterizedContextMapper<T> mapper) { return (T) ldapOperations.lookup(dn, mapper); }
/** * {@inheritDoc} */ @Override @SuppressWarnings("unchecked") public <T> T lookup(String dn, ParameterizedContextMapper<T> mapper) { return (T) ldapOperations.lookup(dn, mapper); }
/** * {@inheritDoc} */ @Override @SuppressWarnings("unchecked") public <T> T lookup(Name dn, ParameterizedContextMapper<T> mapper) { return (T) ldapOperations.lookup(dn, mapper); }
/** * {@inheritDoc} */ @Override @SuppressWarnings("unchecked") public <T> T lookup(Name dn, ParameterizedContextMapper<T> mapper) { return (T) ldapOperations.lookup(dn, mapper); }
@RolesAllowed("system") public Experimenter searchByDN(String dns) { DistinguishedName dn = new DistinguishedName(dns); return (Experimenter) ldap.lookup(dn, getPersonContextMapper()); }
private static DefaultIncrementalAttributesMapper loopForAllAttributeValues(LdapOperations ldapOperations, Name dn, String[] attributes) { DefaultIncrementalAttributesMapper mapper = new DefaultIncrementalAttributesMapper(attributes); while (mapper.hasMore()) { ldapOperations.lookup(dn, mapper.getAttributesForLookup(), mapper); } return mapper; }
private static DefaultIncrementalAttributesMapper loopForAllAttributeValues(LdapOperations ldapOperations, Name dn, String[] attributes) { DefaultIncrementalAttributesMapper mapper = new DefaultIncrementalAttributesMapper(attributes); while (mapper.hasMore()) { ldapOperations.lookup(dn, mapper.getAttributesForLookup(), mapper); } return mapper; }
private static DefaultIncrementalAttributesMapper loopForAllAttributeValues(LdapOperations ldapOperations, Name dn, String[] attributes) { DefaultIncrementalAttributesMapper mapper = new DefaultIncrementalAttributesMapper(attributes); while (mapper.hasMore()) { ldapOperations.lookup(dn, mapper.getAttributesForLookup(), mapper); } return mapper; }
private static DefaultIncrementalAttributesMapper loopForAllAttributeValues(LdapOperations ldapOperations, Name dn, String[] attributes) { DefaultIncrementalAttributesMapper mapper = new DefaultIncrementalAttributesMapper(attributes); while (mapper.hasMore()) { ldapOperations.lookup(dn, mapper.getAttributesForLookup(), mapper); } return mapper; }
ldapOperations.lookup(dn, attributesMapper.getAttributesForLookup(), attributesMapper);
ldapOperations.lookup(dn, attributesMapper.getAttributesForLookup(), attributesMapper);
ldapOperations.lookup(dn, attributesMapper.getAttributesForLookup(), attributesMapper);
ldapOperations.lookup(dn, attributesMapper.getAttributesForLookup(), attributesMapper);
when(attributesMapperMock.getAttributesForLookup()) .thenReturn(new String[]{"attribute1"}); when(ldapOperationsMock.lookup(expectedName, new String[]{"attribute1"}, attributesMapperMock)) .thenReturn(expectedAttributes); when(attributesMapperMock.getCollectedAttributes())