public class SegmentsEntryLocalServiceUtil
extends java.lang.Object
com.liferay.segments.service.impl.SegmentsEntryLocalServiceImpl
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.SegmentsEntryLocalService
Constructor and Description |
---|
SegmentsEntryLocalServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static SegmentsEntry |
addSegmentsEntry(SegmentsEntry segmentsEntry)
Adds the segments entry to the database.
|
static SegmentsEntry |
addSegmentsEntry(java.lang.String segmentsEntryKey,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
boolean active,
java.lang.String criteria,
java.lang.String type,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static SegmentsEntry |
addSegmentsEntry(java.lang.String segmentsEntryKey,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
boolean active,
java.lang.String criteria,
java.lang.String source,
java.lang.String type,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static void |
addSegmentsEntryClassPKs(long segmentsEntryId,
long[] classPKs,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static com.liferay.portal.kernel.model.PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
static SegmentsEntry |
createSegmentsEntry(long segmentsEntryId)
Creates a new segments entry with the primary key.
|
static com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
static void |
deleteSegmentsEntries(long groupId) |
static void |
deleteSegmentsEntries(java.lang.String source) |
static SegmentsEntry |
deleteSegmentsEntry(long segmentsEntryId)
Deletes the segments entry with the primary key from the database.
|
static SegmentsEntry |
deleteSegmentsEntry(SegmentsEntry segmentsEntry)
Deletes the segments entry from the database.
|
static void |
deleteSegmentsEntryClassPKs(long segmentsEntryId,
long[] classPKs) |
static <T> T |
dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
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 SegmentsEntry |
fetchSegmentsEntry(long segmentsEntryId) |
static SegmentsEntry |
fetchSegmentsEntry(long groupId,
java.lang.String segmentsEntryKey,
boolean includeAncestorSegmentsEntries) |
static SegmentsEntry |
fetchSegmentsEntryByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the segments entry 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 java.util.List<SegmentsEntry> |
getSegmentsEntries(int start,
int end)
Returns a range of all the segments entries.
|
static java.util.List<SegmentsEntry> |
getSegmentsEntries(long groupId,
boolean includeAncestorSegmentsEntries,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntry> orderByComparator) |
static java.util.List<SegmentsEntry> |
getSegmentsEntries(long groupId,
boolean active,
java.lang.String type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntry> orderByComparator) |
static java.util.List<SegmentsEntry> |
getSegmentsEntries(long groupId,
boolean active,
java.lang.String source,
java.lang.String type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntry> orderByComparator) |
static java.util.List<SegmentsEntry> |
getSegmentsEntriesBySource(java.lang.String source,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntry> orderByComparator) |
static java.util.List<SegmentsEntry> |
getSegmentsEntriesByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns all the segments entries matching the UUID and company.
|
static java.util.List<SegmentsEntry> |
getSegmentsEntriesByUuidAndCompanyId(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntry> orderByComparator)
Returns a range of segments entries matching the UUID and company.
|
static int |
getSegmentsEntriesCount()
Returns the number of segments entries.
|
static int |
getSegmentsEntriesCount(long groupId,
boolean includeAncestorSegmentsEntries) |
static SegmentsEntry |
getSegmentsEntry(long segmentsEntryId)
Returns the segments entry with the primary key.
|
static SegmentsEntry |
getSegmentsEntryByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the segments entry matching the UUID and group.
|
static SegmentsEntryLocalService |
getService() |
static com.liferay.portal.kernel.search.BaseModelSearchResult<SegmentsEntry> |
searchSegmentsEntries(long companyId,
long groupId,
java.lang.String keywords,
boolean includeAncestorSegmentsEntries,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort)
Deprecated.
As of Athanasius (7.3.x), replaced by
searchSegmentsEntries(long, long, String, boolean,
LinkedHashMap, int, int, Sort) |
static com.liferay.portal.kernel.search.BaseModelSearchResult<SegmentsEntry> |
searchSegmentsEntries(long companyId,
long groupId,
java.lang.String keywords,
boolean includeAncestorSegmentsEntries,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort) |
static com.liferay.portal.kernel.search.BaseModelSearchResult<SegmentsEntry> |
searchSegmentsEntries(com.liferay.portal.kernel.search.SearchContext searchContext) |
static SegmentsEntry |
updateSegmentsEntry(long segmentsEntryId,
java.lang.String segmentsEntryKey,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
boolean active,
java.lang.String criteria,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static SegmentsEntry |
updateSegmentsEntry(SegmentsEntry segmentsEntry)
Updates the segments entry in the database or adds it if it does not yet exist.
|
public static SegmentsEntry addSegmentsEntry(SegmentsEntry segmentsEntry)
segmentsEntry
- the segments entrypublic static SegmentsEntry addSegmentsEntry(java.lang.String segmentsEntryKey, java.util.Map<java.util.Locale,java.lang.String> nameMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, boolean active, java.lang.String criteria, java.lang.String type, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static SegmentsEntry addSegmentsEntry(java.lang.String segmentsEntryKey, java.util.Map<java.util.Locale,java.lang.String> nameMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, boolean active, java.lang.String criteria, java.lang.String source, java.lang.String type, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void addSegmentsEntryClassPKs(long segmentsEntryId, long[] classPKs, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.model.PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
PortalException
public static SegmentsEntry createSegmentsEntry(long segmentsEntryId)
segmentsEntryId
- the primary key for the new segments entrypublic 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 deleteSegmentsEntries(long groupId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void deleteSegmentsEntries(java.lang.String source) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static SegmentsEntry deleteSegmentsEntry(long segmentsEntryId) throws com.liferay.portal.kernel.exception.PortalException
segmentsEntryId
- the primary key of the segments entryPortalException
- if a segments entry with the primary key could not be foundpublic static SegmentsEntry deleteSegmentsEntry(SegmentsEntry segmentsEntry) throws com.liferay.portal.kernel.exception.PortalException
segmentsEntry
- the segments entryPortalException
public static void deleteSegmentsEntryClassPKs(long segmentsEntryId, long[] classPKs) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
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, then the query will include the default ORDER BY logic from com.liferay.segments.model.impl.SegmentsEntryModelImpl
.
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, then the query will include the default ORDER BY logic from com.liferay.segments.model.impl.SegmentsEntryModelImpl
.
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 SegmentsEntry fetchSegmentsEntry(long segmentsEntryId)
public static SegmentsEntry fetchSegmentsEntry(long groupId, java.lang.String segmentsEntryKey, boolean includeAncestorSegmentsEntries)
public static SegmentsEntry fetchSegmentsEntryByUuidAndGroupId(java.lang.String uuid, long groupId)
uuid
- the segments entry's UUIDgroupId
- the primary key of the groupnull
if a matching segments entry 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
PortalException
public static java.util.List<SegmentsEntry> getSegmentsEntries(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, then the query will include the default ORDER BY logic from com.liferay.segments.model.impl.SegmentsEntryModelImpl
.
start
- the lower bound of the range of segments entriesend
- the upper bound of the range of segments entries (not inclusive)public static java.util.List<SegmentsEntry> getSegmentsEntries(long groupId, boolean includeAncestorSegmentsEntries, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntry> orderByComparator)
public static java.util.List<SegmentsEntry> getSegmentsEntries(long groupId, boolean active, java.lang.String type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntry> orderByComparator)
public static java.util.List<SegmentsEntry> getSegmentsEntries(long groupId, boolean active, java.lang.String source, java.lang.String type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntry> orderByComparator)
public static java.util.List<SegmentsEntry> getSegmentsEntriesBySource(java.lang.String source, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntry> orderByComparator)
public static java.util.List<SegmentsEntry> getSegmentsEntriesByUuidAndCompanyId(java.lang.String uuid, long companyId)
uuid
- the UUID of the segments entriescompanyId
- the primary key of the companypublic static java.util.List<SegmentsEntry> getSegmentsEntriesByUuidAndCompanyId(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntry> orderByComparator)
uuid
- the UUID of the segments entriescompanyId
- the primary key of the companystart
- the lower bound of the range of segments entriesend
- the upper bound of the range of segments entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static int getSegmentsEntriesCount()
public static int getSegmentsEntriesCount(long groupId, boolean includeAncestorSegmentsEntries)
public static SegmentsEntry getSegmentsEntry(long segmentsEntryId) throws com.liferay.portal.kernel.exception.PortalException
segmentsEntryId
- the primary key of the segments entryPortalException
- if a segments entry with the primary key could not be foundpublic static SegmentsEntry getSegmentsEntryByUuidAndGroupId(java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
uuid
- the segments entry's UUIDgroupId
- the primary key of the groupPortalException
- if a matching segments entry could not be found@Deprecated public static com.liferay.portal.kernel.search.BaseModelSearchResult<SegmentsEntry> searchSegmentsEntries(long companyId, long groupId, java.lang.String keywords, boolean includeAncestorSegmentsEntries, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException
searchSegmentsEntries(long, long, String, boolean,
LinkedHashMap, int, int, Sort)
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.search.BaseModelSearchResult<SegmentsEntry> searchSegmentsEntries(long companyId, long groupId, java.lang.String keywords, boolean includeAncestorSegmentsEntries, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.search.BaseModelSearchResult<SegmentsEntry> searchSegmentsEntries(com.liferay.portal.kernel.search.SearchContext searchContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static SegmentsEntry updateSegmentsEntry(long segmentsEntryId, java.lang.String segmentsEntryKey, java.util.Map<java.util.Locale,java.lang.String> nameMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, boolean active, java.lang.String criteria, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static SegmentsEntry updateSegmentsEntry(SegmentsEntry segmentsEntry)
segmentsEntry
- the segments entrypublic static SegmentsEntryLocalService getService()