
com.liferay.search.experiences.internal.validator.SXPElementValidatorImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.search.experiences.service
Show all versions of com.liferay.search.experiences.service
Liferay Search Experiences Service
The newest version!
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
package com.liferay.search.experiences.internal.validator;
import com.liferay.portal.kernel.util.MapUtil;
import com.liferay.search.experiences.exception.SXPElementTitleException;
import com.liferay.search.experiences.validator.SXPElementValidator;
import java.util.Locale;
import java.util.Map;
import org.osgi.service.component.annotations.Component;
/**
* @author Petteri Karttunen
*/
@Component(enabled = false, service = SXPElementValidator.class)
public class SXPElementValidatorImpl implements SXPElementValidator {
@Override
public void validate(Map titleMap, int type)
throws SXPElementTitleException {
if (MapUtil.isEmpty(titleMap)) {
throw new SXPElementTitleException("Title is empty");
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy