public class StyleBookEntryLocalServiceWrapper extends java.lang.Object implements ServiceWrapper<StyleBookEntryLocalService>, StyleBookEntryLocalService
StyleBookEntryLocalService.StyleBookEntryLocalService| Constructor and Description |
|---|
StyleBookEntryLocalServiceWrapper(StyleBookEntryLocalService styleBookEntryLocalService) |
| Modifier and Type | Method and Description |
|---|---|
StyleBookEntry |
addStyleBookEntry(long userId,
long groupId,
java.lang.String name,
java.lang.String styleBookEntryKey,
ServiceContext serviceContext) |
StyleBookEntry |
addStyleBookEntry(long userId,
long groupId,
java.lang.String frontendTokensValues,
java.lang.String name,
java.lang.String styleBookEntryKey,
ServiceContext serviceContext) |
StyleBookEntry |
addStyleBookEntry(StyleBookEntry styleBookEntry)
Adds the style book entry to the database.
|
StyleBookEntry |
checkout(StyleBookEntry publishedStyleBookEntry,
int version)
Checks out the previous version of the versioned model and saves it as a
draft.
|
StyleBookEntry |
copyStyleBookEntry(long userId,
long groupId,
long styleBookEntryId,
ServiceContext serviceContext) |
StyleBookEntry |
create()
Creates a new style book entry.
|
PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
StyleBookEntry |
delete(StyleBookEntry publishedStyleBookEntry)
Deletes the
VersionedModel. |
StyleBookEntry |
deleteDraft(StyleBookEntry draftStyleBookEntry)
Deletes the
VersionedModel if it is a draft. |
PersistedModel |
deletePersistedModel(PersistedModel persistedModel) |
StyleBookEntry |
deleteStyleBookEntry(long styleBookEntryId)
Deletes the style book entry with the primary key from the database.
|
StyleBookEntry |
deleteStyleBookEntry(StyleBookEntry styleBookEntry)
Deletes the style book entry from the database.
|
StyleBookEntryVersion |
deleteVersion(StyleBookEntryVersion styleBookEntryVersion)
Deletes the
VersionModel if it is not the latest version. |
<T> T |
dslQuery(DSLQuery dslQuery) |
DynamicQuery |
dynamicQuery() |
<T> java.util.List<T> |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
<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.
|
<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.
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
Returns the number of rows matching the dynamic query.
|
StyleBookEntry |
fetchDefaultStyleBookEntry(long groupId) |
StyleBookEntry |
fetchDraft(long primaryKey)
Fetches the draft if it exists; otherwise, returns
null. |
StyleBookEntry |
fetchDraft(StyleBookEntry styleBookEntry)
Fetches the draft if it exists; otherwise, returns
null. |
StyleBookEntryVersion |
fetchLatestVersion(StyleBookEntry styleBookEntry)
Fetches the latest version model if it exists.
|
StyleBookEntry |
fetchPublished(long primaryKey)
Fetches the published versioned model if it exists; otherwise, returns
null. |
StyleBookEntry |
fetchPublished(StyleBookEntry styleBookEntry)
Fetches the published versioned model if it exists.
|
StyleBookEntry |
fetchStyleBookEntry(long styleBookEntryId) |
StyleBookEntry |
fetchStyleBookEntry(long groupId,
java.lang.String styleBookEntryKey) |
java.lang.String |
generateStyleBookEntryKey(long groupId,
java.lang.String name) |
ActionableDynamicQuery |
getActionableDynamicQuery() |
StyleBookEntry |
getDraft(long primaryKey)
Returns the versioned model draft with the primary key.
|
StyleBookEntry |
getDraft(StyleBookEntry styleBookEntry)
Returns the versioned model draft.
|
IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
java.util.List<StyleBookEntry> |
getStyleBookEntries(int start,
int end)
Returns a range of all the style book entries.
|
java.util.List<StyleBookEntry> |
getStyleBookEntries(long groupId,
int start,
int end,
OrderByComparator<StyleBookEntry> orderByComparator) |
java.util.List<StyleBookEntry> |
getStyleBookEntries(long groupId,
java.lang.String name,
int start,
int end,
OrderByComparator<StyleBookEntry> orderByComparator) |
int |
getStyleBookEntriesCount()
Returns the number of style book entries.
|
int |
getStyleBookEntriesCount(long groupId) |
int |
getStyleBookEntriesCount(long groupId,
java.lang.String name) |
StyleBookEntry |
getStyleBookEntry(long styleBookEntryId)
Returns the style book entry with the primary key.
|
StyleBookEntryVersion |
getVersion(StyleBookEntry styleBookEntry,
int version)
Returns the
VersionModel for the VersionedModel matching
the version. |
java.util.List<StyleBookEntryVersion> |
getVersions(StyleBookEntry styleBookEntry)
Returns the
VersionModels for the VersionedModel. |
StyleBookEntryLocalService |
getWrappedService() |
StyleBookEntry |
publishDraft(StyleBookEntry draftStyleBookEntry)
Publishes the draft and creates a new version model for the new version.
|
void |
registerListener(VersionServiceListener<StyleBookEntry,StyleBookEntryVersion> versionServiceListener)
Registers the
VersionServiceListener. |
void |
setWrappedService(StyleBookEntryLocalService styleBookEntryLocalService) |
void |
unregisterListener(VersionServiceListener<StyleBookEntry,StyleBookEntryVersion> versionServiceListener)
Unregisters the
VersionServiceListener. |
StyleBookEntry |
updateDefaultStyleBookEntry(long styleBookEntryId,
boolean defaultStyleBookEntry) |
StyleBookEntry |
updateDraft(StyleBookEntry draftStyleBookEntry)
Updates the draft.
|
StyleBookEntry |
updateFrontendTokensValues(long styleBookEntryId,
java.lang.String frontendTokensValues) |
StyleBookEntry |
updateName(long styleBookEntryId,
java.lang.String name) |
StyleBookEntry |
updatePreviewFileEntryId(long styleBookEntryId,
long previewFileEntryId) |
StyleBookEntry |
updateStyleBookEntry(long styleBookEntryId,
java.lang.String frontendTokensValues,
java.lang.String name) |
StyleBookEntry |
updateStyleBookEntry(StyleBookEntry draftStyleBookEntry)
Updates the style book entry in the database or adds it if it does not yet exist.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBasePersistencepublic StyleBookEntryLocalServiceWrapper(StyleBookEntryLocalService styleBookEntryLocalService)
public StyleBookEntry addStyleBookEntry(long userId, long groupId, java.lang.String name, java.lang.String styleBookEntryKey, ServiceContext serviceContext) throws PortalException
addStyleBookEntry in interface StyleBookEntryLocalServicePortalExceptionpublic StyleBookEntry addStyleBookEntry(long userId, long groupId, java.lang.String frontendTokensValues, java.lang.String name, java.lang.String styleBookEntryKey, ServiceContext serviceContext) throws PortalException
addStyleBookEntry in interface StyleBookEntryLocalServicePortalExceptionpublic 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.
addStyleBookEntry in interface StyleBookEntryLocalServicestyleBookEntry - the style book entrypublic StyleBookEntry checkout(StyleBookEntry publishedStyleBookEntry, int version) throws PortalException
VersionServiceVersionServiceListener that has been registered is
also notified. An IllegalArgumentException is thrown if the
versioned model already has a draft.checkout in interface VersionService<StyleBookEntry,StyleBookEntryVersion>checkout in interface StyleBookEntryLocalServicepublishedStyleBookEntry - the published versioned modelversion - the versionVersionModel being checked outPortalException - if the version does not existpublic StyleBookEntry copyStyleBookEntry(long userId, long groupId, long styleBookEntryId, ServiceContext serviceContext) throws PortalException
copyStyleBookEntry in interface StyleBookEntryLocalServicePortalExceptionpublic StyleBookEntry create()
create in interface VersionService<StyleBookEntry,StyleBookEntryVersion>create in interface StyleBookEntryLocalServicepublic PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj) throws PortalException
createPersistedModel in interface PersistedModelLocalServicecreatePersistedModel in interface StyleBookEntryLocalServicePortalExceptionpublic StyleBookEntry delete(StyleBookEntry publishedStyleBookEntry) throws PortalException
VersionServiceVersionedModel. Related drafts and versions are also
deleted. Any VersionServiceListener that has been registered is
notified. An IllegalArgumentException is thrown if the versioned
model is a draft. Drafts can be deleted by calling VersionService.deleteDraft(VersionedModel).delete in interface VersionService<StyleBookEntry,StyleBookEntryVersion>delete in interface StyleBookEntryLocalServicepublishedStyleBookEntry - the published versioned modelPortalException - if a portal exception occurredpublic StyleBookEntry deleteDraft(StyleBookEntry draftStyleBookEntry) throws PortalException
VersionServiceVersionedModel if it is a draft. Any VersionServiceListener that has been registered is notified. An IllegalArgumentException is thrown if the versioned model is not a
draft. Published versioned models can be deleted by calling VersionService.delete(VersionedModel).deleteDraft in interface VersionService<StyleBookEntry,StyleBookEntryVersion>deleteDraft in interface StyleBookEntryLocalServicedraftStyleBookEntry - the draft versioned modelPortalException - if a portal exception occurredpublic PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
deletePersistedModel in interface PersistedModelLocalServicedeletePersistedModel in interface StyleBookEntryLocalServicePortalExceptionpublic StyleBookEntry deleteStyleBookEntry(long styleBookEntryId) throws 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.
deleteStyleBookEntry in interface StyleBookEntryLocalServicestyleBookEntryId - the primary key of the style book entryPortalException - if a style book entry with the primary key could not be foundpublic StyleBookEntry deleteStyleBookEntry(StyleBookEntry styleBookEntry) throws 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.
deleteStyleBookEntry in interface StyleBookEntryLocalServicestyleBookEntry - the style book entryPortalExceptionpublic StyleBookEntryVersion deleteVersion(StyleBookEntryVersion styleBookEntryVersion) throws PortalException
VersionServiceVersionModel if it is not the latest version. Any
VersionServiceListener that has been registered is notified. An
IllegalArgumentException is thrown if the versioned model is the
latest version.deleteVersion in interface VersionService<StyleBookEntry,StyleBookEntryVersion>deleteVersion in interface StyleBookEntryLocalServicestyleBookEntryVersion - the version modelPortalException - if a portal exception occurredpublic <T> T dslQuery(DSLQuery dslQuery)
dslQuery in interface StyleBookEntryLocalServicepublic DynamicQuery dynamicQuery()
dynamicQuery in interface StyleBookEntryLocalServicepublic <T> java.util.List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery in interface StyleBookEntryLocalServicedynamicQuery - the dynamic querypublic <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.style.book.model.impl.StyleBookEntryModelImpl.
dynamicQuery in interface StyleBookEntryLocalServicedynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)public <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.style.book.model.impl.StyleBookEntryModelImpl.
dynamicQuery in interface StyleBookEntryLocalServicedynamicQuery - 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 long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQueryCount in interface StyleBookEntryLocalServicedynamicQuery - the dynamic querypublic long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
dynamicQueryCount in interface StyleBookEntryLocalServicedynamicQuery - the dynamic queryprojection - the projection to apply to the querypublic StyleBookEntry fetchDefaultStyleBookEntry(long groupId)
fetchDefaultStyleBookEntry in interface StyleBookEntryLocalServicepublic StyleBookEntry fetchDraft(long primaryKey)
VersionServicenull.fetchDraft in interface VersionService<StyleBookEntry,StyleBookEntryVersion>fetchDraft in interface StyleBookEntryLocalServiceprimaryKey - the draft or published versioned model's primary keynullpublic StyleBookEntry fetchDraft(StyleBookEntry styleBookEntry)
VersionServicenull.fetchDraft in interface VersionService<StyleBookEntry,StyleBookEntryVersion>fetchDraft in interface StyleBookEntryLocalServicestyleBookEntry - the draft or published versioned modelnullpublic StyleBookEntryVersion fetchLatestVersion(StyleBookEntry styleBookEntry)
VersionServicenull is returned.fetchLatestVersion in interface VersionService<StyleBookEntry,StyleBookEntryVersion>fetchLatestVersion in interface StyleBookEntryLocalServicestyleBookEntry - the versioned modelnullpublic StyleBookEntry fetchPublished(long primaryKey)
VersionServicenull.fetchPublished in interface VersionService<StyleBookEntry,StyleBookEntryVersion>fetchPublished in interface StyleBookEntryLocalServiceprimaryKey - the published versioned model's primary keynullpublic StyleBookEntry fetchPublished(StyleBookEntry styleBookEntry)
VersionServicenull is returned.fetchPublished in interface VersionService<StyleBookEntry,StyleBookEntryVersion>fetchPublished in interface StyleBookEntryLocalServicestyleBookEntry - the versioned modelnullpublic StyleBookEntry fetchStyleBookEntry(long styleBookEntryId)
fetchStyleBookEntry in interface StyleBookEntryLocalServicepublic StyleBookEntry fetchStyleBookEntry(long groupId, java.lang.String styleBookEntryKey)
fetchStyleBookEntry in interface StyleBookEntryLocalServicepublic java.lang.String generateStyleBookEntryKey(long groupId,
java.lang.String name)
generateStyleBookEntryKey in interface StyleBookEntryLocalServicepublic ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery in interface StyleBookEntryLocalServicepublic StyleBookEntry getDraft(long primaryKey) throws PortalException
VersionServiceVersionServiceListener that has been
registered is notified.getDraft in interface VersionService<StyleBookEntry,StyleBookEntryVersion>getDraft in interface StyleBookEntryLocalServiceprimaryKey - of the draft or published versioned modelPortalException - if no draft or published versioned model exists
with the primary keypublic StyleBookEntry getDraft(StyleBookEntry styleBookEntry) throws PortalException
VersionServiceVersionServiceListener that has been registered is notified.getDraft in interface VersionService<StyleBookEntry,StyleBookEntryVersion>getDraft in interface StyleBookEntryLocalServicestyleBookEntry - the versioned modelPortalException - if a portal exception occurredpublic IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery in interface StyleBookEntryLocalServicepublic java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier in interface StyleBookEntryLocalServicepublic PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws PortalException
getPersistedModel in interface PersistedModelLocalServicegetPersistedModel in interface StyleBookEntryLocalServicePortalExceptionpublic 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.
getStyleBookEntries in interface StyleBookEntryLocalServicestart - the lower bound of the range of style book entriesend - the upper bound of the range of style book entries (not inclusive)public java.util.List<StyleBookEntry> getStyleBookEntries(long groupId, int start, int end, OrderByComparator<StyleBookEntry> orderByComparator)
getStyleBookEntries in interface StyleBookEntryLocalServicepublic java.util.List<StyleBookEntry> getStyleBookEntries(long groupId, java.lang.String name, int start, int end, OrderByComparator<StyleBookEntry> orderByComparator)
getStyleBookEntries in interface StyleBookEntryLocalServicepublic int getStyleBookEntriesCount()
getStyleBookEntriesCount in interface StyleBookEntryLocalServicepublic int getStyleBookEntriesCount(long groupId)
getStyleBookEntriesCount in interface StyleBookEntryLocalServicepublic int getStyleBookEntriesCount(long groupId,
java.lang.String name)
getStyleBookEntriesCount in interface StyleBookEntryLocalServicepublic StyleBookEntry getStyleBookEntry(long styleBookEntryId) throws PortalException
getStyleBookEntry in interface StyleBookEntryLocalServicestyleBookEntryId - the primary key of the style book entryPortalException - if a style book entry with the primary key could not be foundpublic StyleBookEntryVersion getVersion(StyleBookEntry styleBookEntry, int version) throws PortalException
VersionServiceVersionModel for the VersionedModel matching
the version.getVersion in interface VersionService<StyleBookEntry,StyleBookEntryVersion>getVersion in interface StyleBookEntryLocalServicestyleBookEntry - the versioned modelversion - the versionPortalException - if the version does not existpublic java.util.List<StyleBookEntryVersion> getVersions(StyleBookEntry styleBookEntry)
VersionServiceVersionModels for the VersionedModel. They
are sorted in descending order.getVersions in interface VersionService<StyleBookEntry,StyleBookEntryVersion>getVersions in interface StyleBookEntryLocalServicestyleBookEntry - the versioned modelpublic StyleBookEntry publishDraft(StyleBookEntry draftStyleBookEntry) throws PortalException
VersionServiceVersionServiceListener that has been registered is notified.
An IllegalArgumentException is thrown if the versioned model is
not a draft.publishDraft in interface VersionService<StyleBookEntry,StyleBookEntryVersion>publishDraft in interface StyleBookEntryLocalServicedraftStyleBookEntry - the draft version modelPortalException - if a portal exception occurredpublic void registerListener(VersionServiceListener<StyleBookEntry,StyleBookEntryVersion> versionServiceListener)
VersionServiceVersionServiceListener.registerListener in interface VersionService<StyleBookEntry,StyleBookEntryVersion>registerListener in interface StyleBookEntryLocalServiceversionServiceListener - the version service listener to registerpublic void unregisterListener(VersionServiceListener<StyleBookEntry,StyleBookEntryVersion> versionServiceListener)
VersionServiceVersionServiceListener.unregisterListener in interface VersionService<StyleBookEntry,StyleBookEntryVersion>unregisterListener in interface StyleBookEntryLocalServiceversionServiceListener - the version service listener to unregisterpublic StyleBookEntry updateDefaultStyleBookEntry(long styleBookEntryId, boolean defaultStyleBookEntry) throws PortalException
updateDefaultStyleBookEntry in interface StyleBookEntryLocalServicePortalExceptionpublic StyleBookEntry updateDraft(StyleBookEntry draftStyleBookEntry) throws PortalException
VersionServiceVersionServiceListener that has been
registered is notified. An IllegalArgumentException is thrown if
the versioned model is not a draft.updateDraft in interface VersionService<StyleBookEntry,StyleBookEntryVersion>updateDraft in interface StyleBookEntryLocalServicedraftStyleBookEntry - the draft version modelPortalException - if a portal exception occurredpublic StyleBookEntry updateFrontendTokensValues(long styleBookEntryId, java.lang.String frontendTokensValues) throws PortalException
updateFrontendTokensValues in interface StyleBookEntryLocalServicePortalExceptionpublic StyleBookEntry updateName(long styleBookEntryId, java.lang.String name) throws PortalException
updateName in interface StyleBookEntryLocalServicePortalExceptionpublic StyleBookEntry updatePreviewFileEntryId(long styleBookEntryId, long previewFileEntryId) throws PortalException
updatePreviewFileEntryId in interface StyleBookEntryLocalServicePortalExceptionpublic StyleBookEntry updateStyleBookEntry(long styleBookEntryId, java.lang.String frontendTokensValues, java.lang.String name) throws PortalException
updateStyleBookEntry in interface StyleBookEntryLocalServicePortalExceptionpublic StyleBookEntry updateStyleBookEntry(StyleBookEntry draftStyleBookEntry) throws 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.
updateStyleBookEntry in interface StyleBookEntryLocalServicestyleBookEntry - the style book entryPortalExceptionpublic StyleBookEntryLocalService getWrappedService()
getWrappedService in interface ServiceWrapper<StyleBookEntryLocalService>public void setWrappedService(StyleBookEntryLocalService styleBookEntryLocalService)
setWrappedService in interface ServiceWrapper<StyleBookEntryLocalService>