001/*
002 *  Copyright 2017 Anyware Services
003 *
004 *  Licensed under the Apache License, Version 2.0 (the "License");
005 *  you may not use this file except in compliance with the License.
006 *  You may obtain a copy of the License at
007 *
008 *      http://www.apache.org/licenses/LICENSE-2.0
009 *
010 *  Unless required by applicable law or agreed to in writing, software
011 *  distributed under the License is distributed on an "AS IS" BASIS,
012 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 *  See the License for the specific language governing permissions and
014 *  limitations under the License.
015 */
016package org.ametys.plugins.odfsync.apogee.scc;
017
018import java.util.List;
019import java.util.Map;
020
021import org.slf4j.Logger;
022
023import org.ametys.cms.repository.ModifiableDefaultContent;
024
025/**
026 * Interface for Apogée specific methods.
027 */
028public interface ApogeeSynchronizableContentsCollection
029{
030    /**
031     * Method used to import the structure of an ODF content or its dependencies, import or synchronize each child recursively.
032     * @param searchParams Search parameters
033     * @param logger The logger
034     * @return The {@link List} of {@link ModifiableDefaultContent} of children (imported or synchronized)
035     */
036    public List<ModifiableDefaultContent> importOrSynchronizeContents(Map<String, Object> searchParams, Logger logger);
037}