com.liferay.portal.instances.service.PortalInstancesLocalServiceUtil Maven / Gradle / Ivy
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.portal.instances.service;
import com.liferay.portal.kernel.module.service.Snapshot;
/**
* Provides the local service utility for PortalInstances. This utility wraps
* com.liferay.portal.instances.service.impl.PortalInstancesLocalServiceImpl
and
* is an access point for service operations in application layer code running
* on the local server. Methods of this service will not have security checks
* based on the propagated JAAS credentials because this service can only be
* accessed from within the same VM.
*
* @author Michael C. Han
* @see PortalInstancesLocalService
* @generated
*/
public class PortalInstancesLocalServiceUtil {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify this class directly. Add custom service methods to com.liferay.portal.instances.service.impl.PortalInstancesLocalServiceImpl
and rerun ServiceBuilder to regenerate this class.
*/
public static long[] getCompanyIds() {
return getService().getCompanyIds();
}
public static long getDefaultCompanyId() {
return getService().getDefaultCompanyId();
}
/**
* Returns the OSGi service identifier.
*
* @return the OSGi service identifier
*/
public static String getOSGiServiceIdentifier() {
return getService().getOSGiServiceIdentifier();
}
public static void synchronizePortalInstances() {
getService().synchronizePortalInstances();
}
public static PortalInstancesLocalService getService() {
return _serviceSnapshot.get();
}
private static final Snapshot
_serviceSnapshot = new Snapshot<>(
PortalInstancesLocalServiceUtil.class,
PortalInstancesLocalService.class);
}