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

com.liferay.segments.service.SegmentsExperienceLocalServiceUtil 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.segments.service;

import com.liferay.petra.sql.dsl.query.DSLQuery;
import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.model.PersistedModel;
import com.liferay.portal.kernel.module.service.Snapshot;
import com.liferay.portal.kernel.util.OrderByComparator;
import com.liferay.segments.model.SegmentsExperience;

import java.io.Serializable;

import java.util.List;
import java.util.Map;

/**
 * Provides the local service utility for SegmentsExperience. This utility wraps
 * com.liferay.segments.service.impl.SegmentsExperienceLocalServiceImpl 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 Eduardo Garcia
 * @see SegmentsExperienceLocalService
 * @generated
 */
public class SegmentsExperienceLocalServiceUtil {

	/*
	 * NOTE FOR DEVELOPERS:
	 *
	 * Never modify this class directly. Add custom service methods to com.liferay.segments.service.impl.SegmentsExperienceLocalServiceImpl and rerun ServiceBuilder to regenerate this class.
	 */
	public static SegmentsExperience addDefaultSegmentsExperience(
			String externalReferenceCode, long userId, long plid,
			com.liferay.portal.kernel.service.ServiceContext serviceContext)
		throws PortalException {

		return getService().addDefaultSegmentsExperience(
			externalReferenceCode, userId, plid, serviceContext);
	}

	/**
	 * Adds the segments experience to the database. Also notifies the appropriate model listeners.
	 *
	 * 

* Important: Inspect SegmentsExperienceLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there. *

* * @param segmentsExperience the segments experience * @return the segments experience that was added */ public static SegmentsExperience addSegmentsExperience( SegmentsExperience segmentsExperience) { return getService().addSegmentsExperience(segmentsExperience); } public static SegmentsExperience addSegmentsExperience( String externalReferenceCode, long userId, long groupId, long segmentsEntryId, long plid, Map nameMap, boolean active, com.liferay.portal.kernel.util.UnicodeProperties typeSettingsUnicodeProperties, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws PortalException { return getService().addSegmentsExperience( externalReferenceCode, userId, groupId, segmentsEntryId, plid, nameMap, active, typeSettingsUnicodeProperties, serviceContext); } public static SegmentsExperience addSegmentsExperience( String externalReferenceCode, long userId, long groupId, long segmentsEntryId, long plid, Map nameMap, int priority, boolean active, com.liferay.portal.kernel.util.UnicodeProperties typeSettingsUnicodeProperties, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws PortalException { return getService().addSegmentsExperience( externalReferenceCode, userId, groupId, segmentsEntryId, plid, nameMap, priority, active, typeSettingsUnicodeProperties, serviceContext); } public static SegmentsExperience addSegmentsExperience( String externalReferenceCode, long userId, long groupId, long segmentsEntryId, String segmentsExperienceKey, long plid, Map nameMap, int priority, boolean active, com.liferay.portal.kernel.util.UnicodeProperties typeSettingsUnicodeProperties, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws PortalException { return getService().addSegmentsExperience( externalReferenceCode, userId, groupId, segmentsEntryId, segmentsExperienceKey, plid, nameMap, priority, active, typeSettingsUnicodeProperties, serviceContext); } public static SegmentsExperience appendSegmentsExperience( long userId, long groupId, long segmentsEntryId, long plid, Map nameMap, boolean active, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws PortalException { return getService().appendSegmentsExperience( userId, groupId, segmentsEntryId, plid, nameMap, active, serviceContext); } public static SegmentsExperience appendSegmentsExperience( long userId, long groupId, long segmentsEntryId, long plid, Map nameMap, boolean active, com.liferay.portal.kernel.util.UnicodeProperties typeSettingsUnicodeProperties, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws PortalException { return getService().appendSegmentsExperience( userId, groupId, segmentsEntryId, plid, nameMap, active, typeSettingsUnicodeProperties, serviceContext); } /** * @throws PortalException */ public static PersistedModel createPersistedModel( Serializable primaryKeyObj) throws PortalException { return getService().createPersistedModel(primaryKeyObj); } /** * Creates a new segments experience with the primary key. Does not add the segments experience to the database. * * @param segmentsExperienceId the primary key for the new segments experience * @return the new segments experience */ public static SegmentsExperience createSegmentsExperience( long segmentsExperienceId) { return getService().createSegmentsExperience(segmentsExperienceId); } /** * @throws PortalException */ public static PersistedModel deletePersistedModel( PersistedModel persistedModel) throws PortalException { return getService().deletePersistedModel(persistedModel); } public static void deleteSegmentsEntrySegmentsExperiences( long segmentsEntryId) throws PortalException { getService().deleteSegmentsEntrySegmentsExperiences(segmentsEntryId); } /** * Deletes the segments experience with the primary key from the database. Also notifies the appropriate model listeners. * *

* Important: Inspect SegmentsExperienceLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there. *

* * @param segmentsExperienceId the primary key of the segments experience * @return the segments experience that was removed * @throws PortalException if a segments experience with the primary key could not be found */ public static SegmentsExperience deleteSegmentsExperience( long segmentsExperienceId) throws PortalException { return getService().deleteSegmentsExperience(segmentsExperienceId); } /** * Deletes the segments experience from the database. Also notifies the appropriate model listeners. * *

* Important: Inspect SegmentsExperienceLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there. *

* * @param segmentsExperience the segments experience * @return the segments experience that was removed * @throws PortalException */ public static SegmentsExperience deleteSegmentsExperience( SegmentsExperience segmentsExperience) throws PortalException { return getService().deleteSegmentsExperience(segmentsExperience); } public static SegmentsExperience deleteSegmentsExperience( String externalReferenceCode, long groupId) throws PortalException { return getService().deleteSegmentsExperience( externalReferenceCode, groupId); } public static void deleteSegmentsExperiences(long groupId, long plid) throws PortalException { getService().deleteSegmentsExperiences(groupId, plid); } public static T dslQuery(DSLQuery dslQuery) { return getService().dslQuery(dslQuery); } public static int dslQueryCount(DSLQuery dslQuery) { return getService().dslQueryCount(dslQuery); } public static DynamicQuery dynamicQuery() { return getService().dynamicQuery(); } /** * Performs a dynamic query on the database and returns the matching rows. * * @param dynamicQuery the dynamic query * @return the matching rows */ public static List dynamicQuery(DynamicQuery dynamicQuery) { return getService().dynamicQuery(dynamicQuery); } /** * Performs a dynamic query on the database and returns a range of the matching rows. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.segments.model.impl.SegmentsExperienceModelImpl. *

* * @param dynamicQuery the dynamic query * @param start the lower bound of the range of model instances * @param end the upper bound of the range of model instances (not inclusive) * @return the range of matching rows */ public static List dynamicQuery( DynamicQuery dynamicQuery, int start, int end) { return getService().dynamicQuery(dynamicQuery, start, end); } /** * Performs a dynamic query on the database and returns an ordered range of the matching rows. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.segments.model.impl.SegmentsExperienceModelImpl. *

* * @param dynamicQuery the dynamic query * @param start the lower bound of the range of model instances * @param end the upper bound of the range of model instances (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching rows */ public static List dynamicQuery( DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) { return getService().dynamicQuery( dynamicQuery, start, end, orderByComparator); } /** * Returns the number of rows matching the dynamic query. * * @param dynamicQuery the dynamic query * @return the number of rows matching the dynamic query */ public static long dynamicQueryCount(DynamicQuery dynamicQuery) { return getService().dynamicQueryCount(dynamicQuery); } /** * Returns the number of rows matching the dynamic query. * * @param dynamicQuery the dynamic query * @param projection the projection to apply to the query * @return the number of rows matching the dynamic query */ public static long dynamicQueryCount( DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection) { return getService().dynamicQueryCount(dynamicQuery, projection); } public static long fetchDefaultSegmentsExperienceId(long plid) { return getService().fetchDefaultSegmentsExperienceId(plid); } public static SegmentsExperience fetchSegmentsExperience( long segmentsExperienceId) { return getService().fetchSegmentsExperience(segmentsExperienceId); } public static SegmentsExperience fetchSegmentsExperience( long groupId, long plid, int priority) { return getService().fetchSegmentsExperience(groupId, plid, priority); } public static SegmentsExperience fetchSegmentsExperience( long groupId, String segmentsExperienceKey, long plid) { return getService().fetchSegmentsExperience( groupId, segmentsExperienceKey, plid); } public static SegmentsExperience fetchSegmentsExperienceByExternalReferenceCode( String externalReferenceCode, long groupId) { return getService().fetchSegmentsExperienceByExternalReferenceCode( externalReferenceCode, groupId); } /** * Returns the segments experience matching the UUID and group. * * @param uuid the segments experience's UUID * @param groupId the primary key of the group * @return the matching segments experience, or null if a matching segments experience could not be found */ public static SegmentsExperience fetchSegmentsExperienceByUuidAndGroupId( String uuid, long groupId) { return getService().fetchSegmentsExperienceByUuidAndGroupId( uuid, groupId); } public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() { return getService().getActionableDynamicQuery(); } public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery( com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) { return getService().getExportActionableDynamicQuery(portletDataContext); } public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() { return getService().getIndexableActionableDynamicQuery(); } /** * Returns the OSGi service identifier. * * @return the OSGi service identifier */ public static String getOSGiServiceIdentifier() { return getService().getOSGiServiceIdentifier(); } /** * @throws PortalException */ public static PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException { return getService().getPersistedModel(primaryKeyObj); } /** * Returns the segments experience with the primary key. * * @param segmentsExperienceId the primary key of the segments experience * @return the segments experience * @throws PortalException if a segments experience with the primary key could not be found */ public static SegmentsExperience getSegmentsExperience( long segmentsExperienceId) throws PortalException { return getService().getSegmentsExperience(segmentsExperienceId); } public static SegmentsExperience getSegmentsExperience( long groupId, String segmentsExperienceKey, long plid) throws PortalException { return getService().getSegmentsExperience( groupId, segmentsExperienceKey, plid); } public static SegmentsExperience getSegmentsExperienceByExternalReferenceCode( String externalReferenceCode, long groupId) throws PortalException { return getService().getSegmentsExperienceByExternalReferenceCode( externalReferenceCode, groupId); } /** * Returns the segments experience matching the UUID and group. * * @param uuid the segments experience's UUID * @param groupId the primary key of the group * @return the matching segments experience * @throws PortalException if a matching segments experience could not be found */ public static SegmentsExperience getSegmentsExperienceByUuidAndGroupId( String uuid, long groupId) throws PortalException { return getService().getSegmentsExperienceByUuidAndGroupId( uuid, groupId); } /** * Returns a range of all the segments experiences. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.segments.model.impl.SegmentsExperienceModelImpl. *

* * @param start the lower bound of the range of segments experiences * @param end the upper bound of the range of segments experiences (not inclusive) * @return the range of segments experiences */ public static List getSegmentsExperiences( int start, int end) { return getService().getSegmentsExperiences(start, end); } public static List getSegmentsExperiences( long groupId, long plid) { return getService().getSegmentsExperiences(groupId, plid); } public static List getSegmentsExperiences( long groupId, long plid, boolean active) throws PortalException { return getService().getSegmentsExperiences(groupId, plid, active); } public static List getSegmentsExperiences( long groupId, long plid, boolean active, int start, int end, OrderByComparator orderByComparator) { return getService().getSegmentsExperiences( groupId, plid, active, start, end, orderByComparator); } public static List getSegmentsExperiences( long groupId, long[] segmentsEntryIds, long plid, boolean active) { return getService().getSegmentsExperiences( groupId, segmentsEntryIds, plid, active); } public static List getSegmentsExperiences( long groupId, long[] segmentsEntryIds, long plid, boolean active, int start, int end, OrderByComparator orderByComparator) { return getService().getSegmentsExperiences( groupId, segmentsEntryIds, plid, active, start, end, orderByComparator); } /** * Returns all the segments experiences matching the UUID and company. * * @param uuid the UUID of the segments experiences * @param companyId the primary key of the company * @return the matching segments experiences, or an empty list if no matches were found */ public static List getSegmentsExperiencesByUuidAndCompanyId(String uuid, long companyId) { return getService().getSegmentsExperiencesByUuidAndCompanyId( uuid, companyId); } /** * Returns a range of segments experiences matching the UUID and company. * * @param uuid the UUID of the segments experiences * @param companyId the primary key of the company * @param start the lower bound of the range of segments experiences * @param end the upper bound of the range of segments experiences (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the range of matching segments experiences, or an empty list if no matches were found */ public static List getSegmentsExperiencesByUuidAndCompanyId( String uuid, long companyId, int start, int end, OrderByComparator orderByComparator) { return getService().getSegmentsExperiencesByUuidAndCompanyId( uuid, companyId, start, end, orderByComparator); } /** * Returns the number of segments experiences. * * @return the number of segments experiences */ public static int getSegmentsExperiencesCount() { return getService().getSegmentsExperiencesCount(); } public static int getSegmentsExperiencesCount(long groupId, long plid) { return getService().getSegmentsExperiencesCount(groupId, plid); } public static int getSegmentsExperiencesCount( long groupId, long plid, boolean active) { return getService().getSegmentsExperiencesCount(groupId, plid, active); } public static SegmentsExperience updateSegmentsExperience( long segmentsExperienceId, long segmentsEntryId, Map nameMap, boolean active) throws PortalException { return getService().updateSegmentsExperience( segmentsExperienceId, segmentsEntryId, nameMap, active); } public static SegmentsExperience updateSegmentsExperience( long segmentsExperienceId, long segmentsEntryId, Map nameMap, boolean active, com.liferay.portal.kernel.util.UnicodeProperties typeSettingsUnicodeProperties) throws PortalException { return getService().updateSegmentsExperience( segmentsExperienceId, segmentsEntryId, nameMap, active, typeSettingsUnicodeProperties); } /** * Updates the segments experience in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. * *

* Important: Inspect SegmentsExperienceLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there. *

* * @param segmentsExperience the segments experience * @return the segments experience that was updated */ public static SegmentsExperience updateSegmentsExperience( SegmentsExperience segmentsExperience) { return getService().updateSegmentsExperience(segmentsExperience); } public static SegmentsExperience updateSegmentsExperienceActive( long segmentsExperienceId, boolean active) throws PortalException { return getService().updateSegmentsExperienceActive( segmentsExperienceId, active); } public static SegmentsExperience updateSegmentsExperiencePriority( long segmentsExperienceId, int newPriority) throws PortalException { return getService().updateSegmentsExperiencePriority( segmentsExperienceId, newPriority); } public static SegmentsExperienceLocalService getService() { return _serviceSnapshot.get(); } private static final Snapshot _serviceSnapshot = new Snapshot<>( SegmentsExperienceLocalServiceUtil.class, SegmentsExperienceLocalService.class); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy