@ProviderType @Transactional(isolation=PORTAL, rollbackFor={PortalException.class,SystemException.class}) public interface StyleBookEntryLocalService extends BaseLocalService, PersistedModelLocalService, VersionService<StyleBookEntry,StyleBookEntryVersion>
StyleBookEntryLocalServiceUtil| 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. |
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 |
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.
|
getBasePersistenceStyleBookEntry addStyleBookEntry(long userId, long groupId, java.lang.String name, java.lang.String styleBookEntryKey, ServiceContext serviceContext) throws PortalException
PortalExceptionStyleBookEntry addStyleBookEntry(long userId, long groupId, java.lang.String frontendTokensValues, java.lang.String name, java.lang.String styleBookEntryKey, ServiceContext serviceContext) throws PortalException
PortalException@Indexable(type=REINDEX) 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 entry@Indexable(type=REINDEX) 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>publishedStyleBookEntry - the published versioned modelversion - the versionVersionModel being checked outPortalException - if the version does not existStyleBookEntry copyStyleBookEntry(long userId, long groupId, long styleBookEntryId, ServiceContext serviceContext) throws PortalException
PortalException@Transactional(enabled=false) StyleBookEntry create()
create in interface VersionService<StyleBookEntry,StyleBookEntryVersion>PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj) throws PortalException
createPersistedModel in interface PersistedModelLocalServicePortalException@Indexable(type=DELETE) 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>publishedStyleBookEntry - the published versioned modelPortalException - if a portal exception occurred@Indexable(type=DELETE) 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>draftStyleBookEntry - the draft versioned modelPortalException - if a portal exception occurredPersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
deletePersistedModel in interface PersistedModelLocalServicePortalException@Indexable(type=DELETE) 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.
styleBookEntryId - the primary key of the style book entryPortalException - if a style book entry with the primary key could not be found@Indexable(type=DELETE) 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.
styleBookEntry - the style book entryPortalExceptionStyleBookEntryVersion 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>styleBookEntryVersion - the version modelPortalException - if a portal exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) <T> T dslQuery(DSLQuery dslQuery)
@Transactional(propagation=SUPPORTS, readOnly=true) DynamicQuery dynamicQuery()
@Transactional(propagation=SUPPORTS, readOnly=true) <T> java.util.List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery - the dynamic query@Transactional(propagation=SUPPORTS, readOnly=true) <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 - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)@Transactional(propagation=SUPPORTS, readOnly=true) <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 - 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)@Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQuery - the dynamic query@Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
dynamicQuery - the dynamic queryprojection - the projection to apply to the query@Transactional(propagation=SUPPORTS, readOnly=true) StyleBookEntry fetchDefaultStyleBookEntry(long groupId)
@Transactional(propagation=SUPPORTS, readOnly=true) StyleBookEntry fetchDraft(long primaryKey)
VersionServicenull.fetchDraft in interface VersionService<StyleBookEntry,StyleBookEntryVersion>primaryKey - the draft or published versioned model's primary keynull@Transactional(propagation=SUPPORTS, readOnly=true) StyleBookEntry fetchDraft(StyleBookEntry styleBookEntry)
VersionServicenull.fetchDraft in interface VersionService<StyleBookEntry,StyleBookEntryVersion>styleBookEntry - the draft or published versioned modelnull@Transactional(propagation=SUPPORTS, readOnly=true) StyleBookEntryVersion fetchLatestVersion(StyleBookEntry styleBookEntry)
VersionServicenull is returned.fetchLatestVersion in interface VersionService<StyleBookEntry,StyleBookEntryVersion>styleBookEntry - the versioned modelnull@Transactional(propagation=SUPPORTS, readOnly=true) StyleBookEntry fetchPublished(long primaryKey)
VersionServicenull.fetchPublished in interface VersionService<StyleBookEntry,StyleBookEntryVersion>primaryKey - the published versioned model's primary keynull@Transactional(propagation=SUPPORTS, readOnly=true) StyleBookEntry fetchPublished(StyleBookEntry styleBookEntry)
VersionServicenull is returned.fetchPublished in interface VersionService<StyleBookEntry,StyleBookEntryVersion>styleBookEntry - the versioned modelnull@Transactional(propagation=SUPPORTS, readOnly=true) StyleBookEntry fetchStyleBookEntry(long styleBookEntryId)
@Transactional(propagation=SUPPORTS, readOnly=true) StyleBookEntry fetchStyleBookEntry(long groupId, java.lang.String styleBookEntryKey)
java.lang.String generateStyleBookEntryKey(long groupId,
java.lang.String name)
@Transactional(propagation=SUPPORTS, readOnly=true) ActionableDynamicQuery getActionableDynamicQuery()
@Transactional(propagation=SUPPORTS, readOnly=true) StyleBookEntry getDraft(long primaryKey) throws PortalException
VersionServiceVersionServiceListener that has been
registered is notified.getDraft in interface VersionService<StyleBookEntry,StyleBookEntryVersion>primaryKey - of the draft or published versioned modelPortalException - if no draft or published versioned model exists
with the primary key@Transactional(propagation=SUPPORTS, readOnly=true) StyleBookEntry getDraft(StyleBookEntry styleBookEntry) throws PortalException
VersionServiceVersionServiceListener that has been registered is notified.getDraft in interface VersionService<StyleBookEntry,StyleBookEntryVersion>styleBookEntry - the versioned modelPortalException - if a portal exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
java.lang.String getOSGiServiceIdentifier()
@Transactional(propagation=SUPPORTS, readOnly=true) PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws PortalException
getPersistedModel in interface PersistedModelLocalServicePortalException@Transactional(propagation=SUPPORTS, readOnly=true) 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)@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<StyleBookEntry> getStyleBookEntries(long groupId, int start, int end, OrderByComparator<StyleBookEntry> orderByComparator)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<StyleBookEntry> getStyleBookEntries(long groupId, java.lang.String name, int start, int end, OrderByComparator<StyleBookEntry> orderByComparator)
@Transactional(propagation=SUPPORTS, readOnly=true) int getStyleBookEntriesCount()
@Transactional(propagation=SUPPORTS, readOnly=true) int getStyleBookEntriesCount(long groupId)
@Transactional(propagation=SUPPORTS, readOnly=true) int getStyleBookEntriesCount(long groupId, java.lang.String name)
@Transactional(propagation=SUPPORTS, readOnly=true) StyleBookEntry getStyleBookEntry(long styleBookEntryId) throws PortalException
styleBookEntryId - the primary key of the style book entryPortalException - if a style book entry with the primary key could not be found@Transactional(propagation=SUPPORTS, readOnly=true) StyleBookEntryVersion getVersion(StyleBookEntry styleBookEntry, int version) throws PortalException
VersionServiceVersionModel for the VersionedModel matching
the version.getVersion in interface VersionService<StyleBookEntry,StyleBookEntryVersion>styleBookEntry - the versioned modelversion - the versionPortalException - if the version does not exist@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<StyleBookEntryVersion> getVersions(StyleBookEntry styleBookEntry)
VersionServiceVersionModels for the VersionedModel. They
are sorted in descending order.getVersions in interface VersionService<StyleBookEntry,StyleBookEntryVersion>styleBookEntry - the versioned model@Indexable(type=REINDEX) 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>draftStyleBookEntry - the draft version modelPortalException - if a portal exception occurredvoid registerListener(VersionServiceListener<StyleBookEntry,StyleBookEntryVersion> versionServiceListener)
VersionServiceVersionServiceListener.registerListener in interface VersionService<StyleBookEntry,StyleBookEntryVersion>versionServiceListener - the version service listener to registervoid unregisterListener(VersionServiceListener<StyleBookEntry,StyleBookEntryVersion> versionServiceListener)
VersionServiceVersionServiceListener.unregisterListener in interface VersionService<StyleBookEntry,StyleBookEntryVersion>versionServiceListener - the version service listener to unregisterStyleBookEntry updateDefaultStyleBookEntry(long styleBookEntryId, boolean defaultStyleBookEntry) throws PortalException
PortalException@Indexable(type=REINDEX) 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>draftStyleBookEntry - the draft version modelPortalException - if a portal exception occurredStyleBookEntry updateFrontendTokensValues(long styleBookEntryId, java.lang.String frontendTokensValues) throws PortalException
PortalExceptionStyleBookEntry updateName(long styleBookEntryId, java.lang.String name) throws PortalException
PortalExceptionStyleBookEntry updatePreviewFileEntryId(long styleBookEntryId, long previewFileEntryId) throws PortalException
PortalExceptionStyleBookEntry updateStyleBookEntry(long styleBookEntryId, java.lang.String frontendTokensValues, java.lang.String name) throws PortalException
PortalException@Indexable(type=REINDEX) 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.
styleBookEntry - the style book entryPortalException