
com.liferay.layout.internal.search.LayoutSearcher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.layout.impl
Show all versions of com.liferay.layout.impl
Liferay Layout Implementation
/**
* 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.layout.internal.search;
import com.liferay.portal.kernel.model.Layout;
import com.liferay.portal.kernel.search.BaseSearcher;
import com.liferay.portal.kernel.search.Field;
import org.osgi.service.component.annotations.Component;
/**
* @author Vagner B.C
*/
@Component(
property = "model.class.name=com.liferay.portal.kernel.model.Layout",
service = BaseSearcher.class
)
public class LayoutSearcher extends BaseSearcher {
public static final String CLASS_NAME = Layout.class.getName();
public LayoutSearcher() {
setDefaultSelectedFieldNames(
Field.COMPANY_ID, Field.ENTRY_CLASS_NAME, Field.ENTRY_CLASS_PK,
Field.DEFAULT_LANGUAGE_ID, Field.GROUP_ID, Field.MODIFIED_DATE,
Field.SCOPE_GROUP_ID, Field.UID);
setDefaultSelectedLocalizedFieldNames(Field.CONTENT, Field.TITLE);
setFilterSearch(true);
setPermissionAware(true);
setSelectAllLocales(true);
}
@Override
public String getClassName() {
return CLASS_NAME;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy