public class StyleBookEntryLocalServiceUtil
extends java.lang.Object
com.liferay.style.book.service.impl.StyleBookEntryLocalServiceImpl
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.StyleBookEntryLocalService
Constructor and Description |
---|
StyleBookEntryLocalServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static StyleBookEntry |
addStyleBookEntry(long userId,
long groupId,
java.lang.String name,
java.lang.String styleBookEntryKey,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static StyleBookEntry |
addStyleBookEntry(long userId,
long groupId,
java.lang.String frontendTokensValues,
java.lang.String name,
java.lang.String styleBookEntryKey,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static StyleBookEntry |
addStyleBookEntry(StyleBookEntry styleBookEntry)
Adds the style book entry to the database.
|
static StyleBookEntry |
checkout(StyleBookEntry publishedStyleBookEntry,
int version) |
static StyleBookEntry |
copyStyleBookEntry(long userId,
long groupId,
long styleBookEntryId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static StyleBookEntry |
create()
Creates a new style book entry.
|
static com.liferay.portal.kernel.model.PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
static StyleBookEntry |
delete(StyleBookEntry publishedStyleBookEntry) |
static StyleBookEntry |
deleteDraft(StyleBookEntry draftStyleBookEntry) |
static com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
static StyleBookEntry |
deleteStyleBookEntry(long styleBookEntryId)
Deletes the style book entry with the primary key from the database.
|
static StyleBookEntry |
deleteStyleBookEntry(StyleBookEntry styleBookEntry)
Deletes the style book entry from the database.
|
static StyleBookEntryVersion |
deleteVersion(StyleBookEntryVersion styleBookEntryVersion) |
static <T> T |
dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
static int |
dslQueryCount(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 StyleBookEntry |
fetchDefaultStyleBookEntry(long groupId) |
static StyleBookEntry |
fetchDraft(long primaryKey) |
static StyleBookEntry |
fetchDraft(StyleBookEntry styleBookEntry) |
static StyleBookEntryVersion |
fetchLatestVersion(StyleBookEntry styleBookEntry) |
static StyleBookEntry |
fetchPublished(long primaryKey) |
static StyleBookEntry |
fetchPublished(StyleBookEntry styleBookEntry) |
static StyleBookEntry |
fetchStyleBookEntry(long styleBookEntryId) |
static StyleBookEntry |
fetchStyleBookEntry(long groupId,
java.lang.String styleBookEntryKey) |
static StyleBookEntry |
fetchStyleBookEntryByUuidAndGroupId(java.lang.String uuid,
long groupId) |
static java.lang.String |
generateStyleBookEntryKey(long groupId,
java.lang.String name) |
static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
static StyleBookEntry |
getDraft(long primaryKey) |
static StyleBookEntry |
getDraft(StyleBookEntry styleBookEntry) |
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 StyleBookEntryLocalService |
getService() |
static java.util.List<StyleBookEntry> |
getStyleBookEntries(int start,
int end)
Returns a range of all the style book entries.
|
static java.util.List<StyleBookEntry> |
getStyleBookEntries(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<StyleBookEntry> orderByComparator) |
static java.util.List<StyleBookEntry> |
getStyleBookEntries(long groupId,
java.lang.String name,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<StyleBookEntry> orderByComparator) |
static java.util.List<StyleBookEntry> |
getStyleBookEntriesByUuidAndCompanyId(java.lang.String uuid,
long companyId) |
static int |
getStyleBookEntriesCount()
Returns the number of style book entries.
|
static int |
getStyleBookEntriesCount(long groupId) |
static int |
getStyleBookEntriesCount(long groupId,
java.lang.String name) |
static StyleBookEntry |
getStyleBookEntry(long styleBookEntryId)
Returns the style book entry with the primary key.
|
static StyleBookEntryVersion |
getVersion(StyleBookEntry styleBookEntry,
int version) |
static java.util.List<StyleBookEntryVersion> |
getVersions(StyleBookEntry styleBookEntry) |
static StyleBookEntry |
publishDraft(StyleBookEntry draftStyleBookEntry) |
static void |
registerListener(com.liferay.portal.kernel.service.version.VersionServiceListener<StyleBookEntry,StyleBookEntryVersion> versionServiceListener) |
static void |
unregisterListener(com.liferay.portal.kernel.service.version.VersionServiceListener<StyleBookEntry,StyleBookEntryVersion> versionServiceListener) |
static StyleBookEntry |
updateDefaultStyleBookEntry(long styleBookEntryId,
boolean defaultStyleBookEntry) |
static StyleBookEntry |
updateDraft(StyleBookEntry draftStyleBookEntry) |
static StyleBookEntry |
updateFrontendTokensValues(long styleBookEntryId,
java.lang.String frontendTokensValues) |
static StyleBookEntry |
updateName(long styleBookEntryId,
java.lang.String name) |
static StyleBookEntry |
updatePreviewFileEntryId(long styleBookEntryId,
long previewFileEntryId) |
static StyleBookEntry |
updateStyleBookEntry(long userId,
long styleBookEntryId,
boolean defaultStylebookEntry,
java.lang.String frontendTokensValues,
java.lang.String name,
java.lang.String styleBookEntryKey,
long previewFileEntryId) |
static StyleBookEntry |
updateStyleBookEntry(long styleBookEntryId,
java.lang.String frontendTokensValues,
java.lang.String name) |
static StyleBookEntry |
updateStyleBookEntry(StyleBookEntry draftStyleBookEntry)
Updates the style book entry in the database or adds it if it does not yet exist.
|
public static StyleBookEntry addStyleBookEntry(long userId, long groupId, java.lang.String name, java.lang.String styleBookEntryKey, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static StyleBookEntry addStyleBookEntry(long userId, long groupId, java.lang.String frontendTokensValues, java.lang.String name, java.lang.String styleBookEntryKey, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static StyleBookEntry addStyleBookEntry(StyleBookEntry styleBookEntry)
Important: Inspect StyleBookEntryLocalServiceImpl 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.
styleBookEntry
- the style book entrypublic static StyleBookEntry checkout(StyleBookEntry publishedStyleBookEntry, int version) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static StyleBookEntry copyStyleBookEntry(long userId, long groupId, long styleBookEntryId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static StyleBookEntry create()
public static com.liferay.portal.kernel.model.PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static StyleBookEntry delete(StyleBookEntry publishedStyleBookEntry) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static StyleBookEntry deleteDraft(StyleBookEntry draftStyleBookEntry) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static StyleBookEntry deleteStyleBookEntry(long styleBookEntryId) throws com.liferay.portal.kernel.exception.PortalException
Important: Inspect StyleBookEntryLocalServiceImpl 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.
styleBookEntryId
- the primary key of the style book entrycom.liferay.portal.kernel.exception.PortalException
- if a style book entry with the primary key could not be foundpublic static StyleBookEntry deleteStyleBookEntry(StyleBookEntry styleBookEntry) throws com.liferay.portal.kernel.exception.PortalException
Important: Inspect StyleBookEntryLocalServiceImpl 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.
styleBookEntry
- the style book entrycom.liferay.portal.kernel.exception.PortalException
public static StyleBookEntryVersion deleteVersion(StyleBookEntryVersion styleBookEntryVersion) 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 int dslQueryCount(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.style.book.model.impl.StyleBookEntryModelImpl
.
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.style.book.model.impl.StyleBookEntryModelImpl
.
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 StyleBookEntry fetchDefaultStyleBookEntry(long groupId)
public static StyleBookEntry fetchDraft(long primaryKey)
public static StyleBookEntry fetchDraft(StyleBookEntry styleBookEntry)
public static StyleBookEntryVersion fetchLatestVersion(StyleBookEntry styleBookEntry)
public static StyleBookEntry fetchPublished(long primaryKey)
public static StyleBookEntry fetchPublished(StyleBookEntry styleBookEntry)
public static StyleBookEntry fetchStyleBookEntry(long styleBookEntryId)
public static StyleBookEntry fetchStyleBookEntry(long groupId, java.lang.String styleBookEntryKey)
public static StyleBookEntry fetchStyleBookEntryByUuidAndGroupId(java.lang.String uuid, long groupId)
public static java.lang.String generateStyleBookEntryKey(long groupId, java.lang.String name)
public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
public static StyleBookEntry getDraft(long primaryKey) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static StyleBookEntry getDraft(StyleBookEntry styleBookEntry) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
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 java.util.List<StyleBookEntry> getStyleBookEntries(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.style.book.model.impl.StyleBookEntryModelImpl
.
start
- the lower bound of the range of style book entriesend
- the upper bound of the range of style book entries (not inclusive)public static java.util.List<StyleBookEntry> getStyleBookEntries(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<StyleBookEntry> orderByComparator)
public static java.util.List<StyleBookEntry> getStyleBookEntries(long groupId, java.lang.String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<StyleBookEntry> orderByComparator)
public static java.util.List<StyleBookEntry> getStyleBookEntriesByUuidAndCompanyId(java.lang.String uuid, long companyId)
public static int getStyleBookEntriesCount()
public static int getStyleBookEntriesCount(long groupId)
public static int getStyleBookEntriesCount(long groupId, java.lang.String name)
public static StyleBookEntry getStyleBookEntry(long styleBookEntryId) throws com.liferay.portal.kernel.exception.PortalException
styleBookEntryId
- the primary key of the style book entrycom.liferay.portal.kernel.exception.PortalException
- if a style book entry with the primary key could not be foundpublic static StyleBookEntryVersion getVersion(StyleBookEntry styleBookEntry, int version) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<StyleBookEntryVersion> getVersions(StyleBookEntry styleBookEntry)
public static StyleBookEntry publishDraft(StyleBookEntry draftStyleBookEntry) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void registerListener(com.liferay.portal.kernel.service.version.VersionServiceListener<StyleBookEntry,StyleBookEntryVersion> versionServiceListener)
public static void unregisterListener(com.liferay.portal.kernel.service.version.VersionServiceListener<StyleBookEntry,StyleBookEntryVersion> versionServiceListener)
public static StyleBookEntry updateDefaultStyleBookEntry(long styleBookEntryId, boolean defaultStyleBookEntry) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static StyleBookEntry updateDraft(StyleBookEntry draftStyleBookEntry) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static StyleBookEntry updateFrontendTokensValues(long styleBookEntryId, java.lang.String frontendTokensValues) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static StyleBookEntry updateName(long styleBookEntryId, java.lang.String name) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static StyleBookEntry updatePreviewFileEntryId(long styleBookEntryId, long previewFileEntryId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static StyleBookEntry updateStyleBookEntry(long userId, long styleBookEntryId, boolean defaultStylebookEntry, java.lang.String frontendTokensValues, java.lang.String name, java.lang.String styleBookEntryKey, long previewFileEntryId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static StyleBookEntry updateStyleBookEntry(long styleBookEntryId, java.lang.String frontendTokensValues, java.lang.String name) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static StyleBookEntry updateStyleBookEntry(StyleBookEntry draftStyleBookEntry) throws com.liferay.portal.kernel.exception.PortalException
Important: Inspect StyleBookEntryLocalServiceImpl 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.
styleBookEntry
- the style book entrycom.liferay.portal.kernel.exception.PortalException
public static StyleBookEntryLocalService getService()