All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.object.service.ObjectFolderServiceUtil Maven / Gradle / Ivy

There is a newer version: 93.0.0
Show newest version
/**
 * SPDX-FileCopyrightText: (c) 2023 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.object.service;

import com.liferay.object.model.ObjectFolder;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.module.service.Snapshot;

import java.util.Map;

/**
 * Provides the remote service utility for ObjectFolder. This utility wraps
 * com.liferay.object.service.impl.ObjectFolderServiceImpl and is an
 * access point for service operations in application layer code running on a
 * remote server. Methods of this service are expected to have security checks
 * based on the propagated JAAS credentials because this service can be
 * accessed remotely.
 *
 * @author Marco Leo
 * @see ObjectFolderService
 * @generated
 */
public class ObjectFolderServiceUtil {

	/*
	 * NOTE FOR DEVELOPERS:
	 *
	 * Never modify this class directly. Add custom service methods to com.liferay.object.service.impl.ObjectFolderServiceImpl and rerun ServiceBuilder to regenerate this class.
	 */
	public static ObjectFolder addObjectFolder(
			String externalReferenceCode,
			Map labelMap, String name)
		throws PortalException {

		return getService().addObjectFolder(
			externalReferenceCode, labelMap, name);
	}

	public static ObjectFolder deleteObjectFolder(long objectFolderId)
		throws PortalException {

		return getService().deleteObjectFolder(objectFolderId);
	}

	public static ObjectFolder getObjectFolder(long objectFolderId)
		throws PortalException {

		return getService().getObjectFolder(objectFolderId);
	}

	public static ObjectFolder getObjectFolderByExternalReferenceCode(
			String externalReferenceCode, long companyId)
		throws PortalException {

		return getService().getObjectFolderByExternalReferenceCode(
			externalReferenceCode, companyId);
	}

	/**
	 * Returns the OSGi service identifier.
	 *
	 * @return the OSGi service identifier
	 */
	public static String getOSGiServiceIdentifier() {
		return getService().getOSGiServiceIdentifier();
	}

	public static ObjectFolder updateObjectFolder(
			String externalReferenceCode, long objectFolderId,
			Map labelMap)
		throws PortalException {

		return getService().updateObjectFolder(
			externalReferenceCode, objectFolderId, labelMap);
	}

	public static ObjectFolderService getService() {
		return _serviceSnapshot.get();
	}

	private static final Snapshot _serviceSnapshot =
		new Snapshot<>(
			ObjectFolderServiceUtil.class, ObjectFolderService.class);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy