Package org.apache.sling.api.resource

Examples of org.apache.sling.api.resource.AttributableResourceProvider


        if ( ctx.getAuthenticationInfo() != null ) {
            names.addAll(ctx.getAuthenticationInfo().keySet());
        }
        final Iterator<AttributableResourceProvider> i = this.attributableProviders.getProviders(ctx, null);
        while ( i.hasNext() ) {
            final AttributableResourceProvider adap = i.next();
            final Collection<String> newNames = adap.getAttributeNames(resolver);
            if ( newNames != null ) {
                names.addAll(newNames);
            }
        }
        names.remove(FORBIDDEN_ATTRIBUTE);
View Full Code Here


                result = ctx.getAuthenticationInfo().get(name);
            }
            if ( result == null ) {
                final Iterator<AttributableResourceProvider> i = this.attributableProviders.getProviders(ctx, null);
                while ( result == null && i.hasNext() ) {
                    final AttributableResourceProvider adap = i.next();
                    result = adap.getAttribute(resolver, name);
                }
            }
        }
        return result;
    }
View Full Code Here

TOP

Related Classes of org.apache.sling.api.resource.AttributableResourceProvider

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.