Class BlogsEntryLocalServiceUtil
com.liferay.blogs.service.impl.BlogsEntryLocalServiceImpl and
is an access point for service operations in application layer code running
on the local server. Methods of this service will not have security checks
based on the propagated JAAS credentials because this service can only be
accessed from within the same VM.- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.liferay.portal.kernel.repository.model.FileEntryaddAttachmentFileEntry(String externalReferenceCode, long userId, long groupId, String fileName, String mimeType, InputStream inputStream) static com.liferay.portal.kernel.repository.model.FolderaddAttachmentsFolder(long userId, long groupId) static BlogsEntryaddBlogsEntry(BlogsEntry blogsEntry) Adds the blogs entry to the database.static voidaddCoverImage(long entryId, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector imageSelector) static BlogsEntryaddEntry(long userId, String title, String content, com.liferay.portal.kernel.service.ServiceContext serviceContext) static BlogsEntryaddEntry(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) static BlogsEntryaddEntry(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) static BlogsEntryaddEntry(long userId, String title, String content, Date displayDate, com.liferay.portal.kernel.service.ServiceContext serviceContext) static BlogsEntryaddEntry(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) static BlogsEntryaddEntry(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) static voidaddEntryResources(long entryId, boolean addGroupPermissions, boolean addGuestPermissions) static voidaddEntryResources(long entryId, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) static voidaddEntryResources(BlogsEntry entry, boolean addGroupPermissions, boolean addGuestPermissions) static voidaddEntryResources(BlogsEntry entry, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) static longaddOriginalImageFileEntry(long userId, long groupId, long entryId, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector imageSelector) static voidaddSmallImage(long entryId, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector imageSelector) static voidstatic BlogsEntrycreateBlogsEntry(long entryId) Creates a new blogs entry with the primary key.static com.liferay.portal.kernel.model.PersistedModelcreatePersistedModel(Serializable primaryKeyObj) static voiddeleteAttachmentFileEntry(long fileEntryId) static BlogsEntrydeleteBlogsEntry(long entryId) Deletes the blogs entry with the primary key from the database.static BlogsEntrydeleteBlogsEntry(BlogsEntry blogsEntry) Deletes the blogs entry from the database.static voiddeleteEntries(long groupId) static voiddeleteEntry(long entryId) static BlogsEntrydeleteEntry(BlogsEntry entry) static com.liferay.portal.kernel.model.PersistedModeldeletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) static <T> TdslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) static intdslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) static com.liferay.portal.kernel.dao.orm.DynamicQuerystatic <T> List<T>dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.static <T> List<T>dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) Performs a dynamic query on the database and returns a range of the matching rows.static <T> List<T>dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) Performs a dynamic query on the database and returns an ordered range of the matching rows.static longdynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.static 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.static com.liferay.portal.kernel.repository.model.FolderfetchAttachmentsFolder(long userId, long groupId) static BlogsEntryfetchBlogsEntry(long entryId) static BlogsEntryfetchBlogsEntryByExternalReferenceCode(String externalReferenceCode, long groupId) static BlogsEntryfetchBlogsEntryByUuidAndGroupId(String uuid, long groupId) Returns the blogs entry matching the UUID and group.static BlogsEntryfetchEntry(long groupId, String urlTitle) static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuerystatic com.liferay.portal.kernel.repository.model.FileEntrygetAttachmentFileEntry(long fileEntryId) static com.liferay.portal.kernel.repository.model.FileEntrygetAttachmentFileEntryByExternalReferenceCode(String externalReferenceCode, long groupId) static List<BlogsEntry>getBlogsEntries(int start, int end) Returns a range of all the blogs entries.static List<BlogsEntry>getBlogsEntriesByUuidAndCompanyId(String uuid, long companyId) Returns all the blogs entries matching the UUID and company.static 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.static intReturns the number of blogs entries.static BlogsEntrygetBlogsEntry(long entryId) Returns the blogs entry with the primary key.static BlogsEntrygetBlogsEntryByExternalReferenceCode(String externalReferenceCode, long groupId) static BlogsEntrygetBlogsEntryByUuidAndGroupId(String uuid, long groupId) Returns the blogs entry matching the UUID and group.static List<BlogsEntry>getCompanyEntries(long companyId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) static intgetCompanyEntriesCount(long companyId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) static BlogsEntry[]getEntriesPrevAndNext(long entryId) static BlogsEntrygetEntry(long entryId) static BlogsEntrystatic com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuerygetExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) static List<BlogsEntry>getGroupEntries(long groupId, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) static List<BlogsEntry>getGroupEntries(long groupId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) static intgetGroupEntriesCount(long groupId, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) static intgetGroupEntriesCount(long groupId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) static List<BlogsEntry>getGroupsEntries(long companyId, long groupId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) static List<BlogsEntry>getGroupUserEntries(long groupId, long userId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) static intgetGroupUserEntriesCount(long groupId, long userId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuerystatic List<BlogsEntry>getOrganizationEntries(long organizationId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) static intgetOrganizationEntriesCount(long organizationId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) static StringReturns the OSGi service identifier.static com.liferay.portal.kernel.model.PersistedModelgetPersistedModel(Serializable primaryKeyObj) static BlogsEntryLocalServicestatic StringgetUniqueUrlTitle(BlogsEntry entry) static voidmoveEntriesToTrash(long groupId, long userId) static BlogsEntrymoveEntryToTrash(long userId, long entryId) Moves the blogs entry with the ID to the recycle bin.static BlogsEntrymoveEntryToTrash(long userId, BlogsEntry entry) Moves the blogs entry to the recycle bin.static BlogsEntryrestoreEntryFromTrash(long userId, long entryId) Restores the blogs entry with the ID from the recycle bin.static voidsubscribe(long userId, long groupId) static voidunsubscribe(long userId, long groupId) static voidupdateAsset(long userId, BlogsEntry entry, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds, Double priority) static BlogsEntryupdateBlogsEntry(BlogsEntry blogsEntry) Updates the blogs entry in the database or adds it if it does not yet exist.static BlogsEntryupdateEntry(long userId, long entryId, String title, String content, com.liferay.portal.kernel.service.ServiceContext serviceContext) static BlogsEntryupdateEntry(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) static BlogsEntryupdateEntry(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) static BlogsEntryupdateEntry(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) static BlogsEntryupdateEntry(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) static voidupdateEntryResources(BlogsEntry entry, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) static voidupdateEntryResources(BlogsEntry entry, String[] groupPermissions, String[] guestPermissions) static BlogsEntryupdateStatus(long userId, long entryId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext, Map<String, Serializable> workflowContext)
-
Constructor Details
-
BlogsEntryLocalServiceUtil
public BlogsEntryLocalServiceUtil()
-
-
Method Details
-
addAttachmentFileEntry
public static 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
public static 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
public static 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
public static 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
public static 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
public static 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
public static 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
public static 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
public static 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
public static void addEntryResources(BlogsEntry entry, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addEntryResources
public static 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
public static void addEntryResources(long entryId, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addEntryResources
public static 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
public static 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
public static 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
public static 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
public static com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteAttachmentFileEntry
public static 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
public static 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
public static void deleteEntries(long groupId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteEntry
public static BlogsEntry deleteEntry(BlogsEntry entry) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteEntry
public static void deleteEntry(long entryId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deletePersistedModel
public static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
dslQuery
public static <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) -
dslQueryCount
public static int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) -
dynamicQuery
public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() -
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Parameters:
dynamicQuery- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
public static <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
public static <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
public static 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
public static long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection) Returns the number of rows matching the dynamic query.- Parameters:
dynamicQuery- the dynamic queryprojection- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchAttachmentsFolder
public static com.liferay.portal.kernel.repository.model.Folder fetchAttachmentsFolder(long userId, long groupId) -
fetchBlogsEntry
-
fetchBlogsEntryByExternalReferenceCode
public static BlogsEntry fetchBlogsEntryByExternalReferenceCode(String externalReferenceCode, long groupId) -
fetchBlogsEntryByUuidAndGroupId
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
-
getActionableDynamicQuery
public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() -
getAttachmentFileEntry
public static 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
public static 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
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
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
public static 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
public static int getBlogsEntriesCount()Returns the number of blogs entries.- Returns:
- the number of blogs entries
-
getBlogsEntry
public static 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
public static BlogsEntry getBlogsEntryByExternalReferenceCode(String externalReferenceCode, long groupId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getBlogsEntryByUuidAndGroupId
public static 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
public static List<BlogsEntry> getCompanyEntries(long companyId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) -
getCompanyEntriesCount
public static int getCompanyEntriesCount(long companyId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) -
getEntriesPrevAndNext
public static BlogsEntry[] getEntriesPrevAndNext(long entryId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getEntry
public static BlogsEntry getEntry(long entryId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getEntry
public static BlogsEntry getEntry(long groupId, String urlTitle) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getExportActionableDynamicQuery
public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) -
getGroupEntries
public static List<BlogsEntry> getGroupEntries(long groupId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) -
getGroupEntries
public static List<BlogsEntry> getGroupEntries(long groupId, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) -
getGroupEntriesCount
public static int getGroupEntriesCount(long groupId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) -
getGroupEntriesCount
public static int getGroupEntriesCount(long groupId, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) -
getGroupsEntries
public static List<BlogsEntry> getGroupsEntries(long companyId, long groupId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) -
getGroupUserEntries
public static List<BlogsEntry> getGroupUserEntries(long groupId, long userId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) -
getGroupUserEntriesCount
public static int getGroupUserEntriesCount(long groupId, long userId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) -
getIndexableActionableDynamicQuery
public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() -
getOrganizationEntries
public static List<BlogsEntry> getOrganizationEntries(long organizationId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) -
getOrganizationEntriesCount
public static int getOrganizationEntriesCount(long organizationId, Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) -
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
getPersistedModel
public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getUniqueUrlTitle
-
moveEntriesToTrash
public static void moveEntriesToTrash(long groupId, long userId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
moveEntryToTrash
public static 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
public static 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
public static 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
public static void subscribe(long userId, long groupId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
unsubscribe
public static void unsubscribe(long userId, long groupId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateAsset
public static 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
public static 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
public static 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
public static 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
public static 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
public static 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
public static 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
public static void updateEntryResources(BlogsEntry entry, String[] groupPermissions, String[] guestPermissions) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateStatus
public static 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
-
getService
-