public class SegmentsExperienceLocalServiceUtil
extends java.lang.Object
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.SegmentsExperienceLocalService
Constructor and Description |
---|
SegmentsExperienceLocalServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static SegmentsExperience |
addSegmentsExperience(long segmentsEntryId,
long classNameId,
long classPK,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
boolean active,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
NOTE FOR DEVELOPERS:
Never modify or reference this interface directly.
|
static SegmentsExperience |
addSegmentsExperience(long segmentsEntryId,
long classNameId,
long classPK,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
int priority,
boolean active,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static SegmentsExperience |
addSegmentsExperience(SegmentsExperience segmentsExperience)
Adds the segments experience to the database.
|
static SegmentsExperience |
createSegmentsExperience(long segmentsExperienceId)
Creates a new segments experience with the primary key.
|
static com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
static void |
deleteSegmentsEntrySegmentsExperiences(long segmentsEntryId) |
static SegmentsExperience |
deleteSegmentsExperience(long segmentsExperienceId)
Deletes the segments experience with the primary key from the database.
|
static SegmentsExperience |
deleteSegmentsExperience(SegmentsExperience segmentsExperience)
Deletes the segments experience from the database.
|
static void |
deleteSegmentsExperiences(long groupId,
long classNameId,
long classPK) |
static com.liferay.portal.kernel.dao.orm.DynamicQuery |
dynamicQuery() |
static <T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
static <T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
static <T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
static long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
static long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
Returns the number of rows matching the dynamic query.
|
static SegmentsExperience |
fetchSegmentsExperience(long segmentsExperienceId) |
static SegmentsExperience |
fetchSegmentsExperience(long groupId,
java.lang.String segmentsExperienceKey) |
static SegmentsExperience |
fetchSegmentsExperienceByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the segments experience matching the UUID and group.
|
static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery |
getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) |
static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
static java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
static SegmentsExperience |
getSegmentsExperience(long segmentsExperienceId)
Returns the segments experience with the primary key.
|
static SegmentsExperience |
getSegmentsExperience(long groupId,
java.lang.String segmentsExperienceKey) |
static SegmentsExperience |
getSegmentsExperienceByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the segments experience matching the UUID and group.
|
static java.util.List<SegmentsExperience> |
getSegmentsExperiences(int start,
int end)
Returns a range of all the segments experiences.
|
static java.util.List<SegmentsExperience> |
getSegmentsExperiences(long groupId,
long[] segmentsEntryIds,
long classNameId,
long classPK,
boolean active) |
static java.util.List<SegmentsExperience> |
getSegmentsExperiences(long groupId,
long[] segmentsEntryIds,
long classNameId,
long classPK,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperience> orderByComparator) |
static java.util.List<SegmentsExperience> |
getSegmentsExperiences(long groupId,
long classNameId,
long classPK) |
static java.util.List<SegmentsExperience> |
getSegmentsExperiences(long groupId,
long classNameId,
long classPK,
boolean active) |
static java.util.List<SegmentsExperience> |
getSegmentsExperiences(long groupId,
long classNameId,
long classPK,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperience> orderByComparator) |
static java.util.List<SegmentsExperience> |
getSegmentsExperiencesByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns all the segments experiences matching the UUID and company.
|
static java.util.List<SegmentsExperience> |
getSegmentsExperiencesByUuidAndCompanyId(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperience> orderByComparator)
Returns a range of segments experiences matching the UUID and company.
|
static int |
getSegmentsExperiencesCount()
Returns the number of segments experiences.
|
static int |
getSegmentsExperiencesCount(long groupId,
long classNameId,
long classPK) |
static int |
getSegmentsExperiencesCount(long groupId,
long classNameId,
long classPK,
boolean active) |
static SegmentsExperienceLocalService |
getService() |
static SegmentsExperience |
updateSegmentsExperience(long segmentsExperienceId,
long segmentsEntryId,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
boolean active) |
static SegmentsExperience |
updateSegmentsExperience(SegmentsExperience segmentsExperience)
Updates the segments experience in the database or adds it if it does not yet exist.
|
static SegmentsExperience |
updateSegmentsExperienceActive(long segmentsExperienceId,
boolean active) |
static SegmentsExperience |
updateSegmentsExperiencePriority(long segmentsExperienceId,
int newPriority) |
public static SegmentsExperience addSegmentsExperience(long segmentsEntryId, long classNameId, long classPK, java.util.Map<java.util.Locale,java.lang.String> nameMap, boolean active, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
SegmentsExperienceLocalServiceUtil
to access the segments experience local service. Add custom service methods to com.liferay.segments.service.impl.SegmentsExperienceLocalServiceImpl
and rerun ServiceBuilder to automatically copy the method declarations to this interface.com.liferay.portal.kernel.exception.PortalException
public static SegmentsExperience addSegmentsExperience(long segmentsEntryId, long classNameId, long classPK, java.util.Map<java.util.Locale,java.lang.String> nameMap, int priority, boolean active, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static SegmentsExperience addSegmentsExperience(SegmentsExperience segmentsExperience)
segmentsExperience
- the segments experiencepublic static SegmentsExperience createSegmentsExperience(long segmentsExperienceId)
segmentsExperienceId
- the primary key for the new segments experiencepublic static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
PortalException
public static void deleteSegmentsEntrySegmentsExperiences(long segmentsEntryId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static SegmentsExperience deleteSegmentsExperience(long segmentsExperienceId) throws com.liferay.portal.kernel.exception.PortalException
segmentsExperienceId
- the primary key of the segments experiencePortalException
- if a segments experience with the primary key could not be foundpublic static SegmentsExperience deleteSegmentsExperience(SegmentsExperience segmentsExperience) throws com.liferay.portal.kernel.exception.PortalException
segmentsExperience
- the segments experiencePortalException
public static void deleteSegmentsExperiences(long groupId, long classNameId, long classPK) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
public static <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
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 and pagination is required (start
and end
are not com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from com.liferay.segments.model.impl.SegmentsExperienceModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)public static <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
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 and pagination is required (start
and end
are not com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from com.liferay.segments.model.impl.SegmentsExperienceModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic static SegmentsExperience fetchSegmentsExperience(long segmentsExperienceId)
public static SegmentsExperience fetchSegmentsExperience(long groupId, java.lang.String segmentsExperienceKey)
public static SegmentsExperience fetchSegmentsExperienceByUuidAndGroupId(java.lang.String uuid, long groupId)
uuid
- the segments experience's UUIDgroupId
- the primary key of the groupnull
if a matching segments experience could not be foundpublic static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
public static java.lang.String getOSGiServiceIdentifier()
public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static SegmentsExperience getSegmentsExperience(long segmentsExperienceId) throws com.liferay.portal.kernel.exception.PortalException
segmentsExperienceId
- the primary key of the segments experiencePortalException
- if a segments experience with the primary key could not be foundpublic static SegmentsExperience getSegmentsExperience(long groupId, java.lang.String segmentsExperienceKey) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static SegmentsExperience getSegmentsExperienceByUuidAndGroupId(java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
uuid
- the segments experience's UUIDgroupId
- the primary key of the groupPortalException
- if a matching segments experience could not be foundpublic static java.util.List<SegmentsExperience> getSegmentsExperiences(int start, int end)
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 and pagination is required (start
and end
are not com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from com.liferay.segments.model.impl.SegmentsExperienceModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of segments experiencesend
- the upper bound of the range of segments experiences (not inclusive)public static java.util.List<SegmentsExperience> getSegmentsExperiences(long groupId, long classNameId, long classPK)
public static java.util.List<SegmentsExperience> getSegmentsExperiences(long groupId, long classNameId, long classPK, boolean active) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<SegmentsExperience> getSegmentsExperiences(long groupId, long classNameId, long classPK, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperience> orderByComparator)
public static java.util.List<SegmentsExperience> getSegmentsExperiences(long groupId, long[] segmentsEntryIds, long classNameId, long classPK, boolean active)
public static java.util.List<SegmentsExperience> getSegmentsExperiences(long groupId, long[] segmentsEntryIds, long classNameId, long classPK, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperience> orderByComparator)
public static java.util.List<SegmentsExperience> getSegmentsExperiencesByUuidAndCompanyId(java.lang.String uuid, long companyId)
uuid
- the UUID of the segments experiencescompanyId
- the primary key of the companypublic static java.util.List<SegmentsExperience> getSegmentsExperiencesByUuidAndCompanyId(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperience> orderByComparator)
uuid
- the UUID of the segments experiencescompanyId
- the primary key of the companystart
- the lower bound of the range of segments experiencesend
- the upper bound of the range of segments experiences (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static int getSegmentsExperiencesCount()
public static int getSegmentsExperiencesCount(long groupId, long classNameId, long classPK)
public static int getSegmentsExperiencesCount(long groupId, long classNameId, long classPK, boolean active)
public static SegmentsExperience updateSegmentsExperience(long segmentsExperienceId, long segmentsEntryId, java.util.Map<java.util.Locale,java.lang.String> nameMap, boolean active) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static SegmentsExperience updateSegmentsExperience(SegmentsExperience segmentsExperience)
segmentsExperience
- the segments experiencepublic static SegmentsExperience updateSegmentsExperienceActive(long segmentsExperienceId, boolean active) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static SegmentsExperience updateSegmentsExperiencePriority(long segmentsExperienceId, int newPriority) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static SegmentsExperienceLocalService getService()