
com.liferay.search.experiences.internal.verify.SXPServiceVerifyProcess Maven / Gradle / Ivy
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* The contents of this file are subject to the terms of the Liferay Enterprise
* Subscription License ("License"). You may not use this file except in
* compliance with the License. You can obtain a copy of the License by
* contacting Liferay, Inc. See the License for the specific language governing
* permissions and limitations under the License, including but not limited to
* distribution rights of the Software.
*
*
*
*/
package com.liferay.search.experiences.internal.verify;
import com.liferay.portal.kernel.service.CompanyLocalService;
import com.liferay.portal.verify.VerifyProcess;
import com.liferay.search.experiences.internal.model.listener.CompanyModelListener;
import com.liferay.search.experiences.service.SXPElementLocalService;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Reference;
/**
* @author Shuyang Zhou
*/
@Component(
enabled = false,
property = {
"initial.deployment=true",
"verify.process.name=com.liferay.search.experiences.service"
},
service = VerifyProcess.class
)
public class SXPServiceVerifyProcess extends VerifyProcess {
@Override
protected void doVerify() throws Exception {
_companyLocalService.forEachCompany(
company -> _companyModelListener.addSXPElements(
company, _sxpElementLocalService));
}
@Reference
private CompanyLocalService _companyLocalService;
@Reference
private CompanyModelListener _companyModelListener;
@Reference
private SXPElementLocalService _sxpElementLocalService;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy