Class BlogsEntryLocalServiceWrapper
- All Implemented Interfaces:
BlogsEntryLocalService
,com.liferay.portal.kernel.service.BaseLocalService
,com.liferay.portal.kernel.service.change.tracking.CTService<BlogsEntry>
,com.liferay.portal.kernel.service.PersistedModelLocalService
,com.liferay.portal.kernel.service.ServiceWrapper<BlogsEntryLocalService>
BlogsEntryLocalService
.- See Also:
- Generated:
-
Constructor Summary
ConstructorsConstructorDescriptionBlogsEntryLocalServiceWrapper
(BlogsEntryLocalService blogsEntryLocalService) -
Method Summary
Modifier and TypeMethodDescriptioncom.liferay.portal.kernel.repository.model.FileEntry
addAttachmentFileEntry
(String externalReferenceCode, long userId, long groupId, String fileName, String mimeType, InputStream inputStream) com.liferay.portal.kernel.repository.model.Folder
addAttachmentsFolder
(long userId, long groupId) addBlogsEntry
(BlogsEntry blogsEntry) Adds the blogs entry to the database.void
addCoverImage
(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) void
addEntryResources
(long entryId, boolean addGroupPermissions, boolean addGuestPermissions) void
addEntryResources
(long entryId, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) void
addEntryResources
(BlogsEntry entry, boolean addGroupPermissions, boolean addGuestPermissions) void
addEntryResources
(BlogsEntry entry, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) long
addOriginalImageFileEntry
(long userId, long groupId, long entryId, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector imageSelector) void
addSmallImage
(long entryId, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector imageSelector) void
createBlogsEntry
(long entryId) Creates a new blogs entry with the primary key.com.liferay.portal.kernel.model.PersistedModel
createPersistedModel
(Serializable primaryKeyObj) void
deleteAttachmentFileEntry
(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.void
deleteEntries
(long groupId) void
deleteEntry
(long entryId) deleteEntry
(BlogsEntry entry) com.liferay.portal.kernel.model.PersistedModel
deletePersistedModel
(com.liferay.portal.kernel.model.PersistedModel persistedModel) <T> T
dslQuery
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) int
dslQueryCount
(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.long
dynamicQueryCount
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.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.com.liferay.portal.kernel.repository.model.Folder
fetchAttachmentsFolder
(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.ActionableDynamicQuery
com.liferay.portal.kernel.repository.model.FileEntry
getAttachmentFileEntry
(long fileEntryId) com.liferay.portal.kernel.repository.model.FileEntry
getAttachmentFileEntryByExternalReferenceCode
(String externalReferenceCode, long groupId) com.liferay.portal.kernel.service.persistence.BasePersistence<?>
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.int
Returns 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) int
getCompanyEntriesCount
(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.ExportActionableDynamicQuery
getExportActionableDynamicQuery
(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) int
getGroupEntriesCount
(long groupId, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) int
getGroupEntriesCount
(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) int
getGroupUserEntriesCount
(long groupId, long userId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery
getOrganizationEntries
(long organizationId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) int
getOrganizationEntriesCount
(long organizationId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) Returns the OSGi service identifier.com.liferay.portal.kernel.model.PersistedModel
getPersistedModel
(Serializable primaryKeyObj) getUniqueUrlTitle
(BlogsEntry entry) void
moveEntriesToTrash
(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.void
setWrappedService
(BlogsEntryLocalService blogsEntryLocalService) void
subscribe
(long userId, long groupId) void
unsubscribe
(long userId, long groupId) void
updateAsset
(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) void
updateEntryResources
(BlogsEntry entry, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) void
updateEntryResources
(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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
Constructor Details
-
BlogsEntryLocalServiceWrapper
public BlogsEntryLocalServiceWrapper() -
BlogsEntryLocalServiceWrapper
-
-
Method Details
-
addAttachmentFileEntry
public 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 - Specified by:
addAttachmentFileEntry
in interfaceBlogsEntryLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addAttachmentsFolder
public com.liferay.portal.kernel.repository.model.Folder addAttachmentsFolder(long userId, long groupId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addAttachmentsFolder
in interfaceBlogsEntryLocalService
- 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.
- Specified by:
addBlogsEntry
in interfaceBlogsEntryLocalService
- Parameters:
blogsEntry
- the blogs entry- Returns:
- the blogs entry that was added
-
addCoverImage
public void addCoverImage(long entryId, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector imageSelector) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addCoverImage
in interfaceBlogsEntryLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addEntry
public BlogsEntry addEntry(long userId, String title, String content, Date displayDate, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addEntry
in interfaceBlogsEntryLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addEntry
public BlogsEntry addEntry(long userId, String title, String content, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addEntry
in interfaceBlogsEntryLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addEntry
public 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 - Specified by:
addEntry
in interfaceBlogsEntryLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addEntry
public 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 - Specified by:
addEntry
in interfaceBlogsEntryLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addEntry
public 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 - Specified by:
addEntry
in interfaceBlogsEntryLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addEntry
public 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 - Specified by:
addEntry
in interfaceBlogsEntryLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addEntryResources
public void addEntryResources(BlogsEntry entry, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addEntryResources
in interfaceBlogsEntryLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addEntryResources
public void addEntryResources(BlogsEntry entry, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addEntryResources
in interfaceBlogsEntryLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addEntryResources
public void addEntryResources(long entryId, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addEntryResources
in interfaceBlogsEntryLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addEntryResources
public void addEntryResources(long entryId, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addEntryResources
in interfaceBlogsEntryLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addOriginalImageFileEntry
public long addOriginalImageFileEntry(long userId, long groupId, long entryId, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector imageSelector) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addOriginalImageFileEntry
in interfaceBlogsEntryLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addSmallImage
public void addSmallImage(long entryId, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector imageSelector) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addSmallImage
in interfaceBlogsEntryLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
checkEntries
public void checkEntries() throws com.liferay.portal.kernel.exception.PortalException- Specified by:
checkEntries
in interfaceBlogsEntryLocalService
- 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.- Specified by:
createBlogsEntry
in interfaceBlogsEntryLocalService
- Parameters:
entryId
- the primary key for the new blogs entry- Returns:
- the new blogs entry
-
createPersistedModel
public com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
createPersistedModel
in interfaceBlogsEntryLocalService
- Specified by:
createPersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
PortalException
com.liferay.portal.kernel.exception.PortalException
-
deleteAttachmentFileEntry
public void deleteAttachmentFileEntry(long fileEntryId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteAttachmentFileEntry
in interfaceBlogsEntryLocalService
- 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.
- Specified by:
deleteBlogsEntry
in interfaceBlogsEntryLocalService
- Parameters:
blogsEntry
- the blogs entry- Returns:
- the blogs entry that was removed
-
deleteBlogsEntry
public 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.
- Specified by:
deleteBlogsEntry
in interfaceBlogsEntryLocalService
- Parameters:
entryId
- the primary key of the blogs entry- Returns:
- the blogs entry that was removed
- Throws:
PortalException
- if a blogs entry with the primary key could not be foundcom.liferay.portal.kernel.exception.PortalException
-
deleteEntries
public void deleteEntries(long groupId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteEntries
in interfaceBlogsEntryLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteEntry
public BlogsEntry deleteEntry(BlogsEntry entry) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteEntry
in interfaceBlogsEntryLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteEntry
public void deleteEntry(long entryId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteEntry
in interfaceBlogsEntryLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deletePersistedModel
public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deletePersistedModel
in interfaceBlogsEntryLocalService
- Specified by:
deletePersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
PortalException
com.liferay.portal.kernel.exception.PortalException
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQuery
in interfaceBlogsEntryLocalService
- Specified by:
dslQuery
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfaceBlogsEntryLocalService
- Specified by:
dslQueryCount
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dynamicQuery
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()- Specified by:
dynamicQuery
in interfaceBlogsEntryLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQuery
in interfaceBlogsEntryLocalService
- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
public <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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.blogs.model.impl.BlogsEntryModelImpl
.- Specified by:
dynamicQuery
in interfaceBlogsEntryLocalService
- 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
public <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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.blogs.model.impl.BlogsEntryModelImpl
.- Specified by:
dynamicQuery
in interfaceBlogsEntryLocalService
- 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
public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCount
in interfaceBlogsEntryLocalService
- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
public 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.- Specified by:
dynamicQueryCount
in interfaceBlogsEntryLocalService
- Parameters:
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchAttachmentsFolder
public com.liferay.portal.kernel.repository.model.Folder fetchAttachmentsFolder(long userId, long groupId) - Specified by:
fetchAttachmentsFolder
in interfaceBlogsEntryLocalService
-
fetchBlogsEntry
- Specified by:
fetchBlogsEntry
in interfaceBlogsEntryLocalService
-
fetchBlogsEntryByExternalReferenceCode
public BlogsEntry fetchBlogsEntryByExternalReferenceCode(String externalReferenceCode, long groupId) - Specified by:
fetchBlogsEntryByExternalReferenceCode
in interfaceBlogsEntryLocalService
-
fetchBlogsEntryByUuidAndGroupId
Returns the blogs entry matching the UUID and group.- Specified by:
fetchBlogsEntryByUuidAndGroupId
in interfaceBlogsEntryLocalService
- Parameters:
uuid
- the blogs entry's UUIDgroupId
- the primary key of the group- Returns:
- the matching blogs entry, or
null
if a matching blogs entry could not be found
-
fetchEntry
- Specified by:
fetchEntry
in interfaceBlogsEntryLocalService
-
getActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()- Specified by:
getActionableDynamicQuery
in interfaceBlogsEntryLocalService
-
getAttachmentFileEntry
public com.liferay.portal.kernel.repository.model.FileEntry getAttachmentFileEntry(long fileEntryId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getAttachmentFileEntry
in interfaceBlogsEntryLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getAttachmentFileEntryByExternalReferenceCode
public com.liferay.portal.kernel.repository.model.FileEntry getAttachmentFileEntryByExternalReferenceCode(String externalReferenceCode, long groupId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getAttachmentFileEntryByExternalReferenceCode
in interfaceBlogsEntryLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getBlogsEntries
Returns a range of all the blogs entries.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.blogs.model.impl.BlogsEntryModelImpl
.- Specified by:
getBlogsEntries
in interfaceBlogsEntryLocalService
- 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
Returns all the blogs entries matching the UUID and company.- Specified by:
getBlogsEntriesByUuidAndCompanyId
in interfaceBlogsEntryLocalService
- 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
public 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.- Specified by:
getBlogsEntriesByUuidAndCompanyId
in interfaceBlogsEntryLocalService
- 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
public int getBlogsEntriesCount()Returns the number of blogs entries.- Specified by:
getBlogsEntriesCount
in interfaceBlogsEntryLocalService
- Returns:
- the number of blogs entries
-
getBlogsEntry
public BlogsEntry getBlogsEntry(long entryId) throws com.liferay.portal.kernel.exception.PortalException Returns the blogs entry with the primary key.- Specified by:
getBlogsEntry
in interfaceBlogsEntryLocalService
- Parameters:
entryId
- the primary key of the blogs entry- Returns:
- the blogs entry
- Throws:
PortalException
- if a blogs entry with the primary key could not be foundcom.liferay.portal.kernel.exception.PortalException
-
getBlogsEntryByExternalReferenceCode
public BlogsEntry getBlogsEntryByExternalReferenceCode(String externalReferenceCode, long groupId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getBlogsEntryByExternalReferenceCode
in interfaceBlogsEntryLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getBlogsEntryByUuidAndGroupId
public BlogsEntry getBlogsEntryByUuidAndGroupId(String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException Returns the blogs entry matching the UUID and group.- Specified by:
getBlogsEntryByUuidAndGroupId
in interfaceBlogsEntryLocalService
- Parameters:
uuid
- the blogs entry's UUIDgroupId
- the primary key of the group- Returns:
- the matching blogs entry
- Throws:
PortalException
- if a matching blogs entry could not be foundcom.liferay.portal.kernel.exception.PortalException
-
getCompanyEntries
public List<BlogsEntry> getCompanyEntries(long companyId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) - Specified by:
getCompanyEntries
in interfaceBlogsEntryLocalService
-
getCompanyEntriesCount
public int getCompanyEntriesCount(long companyId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) - Specified by:
getCompanyEntriesCount
in interfaceBlogsEntryLocalService
-
getEntriesPrevAndNext
public BlogsEntry[] getEntriesPrevAndNext(long entryId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getEntriesPrevAndNext
in interfaceBlogsEntryLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getEntry
- Specified by:
getEntry
in interfaceBlogsEntryLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getEntry
public BlogsEntry getEntry(long groupId, String urlTitle) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getEntry
in interfaceBlogsEntryLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getExportActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQuery
in interfaceBlogsEntryLocalService
-
getGroupEntries
public List<BlogsEntry> getGroupEntries(long groupId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) - Specified by:
getGroupEntries
in interfaceBlogsEntryLocalService
-
getGroupEntries
public List<BlogsEntry> getGroupEntries(long groupId, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) - Specified by:
getGroupEntries
in interfaceBlogsEntryLocalService
-
getGroupEntriesCount
public int getGroupEntriesCount(long groupId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) - Specified by:
getGroupEntriesCount
in interfaceBlogsEntryLocalService
-
getGroupEntriesCount
public int getGroupEntriesCount(long groupId, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) - Specified by:
getGroupEntriesCount
in interfaceBlogsEntryLocalService
-
getGroupsEntries
public List<BlogsEntry> getGroupsEntries(long companyId, long groupId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) - Specified by:
getGroupsEntries
in interfaceBlogsEntryLocalService
-
getGroupUserEntries
public List<BlogsEntry> getGroupUserEntries(long groupId, long userId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) - Specified by:
getGroupUserEntries
in interfaceBlogsEntryLocalService
-
getGroupUserEntriesCount
public int getGroupUserEntriesCount(long groupId, long userId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) - Specified by:
getGroupUserEntriesCount
in interfaceBlogsEntryLocalService
-
getIndexableActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()- Specified by:
getIndexableActionableDynamicQuery
in interfaceBlogsEntryLocalService
-
getOrganizationEntries
public List<BlogsEntry> getOrganizationEntries(long organizationId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) - Specified by:
getOrganizationEntries
in interfaceBlogsEntryLocalService
-
getOrganizationEntriesCount
public int getOrganizationEntriesCount(long organizationId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) - Specified by:
getOrganizationEntriesCount
in interfaceBlogsEntryLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfaceBlogsEntryLocalService
- Returns:
- the OSGi service identifier
-
getPersistedModel
public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getPersistedModel
in interfaceBlogsEntryLocalService
- Specified by:
getPersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
PortalException
com.liferay.portal.kernel.exception.PortalException
-
getUniqueUrlTitle
- Specified by:
getUniqueUrlTitle
in interfaceBlogsEntryLocalService
-
moveEntriesToTrash
public void moveEntriesToTrash(long groupId, long userId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
moveEntriesToTrash
in interfaceBlogsEntryLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
moveEntryToTrash
public 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.- Specified by:
moveEntryToTrash
in interfaceBlogsEntryLocalService
- 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
public BlogsEntry moveEntryToTrash(long userId, long entryId) throws com.liferay.portal.kernel.exception.PortalException Moves the blogs entry with the ID to the recycle bin.- Specified by:
moveEntryToTrash
in interfaceBlogsEntryLocalService
- 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
public 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.- Specified by:
restoreEntryFromTrash
in interfaceBlogsEntryLocalService
- 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
public void subscribe(long userId, long groupId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
subscribe
in interfaceBlogsEntryLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
unsubscribe
public void unsubscribe(long userId, long groupId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
unsubscribe
in interfaceBlogsEntryLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateAsset
public void updateAsset(long userId, BlogsEntry entry, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds, Double priority) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateAsset
in interfaceBlogsEntryLocalService
- 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.
- Specified by:
updateBlogsEntry
in interfaceBlogsEntryLocalService
- Parameters:
blogsEntry
- the blogs entry- Returns:
- the blogs entry that was updated
-
updateEntry
public BlogsEntry updateEntry(long userId, long entryId, String title, String content, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateEntry
in interfaceBlogsEntryLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateEntry
public 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 - Specified by:
updateEntry
in interfaceBlogsEntryLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateEntry
public 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 - Specified by:
updateEntry
in interfaceBlogsEntryLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateEntry
public 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 - Specified by:
updateEntry
in interfaceBlogsEntryLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateEntry
public 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 - Specified by:
updateEntry
in interfaceBlogsEntryLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateEntryResources
public void updateEntryResources(BlogsEntry entry, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateEntryResources
in interfaceBlogsEntryLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateEntryResources
public void updateEntryResources(BlogsEntry entry, String[] groupPermissions, String[] guestPermissions) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateEntryResources
in interfaceBlogsEntryLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateStatus
public 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- Specified by:
updateStatus
in interfaceBlogsEntryLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getBasePersistence
public com.liferay.portal.kernel.service.persistence.BasePersistence<?> getBasePersistence()- Specified by:
getBasePersistence
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
getCTPersistence
public com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<BlogsEntry> getCTPersistence()- Specified by:
getCTPersistence
in interfaceBlogsEntryLocalService
- Specified by:
getCTPersistence
in interfacecom.liferay.portal.kernel.service.change.tracking.CTService<BlogsEntry>
-
getModelClass
- Specified by:
getModelClass
in interfaceBlogsEntryLocalService
- Specified by:
getModelClass
in interfacecom.liferay.portal.kernel.service.change.tracking.CTService<BlogsEntry>
-
updateWithUnsafeFunction
public <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:
updateWithUnsafeFunction
in interfaceBlogsEntryLocalService
- Specified by:
updateWithUnsafeFunction
in interfacecom.liferay.portal.kernel.service.change.tracking.CTService<BlogsEntry>
- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedService
in interfacecom.liferay.portal.kernel.service.ServiceWrapper<BlogsEntryLocalService>
-
setWrappedService
- Specified by:
setWrappedService
in interfacecom.liferay.portal.kernel.service.ServiceWrapper<BlogsEntryLocalService>
-