001/*
002 *  Copyright 2025 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.cms.search.systemprop;
017
018import java.util.Collection;
019
020import org.ametys.cms.data.ametysobject.ModelAwareDataAwareAmetysObject;
021import org.ametys.cms.search.model.IndexationAwareElementDefinition;
022import org.ametys.cms.search.model.SystemProperty;
023import org.ametys.cms.search.solr.schema.SchemaDefinition;
024
025/**
026 * Interface for {@link SystemProperty} that have specific behaviors for indexation
027 * @param <T> Type of the property value
028 * @param <X> type of ametys object supported by this system property
029 */
030public interface IndexationAwareSystemProperty<T, X extends ModelAwareDataAwareAmetysObject> extends IndexationAwareElementDefinition<T, X>, SystemProperty<T, X>
031{
032    /**
033     * Get the schema definitions brought by this element.
034     * @return The schema definitions used by this element.
035     */
036    public Collection<SchemaDefinition> getSchemaDefinitions();
037}