Interface BlogsEntryLocalService
- All Superinterfaces:
com.liferay.portal.kernel.service.BaseLocalService,com.liferay.portal.kernel.service.change.tracking.CTService<BlogsEntry>,com.liferay.portal.kernel.service.PersistedModelLocalService
- All Known Implementing Classes:
BlogsEntryLocalServiceWrapper
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptioncom.liferay.portal.kernel.repository.model.FileEntryaddAttachmentFileEntry(String externalReferenceCode, long userId, long groupId, String fileName, String mimeType, InputStream inputStream) com.liferay.portal.kernel.repository.model.FolderaddAttachmentsFolder(long userId, long groupId) addBlogsEntry(BlogsEntry blogsEntry) Adds the blogs entry to the database.voidaddCoverImage(long entryId, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector imageSelector) addEntry(long userId, String title, String content, com.liferay.portal.kernel.service.ServiceContext serviceContext) addEntry(long userId, String title, String subtitle, String description, String content, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks, String[] trackbacks, String coverImageCaption, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector, com.liferay.portal.kernel.service.ServiceContext serviceContext) addEntry(long userId, String title, String subtitle, String description, String content, Date displayDate, boolean allowPingbacks, boolean allowTrackbacks, String[] trackbacks, String coverImageCaption, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector, com.liferay.portal.kernel.service.ServiceContext serviceContext) addEntry(long userId, String title, String content, Date displayDate, com.liferay.portal.kernel.service.ServiceContext serviceContext) addEntry(String externalReferenceCode, long userId, String title, String subtitle, String urlTitle, String description, String content, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks, String[] trackbacks, String coverImageCaption, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector, com.liferay.portal.kernel.service.ServiceContext serviceContext) addEntry(String externalReferenceCode, long userId, String title, String subtitle, String urlTitle, String description, String content, Date displayDate, boolean allowPingbacks, boolean allowTrackbacks, String[] trackbacks, String coverImageCaption, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector, com.liferay.portal.kernel.service.ServiceContext serviceContext) voidaddEntryResources(long entryId, boolean addGroupPermissions, boolean addGuestPermissions) voidaddEntryResources(long entryId, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) voidaddEntryResources(BlogsEntry entry, boolean addGroupPermissions, boolean addGuestPermissions) voidaddEntryResources(BlogsEntry entry, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) longaddOriginalImageFileEntry(long userId, long groupId, long entryId, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector imageSelector) voidaddSmallImage(long entryId, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector imageSelector) voidcreateBlogsEntry(long entryId) Creates a new blogs entry with the primary key.com.liferay.portal.kernel.model.PersistedModelcreatePersistedModel(Serializable primaryKeyObj) voiddeleteAttachmentFileEntry(long fileEntryId) deleteBlogsEntry(long entryId) Deletes the blogs entry with the primary key from the database.deleteBlogsEntry(BlogsEntry blogsEntry) Deletes the blogs entry from the database.voiddeleteEntries(long groupId) voiddeleteEntry(long entryId) deleteEntry(BlogsEntry entry) com.liferay.portal.kernel.model.PersistedModeldeletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) <T> TdslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) intdslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) com.liferay.portal.kernel.dao.orm.DynamicQuery<T> List<T>dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.<T> 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.<T> 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.longdynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.longdynamicQueryCount(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.com.liferay.portal.kernel.repository.model.FolderfetchAttachmentsFolder(long userId, long groupId) fetchBlogsEntry(long entryId) fetchBlogsEntryByExternalReferenceCode(String externalReferenceCode, long groupId) fetchBlogsEntryByUuidAndGroupId(String uuid, long groupId) Returns the blogs entry matching the UUID and group.fetchEntry(long groupId, String urlTitle) com.liferay.portal.kernel.dao.orm.ActionableDynamicQuerycom.liferay.portal.kernel.repository.model.FileEntrygetAttachmentFileEntry(long fileEntryId) com.liferay.portal.kernel.repository.model.FileEntrygetAttachmentFileEntryByExternalReferenceCode(String externalReferenceCode, long groupId) getBlogsEntries(int start, int end) Returns a range of all the blogs entries.getBlogsEntriesByUuidAndCompanyId(String uuid, long companyId) Returns all the blogs entries matching the UUID and company.getBlogsEntriesByUuidAndCompanyId(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<BlogsEntry> orderByComparator) Returns a range of blogs entries matching the UUID and company.intReturns the number of blogs entries.getBlogsEntry(long entryId) Returns the blogs entry with the primary key.getBlogsEntryByExternalReferenceCode(String externalReferenceCode, long groupId) getBlogsEntryByUuidAndGroupId(String uuid, long groupId) Returns the blogs entry matching the UUID and group.getCompanyEntries(long companyId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) intgetCompanyEntriesCount(long companyId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<BlogsEntry>getEntriesPrevAndNext(long entryId) getEntry(long entryId) com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuerygetExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) getGroupEntries(long groupId, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) getGroupEntries(long groupId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) intgetGroupEntriesCount(long groupId, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) intgetGroupEntriesCount(long groupId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) getGroupsEntries(long companyId, long groupId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) getGroupUserEntries(long groupId, long userId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) intgetGroupUserEntriesCount(long groupId, long userId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuerygetOrganizationEntries(long organizationId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) intgetOrganizationEntriesCount(long organizationId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) Returns the OSGi service identifier.com.liferay.portal.kernel.model.PersistedModelgetPersistedModel(Serializable primaryKeyObj) getUniqueUrlTitle(BlogsEntry entry) voidmoveEntriesToTrash(long groupId, long userId) moveEntryToTrash(long userId, long entryId) Moves the blogs entry with the ID to the recycle bin.moveEntryToTrash(long userId, BlogsEntry entry) Moves the blogs entry to the recycle bin.restoreEntryFromTrash(long userId, long entryId) Restores the blogs entry with the ID from the recycle bin.voidsubscribe(long userId, long groupId) voidunsubscribe(long userId, long groupId) voidupdateAsset(long userId, BlogsEntry entry, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds, Double priority) updateBlogsEntry(BlogsEntry blogsEntry) Updates the blogs entry in the database or adds it if it does not yet exist.updateEntry(long userId, long entryId, String title, String content, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateEntry(long userId, long entryId, String title, String subtitle, String description, String content, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks, String[] trackbacks, String coverImageCaption, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateEntry(long userId, long entryId, String title, String subtitle, String urlTitle, String description, String content, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks, String[] trackbacks, String coverImageCaption, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateEntry(long userId, long entryId, String title, String subtitle, String urlTitle, String description, String content, Date displayDate, boolean allowPingbacks, boolean allowTrackbacks, String[] trackbacks, String coverImageCaption, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateEntry(long userId, long entryId, String title, String subtitle, String description, String content, Date displayDate, boolean allowPingbacks, boolean allowTrackbacks, String[] trackbacks, String coverImageCaption, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector, com.liferay.portal.kernel.service.ServiceContext serviceContext) voidupdateEntryResources(BlogsEntry entry, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) voidupdateEntryResources(BlogsEntry entry, String[] groupPermissions, String[] guestPermissions) updateStatus(long userId, long entryId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext, Map<String, Serializable> workflowContext) <R,E extends Throwable>
RupdateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<BlogsEntry>, R, E> updateUnsafeFunction) Methods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel, getBasePersistence
-
Method Details
-
addAttachmentFileEntry
com.liferay.portal.kernel.repository.model.FileEntry addAttachmentFileEntry(String externalReferenceCode, long userId, long groupId, String fileName, String mimeType, InputStream inputStream) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addAttachmentsFolder
com.liferay.portal.kernel.repository.model.Folder addAttachmentsFolder(long userId, long groupId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addBlogsEntry
Adds the blogs entry to the database. Also notifies the appropriate model listeners.Important: Inspect BlogsEntryLocalServiceImpl 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.
- Parameters:
blogsEntry- the blogs entry- Returns:
- the blogs entry that was added
-
addCoverImage
void addCoverImage(long entryId, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector imageSelector) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addEntry
BlogsEntry addEntry(long userId, String title, String content, Date displayDate, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addEntry
BlogsEntry addEntry(long userId, String title, String content, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addEntry
@Indexable(type=REINDEX) BlogsEntry addEntry(long userId, String title, String subtitle, String description, String content, Date displayDate, boolean allowPingbacks, boolean allowTrackbacks, String[] trackbacks, String coverImageCaption, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addEntry
BlogsEntry addEntry(long userId, String title, String subtitle, String description, String content, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks, String[] trackbacks, String coverImageCaption, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addEntry
@Indexable(type=REINDEX) BlogsEntry addEntry(String externalReferenceCode, long userId, String title, String subtitle, String urlTitle, String description, String content, Date displayDate, boolean allowPingbacks, boolean allowTrackbacks, String[] trackbacks, String coverImageCaption, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addEntry
BlogsEntry addEntry(String externalReferenceCode, long userId, String title, String subtitle, String urlTitle, String description, String content, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks, String[] trackbacks, String coverImageCaption, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addEntryResources
void addEntryResources(BlogsEntry entry, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addEntryResources
void addEntryResources(BlogsEntry entry, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addEntryResources
void addEntryResources(long entryId, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addEntryResources
void addEntryResources(long entryId, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addOriginalImageFileEntry
long addOriginalImageFileEntry(long userId, long groupId, long entryId, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector imageSelector) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addSmallImage
void addSmallImage(long entryId, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector imageSelector) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
checkEntries
void checkEntries() throws com.liferay.portal.kernel.exception.PortalException- Throws:
com.liferay.portal.kernel.exception.PortalException
-
createBlogsEntry
Creates a new blogs entry with the primary key. Does not add the blogs entry to the database.- Parameters:
entryId- the primary key for the new blogs entry- Returns:
- the new blogs entry
-
createPersistedModel
com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
createPersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteAttachmentFileEntry
void deleteAttachmentFileEntry(long fileEntryId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteBlogsEntry
Deletes the blogs entry from the database. Also notifies the appropriate model listeners.Important: Inspect BlogsEntryLocalServiceImpl 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.
- Parameters:
blogsEntry- the blogs entry- Returns:
- the blogs entry that was removed
-
deleteBlogsEntry
@Indexable(type=DELETE) BlogsEntry deleteBlogsEntry(long entryId) throws com.liferay.portal.kernel.exception.PortalException Deletes the blogs entry with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect BlogsEntryLocalServiceImpl 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.
- Parameters:
entryId- the primary key of the blogs entry- Returns:
- the blogs entry that was removed
- Throws:
com.liferay.portal.kernel.exception.PortalException- if a blogs entry with the primary key could not be found
-
deleteEntries
void deleteEntries(long groupId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteEntry
@Indexable(type=DELETE) @SystemEvent(type=1) BlogsEntry deleteEntry(BlogsEntry entry) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteEntry
void deleteEntry(long entryId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deletePersistedModel
com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deletePersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
dslQuery
@Transactional(propagation=SUPPORTS, readOnly=true) <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dslQueryCount
@Transactional(propagation=SUPPORTS, readOnly=true) int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCountin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() -
dynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.- Parameters:
dynamicQuery- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) <T> 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.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.blogs.model.impl.BlogsEntryModelImpl.- Parameters:
dynamicQuery- the dynamic querystart- the lower bound of the range of model instancesend- the upper bound of the range of model instances (not inclusive)- Returns:
- the range of matching rows
-
dynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) <T> 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.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.blogs.model.impl.BlogsEntryModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of matching rows
-
dynamicQueryCount
@Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.- Parameters:
dynamicQuery- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
@Transactional(propagation=SUPPORTS, readOnly=true) 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.- Parameters:
dynamicQuery- the dynamic queryprojection- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchAttachmentsFolder
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.repository.model.Folder fetchAttachmentsFolder(long userId, long groupId) -
fetchBlogsEntry
-
fetchBlogsEntryByExternalReferenceCode
@Transactional(propagation=SUPPORTS, readOnly=true) BlogsEntry fetchBlogsEntryByExternalReferenceCode(String externalReferenceCode, long groupId) -
fetchBlogsEntryByUuidAndGroupId
@Transactional(propagation=SUPPORTS, readOnly=true) BlogsEntry fetchBlogsEntryByUuidAndGroupId(String uuid, long groupId) Returns the blogs entry matching the UUID and group.- Parameters:
uuid- the blogs entry's UUIDgroupId- the primary key of the group- Returns:
- the matching blogs entry, or
nullif a matching blogs entry could not be found
-
fetchEntry
@Transactional(propagation=SUPPORTS, readOnly=true) BlogsEntry fetchEntry(long groupId, String urlTitle) -
getActionableDynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() -
getAttachmentFileEntry
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.repository.model.FileEntry getAttachmentFileEntry(long fileEntryId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getAttachmentFileEntryByExternalReferenceCode
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.repository.model.FileEntry getAttachmentFileEntryByExternalReferenceCode(String externalReferenceCode, long groupId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getBlogsEntries
@Transactional(propagation=SUPPORTS, readOnly=true) List<BlogsEntry> getBlogsEntries(int start, int end) Returns a range of all the blogs entries.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.blogs.model.impl.BlogsEntryModelImpl.- Parameters:
start- the lower bound of the range of blogs entriesend- the upper bound of the range of blogs entries (not inclusive)- Returns:
- the range of blogs entries
-
getBlogsEntriesByUuidAndCompanyId
@Transactional(propagation=SUPPORTS, readOnly=true) List<BlogsEntry> getBlogsEntriesByUuidAndCompanyId(String uuid, long companyId) Returns all the blogs entries matching the UUID and company.- Parameters:
uuid- the UUID of the blogs entriescompanyId- the primary key of the company- Returns:
- the matching blogs entries, or an empty list if no matches were found
-
getBlogsEntriesByUuidAndCompanyId
@Transactional(propagation=SUPPORTS, readOnly=true) List<BlogsEntry> getBlogsEntriesByUuidAndCompanyId(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<BlogsEntry> orderByComparator) Returns a range of blogs entries matching the UUID and company.- Parameters:
uuid- the UUID of the blogs entriescompanyId- the primary key of the companystart- the lower bound of the range of blogs entriesend- the upper bound of the range of blogs entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the range of matching blogs entries, or an empty list if no matches were found
-
getBlogsEntriesCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getBlogsEntriesCount()Returns the number of blogs entries.- Returns:
- the number of blogs entries
-
getBlogsEntry
@Transactional(propagation=SUPPORTS, readOnly=true) BlogsEntry getBlogsEntry(long entryId) throws com.liferay.portal.kernel.exception.PortalException Returns the blogs entry with the primary key.- Parameters:
entryId- the primary key of the blogs entry- Returns:
- the blogs entry
- Throws:
com.liferay.portal.kernel.exception.PortalException- if a blogs entry with the primary key could not be found
-
getBlogsEntryByExternalReferenceCode
@Transactional(propagation=SUPPORTS, readOnly=true) BlogsEntry getBlogsEntryByExternalReferenceCode(String externalReferenceCode, long groupId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getBlogsEntryByUuidAndGroupId
@Transactional(propagation=SUPPORTS, readOnly=true) BlogsEntry getBlogsEntryByUuidAndGroupId(String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException Returns the blogs entry matching the UUID and group.- Parameters:
uuid- the blogs entry's UUIDgroupId- the primary key of the group- Returns:
- the matching blogs entry
- Throws:
com.liferay.portal.kernel.exception.PortalException- if a matching blogs entry could not be found
-
getCompanyEntries
@Transactional(propagation=SUPPORTS, readOnly=true) List<BlogsEntry> getCompanyEntries(long companyId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) -
getCompanyEntriesCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getCompanyEntriesCount(long companyId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) -
getEntriesPrevAndNext
@Transactional(propagation=SUPPORTS, readOnly=true) BlogsEntry[] getEntriesPrevAndNext(long entryId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getEntry
@Transactional(propagation=SUPPORTS, readOnly=true) BlogsEntry getEntry(long entryId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getEntry
@Transactional(propagation=SUPPORTS, readOnly=true) BlogsEntry getEntry(long groupId, String urlTitle) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getExportActionableDynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) -
getGroupEntries
@Transactional(propagation=SUPPORTS, readOnly=true) List<BlogsEntry> getGroupEntries(long groupId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) -
getGroupEntries
@Transactional(propagation=SUPPORTS, readOnly=true) List<BlogsEntry> getGroupEntries(long groupId, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) -
getGroupEntriesCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getGroupEntriesCount(long groupId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) -
getGroupEntriesCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getGroupEntriesCount(long groupId, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) -
getGroupsEntries
@Transactional(propagation=SUPPORTS, readOnly=true) List<BlogsEntry> getGroupsEntries(long companyId, long groupId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) -
getGroupUserEntries
@Transactional(propagation=SUPPORTS, readOnly=true) List<BlogsEntry> getGroupUserEntries(long groupId, long userId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) -
getGroupUserEntriesCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getGroupUserEntriesCount(long groupId, long userId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) -
getIndexableActionableDynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() -
getOrganizationEntries
@Transactional(propagation=SUPPORTS, readOnly=true) List<BlogsEntry> getOrganizationEntries(long organizationId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) -
getOrganizationEntriesCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getOrganizationEntriesCount(long organizationId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) -
getOSGiServiceIdentifier
String getOSGiServiceIdentifier()Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
getPersistedModel
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getPersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getUniqueUrlTitle
-
moveEntriesToTrash
void moveEntriesToTrash(long groupId, long userId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
moveEntryToTrash
@Indexable(type=REINDEX) BlogsEntry moveEntryToTrash(long userId, BlogsEntry entry) throws com.liferay.portal.kernel.exception.PortalException Moves the blogs entry to the recycle bin. Social activity counters for this entry get disabled.- Parameters:
userId- the primary key of the user moving the blogs entryentry- the blogs entry to be moved- Returns:
- the moved blogs entry
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
moveEntryToTrash
BlogsEntry moveEntryToTrash(long userId, long entryId) throws com.liferay.portal.kernel.exception.PortalException Moves the blogs entry with the ID to the recycle bin.- Parameters:
userId- the primary key of the user moving the blogs entryentryId- the primary key of the blogs entry to be moved- Returns:
- the moved blogs entry
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
restoreEntryFromTrash
@Indexable(type=REINDEX) BlogsEntry restoreEntryFromTrash(long userId, long entryId) throws com.liferay.portal.kernel.exception.PortalException Restores the blogs entry with the ID from the recycle bin. Social activity counters for this entry get activated.- Parameters:
userId- the primary key of the user restoring the blogs entryentryId- the primary key of the blogs entry to be restored- Returns:
- the restored blogs entry from the recycle bin
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
subscribe
void subscribe(long userId, long groupId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
unsubscribe
void unsubscribe(long userId, long groupId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateAsset
void updateAsset(long userId, BlogsEntry entry, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds, Double priority) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateBlogsEntry
Updates the blogs entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect BlogsEntryLocalServiceImpl 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.
- Parameters:
blogsEntry- the blogs entry- Returns:
- the blogs entry that was updated
-
updateEntry
BlogsEntry updateEntry(long userId, long entryId, String title, String content, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateEntry
@Indexable(type=REINDEX) BlogsEntry updateEntry(long userId, long entryId, String title, String subtitle, String description, String content, Date displayDate, boolean allowPingbacks, boolean allowTrackbacks, String[] trackbacks, String coverImageCaption, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateEntry
BlogsEntry updateEntry(long userId, long entryId, String title, String subtitle, String description, String content, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks, String[] trackbacks, String coverImageCaption, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateEntry
@Indexable(type=REINDEX) BlogsEntry updateEntry(long userId, long entryId, String title, String subtitle, String urlTitle, String description, String content, Date displayDate, boolean allowPingbacks, boolean allowTrackbacks, String[] trackbacks, String coverImageCaption, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateEntry
BlogsEntry updateEntry(long userId, long entryId, String title, String subtitle, String urlTitle, String description, String content, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks, String[] trackbacks, String coverImageCaption, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector coverImageImageSelector, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector smallImageImageSelector, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateEntryResources
void updateEntryResources(BlogsEntry entry, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateEntryResources
void updateEntryResources(BlogsEntry entry, String[] groupPermissions, String[] guestPermissions) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateStatus
@Indexable(type=REINDEX) BlogsEntry updateStatus(long userId, long entryId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext, Map<String, Serializable> workflowContext) throws com.liferay.portal.kernel.exception.PortalException- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCTPersistence
@Transactional(enabled=false) com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<BlogsEntry> getCTPersistence()- Specified by:
getCTPersistencein interfacecom.liferay.portal.kernel.service.change.tracking.CTService<BlogsEntry>
-
getModelClass
- Specified by:
getModelClassin interfacecom.liferay.portal.kernel.service.change.tracking.CTService<BlogsEntry>
-
updateWithUnsafeFunction
@Transactional(rollbackFor=java.lang.Throwable.class) <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<BlogsEntry>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunctionin interfacecom.liferay.portal.kernel.service.change.tracking.CTService<BlogsEntry>- Throws:
E extends Throwable
-