Package org.apache.sling.api.resource

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


        final String fullPath = resource.getPath();
        final ProviderHandler handler = this.getModifyingProviderHandler(ctx, resourceResolver, fullPath);
        if ( handler == null || !handler.canDelete(ctx, resource) ) {
            throw new UnsupportedOperationException("delete at '" + fullPath + "'");
        }
        final ModifyingResourceProvider mrp = (ModifyingResourceProvider) handler.getResourceProvider(ctx);
        mrp.delete(resourceResolver, fullPath);
    }
View Full Code Here


            final Map<String, Object> properties) throws PersistenceException {
        final ProviderHandler handler = this.getModifyingProviderHandler(ctx, resourceResolver, fullPath);
        if ( handler == null || !handler.canCreate(ctx, resourceResolver, fullPath) ) {
            throw new UnsupportedOperationException("create '" + ResourceUtil.getName(fullPath) + "' at " + ResourceUtil.getParent(fullPath));
        }
        final ModifyingResourceProvider mrp = (ModifyingResourceProvider) handler.getResourceProvider(ctx);
        return mrp.create(resourceResolver, fullPath, properties);
    }
View Full Code Here

TOP

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

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.