Package org.springframework.ldap.core

Examples of org.springframework.ldap.core.ContextMapper


        String formattedFilter = MessageFormat.format(filter, encodedParams);
        logger.debug("Using filter: " + formattedFilter);

        final HashSet<Map<String, List<String>>> set = new HashSet<Map<String, List<String>>>();

        ContextMapper roleMapper = new ContextMapper() {
            public Object mapFromContext(Object ctx) {
                DirContextAdapter adapter = (DirContextAdapter) ctx;
                Map<String, List<String>> record = new HashMap<String, List<String>>();
                if (attributeNames == null || attributeNames.length == 0) {
                    try {
View Full Code Here


    }
   
    public static Name getDnOfEntry(LdapTemplate ldapTemplate, String baseDN,
        String objectClass, String filterAttributeName, String filterAttributeValue) {

        ContextMapper mapper =
            new AbstractContextMapper() {
                public Object doMapFromContext(DirContextOperations ctx) {
                    return ctx.getDn();
                }
            };
View Full Code Here

        String formattedFilter = MessageFormat.format(filter, encodedParams);
        logger.debug("Using filter: " + formattedFilter);

        final HashSet<String> set = new HashSet<String>();

        ContextMapper roleMapper = new ContextMapper() {
            public Object mapFromContext(Object ctx) {
                DirContextAdapter adapter = (DirContextAdapter) ctx;
                String[] values = adapter.getStringAttributes(attributeName);
                if (values == null || values.length == 0) {
                    logger.debug("No attribute value found for '" + attributeName + "'");
View Full Code Here

TOP

Related Classes of org.springframework.ldap.core.ContextMapper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.