All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.cognifide.slice.api.provider.ChildrenProvider Maven / Gradle / Ivy

/*-
 * #%L
 * Slice - Core API
 * %%
 * Copyright (C) 2012 Cognifide Limited
 * %%
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */

package com.cognifide.slice.api.provider;

import java.util.List;

import org.apache.sling.api.resource.Resource;

import aQute.bnd.annotation.ProviderType;

/**
 * @deprecated See {@link com.cognifide.slice.api.provider.ModelProvider} and one of its methods:
 * 
    *
  • {@link com.cognifide.slice.api.provider.ModelProvider#getChildModels(Class, String)}
  • *
  • {@link com.cognifide.slice.api.provider.ModelProvider#getChildModels(Class, Resource)}
  • *
  • {@link com.cognifide.slice.api.provider.ModelProvider#getList(Class, java.util.Iterator)}
  • *
*/ @Deprecated @ProviderType public interface ChildrenProvider { /** * Returns paths of child resources of a resource under specified path. If a resource under specified path * doesn't exist, empty list is returned. The method is not recursive - it reads only direct children. * * * @param path resource path * * @return list of paths of child resources or empty list if resource doesn't exist * * @deprecated The method introduces a bad design in the code. If you are using this try replacing it by * one of {@link com.cognifide.slice.api.provider.ModelProvider}'s methods. However, if you still need * children of a resource, then use simply {@link org.apache.sling.api.resource.Resource#listChildren()} */ @Deprecated List getChildren(final String path); /** * Returns child resources of a resource under specified path. If a resource under specified path doesn't * exist, empty list is returned. The method is not recursive - it reads only direct children. * * @param path resource path * @return list of child resources or empty list if resource doesn't exist * * @deprecated The method introduces a bad design in the code. If you are using this try replacing it by * one of {@link com.cognifide.slice.api.provider.ModelProvider}'s methods. However, if you still need * children of a resource, then use simply {@link org.apache.sling.api.resource.Resource#listChildren()} */ @Deprecated List getChildResources(final String path); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy