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,
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,
ServiceContext serviceContext) |
static void |
addSegmentsEntryClassPKs(long segmentsEntryId,
long[] classPKs,
ServiceContext serviceContext) |
static PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
static SegmentsEntry |
createSegmentsEntry(long segmentsEntryId)
Creates a new segments entry with the primary key.
|
static PersistedModel |
deletePersistedModel(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(DSLQuery dslQuery) |
static DynamicQuery |
dynamicQuery() |
static <T> java.util.List<T> |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
static <T> java.util.List<T> |
dynamicQuery(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(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
static long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
static long |
dynamicQueryCount(DynamicQuery dynamicQuery,
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 ActionableDynamicQuery |
getActionableDynamicQuery() |
static ExportActionableDynamicQuery |
getExportActionableDynamicQuery(PortletDataContext portletDataContext) |
static IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
static java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static 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,
OrderByComparator<SegmentsEntry> orderByComparator) |
static java.util.List<SegmentsEntry> |
getSegmentsEntries(long groupId,
boolean active,
java.lang.String type,
int start,
int end,
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,
OrderByComparator<SegmentsEntry> orderByComparator) |
static java.util.List<SegmentsEntry> |
getSegmentsEntriesBySource(java.lang.String source,
int start,
int end,
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,
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 BaseModelSearchResult<SegmentsEntry> |
searchSegmentsEntries(long companyId,
long groupId,
java.lang.String keywords,
boolean includeAncestorSegmentsEntries,
int start,
int end,
Sort sort)
Deprecated.
As of Athanasius (7.3.x), replaced by
searchSegmentsEntries(long, long, String, boolean,
LinkedHashMap, int, int, Sort) |
static 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,
Sort sort) |
static BaseModelSearchResult<SegmentsEntry> |
searchSegmentsEntries(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,
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)
Important: Inspect SegmentsEntryLocalServiceImpl 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.
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, ServiceContext serviceContext) throws PortalException
PortalExceptionpublic 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, ServiceContext serviceContext) throws PortalException
PortalExceptionpublic static void addSegmentsEntryClassPKs(long segmentsEntryId,
long[] classPKs,
ServiceContext serviceContext)
throws PortalException
PortalExceptionpublic static PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj) throws PortalException
PortalExceptionpublic static SegmentsEntry createSegmentsEntry(long segmentsEntryId)
segmentsEntryId - the primary key for the new segments entrypublic static PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
PortalExceptionpublic static void deleteSegmentsEntries(long groupId)
throws PortalException
PortalExceptionpublic static void deleteSegmentsEntries(java.lang.String source)
throws PortalException
PortalExceptionpublic static SegmentsEntry deleteSegmentsEntry(long segmentsEntryId) throws PortalException
Important: Inspect SegmentsEntryLocalServiceImpl 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.
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 PortalException
Important: Inspect SegmentsEntryLocalServiceImpl 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.
segmentsEntry - the segments entryPortalExceptionpublic static void deleteSegmentsEntryClassPKs(long segmentsEntryId,
long[] classPKs)
throws PortalException
PortalExceptionpublic static <T> T dslQuery(DSLQuery dslQuery)
public static DynamicQuery dynamicQuery()
public static <T> java.util.List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery - the dynamic querypublic static <T> java.util.List<T> dynamicQuery(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(DynamicQuery dynamicQuery, int start, int end, 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(DynamicQuery dynamicQuery)
dynamicQuery - the dynamic querypublic static long dynamicQueryCount(DynamicQuery dynamicQuery, 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 ActionableDynamicQuery getActionableDynamicQuery()
public static ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
public static IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
public static java.lang.String getOSGiServiceIdentifier()
public static PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws PortalException
PortalExceptionpublic 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, OrderByComparator<SegmentsEntry> orderByComparator)
public static java.util.List<SegmentsEntry> getSegmentsEntries(long groupId, boolean active, java.lang.String type, int start, int end, 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, OrderByComparator<SegmentsEntry> orderByComparator)
public static java.util.List<SegmentsEntry> getSegmentsEntriesBySource(java.lang.String source, int start, int end, 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, 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 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 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 BaseModelSearchResult<SegmentsEntry> searchSegmentsEntries(long companyId, long groupId, java.lang.String keywords, boolean includeAncestorSegmentsEntries, int start, int end, Sort sort) throws PortalException
searchSegmentsEntries(long, long, String, boolean,
LinkedHashMap, int, int, Sort)PortalExceptionpublic static 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, Sort sort) throws PortalException
PortalExceptionpublic static BaseModelSearchResult<SegmentsEntry> searchSegmentsEntries(SearchContext searchContext) throws PortalException
PortalExceptionpublic 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, ServiceContext serviceContext) throws PortalException
PortalExceptionpublic static SegmentsEntry updateSegmentsEntry(SegmentsEntry segmentsEntry)
Important: Inspect SegmentsEntryLocalServiceImpl 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.
segmentsEntry - the segments entrypublic static SegmentsEntryLocalService getService()