@ProviderType
@Transactional(isolation=PORTAL,
rollbackFor={com.liferay.portal.kernel.exception.PortalException.class,com.liferay.portal.kernel.exception.SystemException.class})
public interface BlogsEntryLocalService
extends com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.PersistedModelLocalService
BlogsEntryLocalServiceUtil
Modifier and Type | Method and Description |
---|---|
com.liferay.portal.kernel.repository.model.FileEntry |
addAttachmentFileEntry(BlogsEntry blogsEntry,
long userId,
java.lang.String fileName,
java.lang.String mimeType,
java.io.InputStream inputStream) |
com.liferay.portal.kernel.repository.model.Folder |
addAttachmentsFolder(long userId,
long groupId) |
BlogsEntry |
addBlogsEntry(BlogsEntry blogsEntry)
Adds the blogs entry to the database.
|
void |
addCoverImage(long entryId,
com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector imageSelector) |
BlogsEntry |
addEntry(long userId,
java.lang.String title,
java.lang.String content,
java.util.Date displayDate,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
BlogsEntry |
addEntry(long userId,
java.lang.String title,
java.lang.String content,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
BlogsEntry |
addEntry(long userId,
java.lang.String title,
java.lang.String subtitle,
java.lang.String description,
java.lang.String content,
java.util.Date displayDate,
boolean allowPingbacks,
boolean allowTrackbacks,
java.lang.String[] trackbacks,
java.lang.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) |
BlogsEntry |
addEntry(long userId,
java.lang.String title,
java.lang.String subtitle,
java.lang.String description,
java.lang.String content,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
boolean allowPingbacks,
boolean allowTrackbacks,
java.lang.String[] trackbacks,
java.lang.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) |
BlogsEntry |
addEntry(long userId,
java.lang.String title,
java.lang.String subtitle,
java.lang.String urlTitle,
java.lang.String description,
java.lang.String content,
java.util.Date displayDate,
boolean allowPingbacks,
boolean allowTrackbacks,
java.lang.String[] trackbacks,
java.lang.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) |
BlogsEntry |
addEntry(long userId,
java.lang.String title,
java.lang.String subtitle,
java.lang.String urlTitle,
java.lang.String description,
java.lang.String content,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
boolean allowPingbacks,
boolean allowTrackbacks,
java.lang.String[] trackbacks,
java.lang.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(BlogsEntry entry,
boolean addGroupPermissions,
boolean addGuestPermissions) |
void |
addEntryResources(BlogsEntry entry,
com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) |
void |
addEntryResources(long entryId,
boolean addGroupPermissions,
boolean addGuestPermissions) |
void |
addEntryResources(long entryId,
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 |
checkEntries() |
BlogsEntry |
createBlogsEntry(long entryId)
Creates a new blogs entry with the primary key.
|
com.liferay.portal.kernel.model.PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
BlogsEntry |
deleteBlogsEntry(BlogsEntry blogsEntry)
Deletes the blogs entry from the database.
|
BlogsEntry |
deleteBlogsEntry(long entryId)
Deletes the blogs entry with the primary key from the database.
|
void |
deleteEntries(long groupId) |
BlogsEntry |
deleteEntry(BlogsEntry entry) |
void |
deleteEntry(long entryId) |
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 |
dynamicQuery() |
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
<T> java.util.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> java.util.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) |
BlogsEntry |
fetchBlogsEntry(long entryId) |
BlogsEntry |
fetchBlogsEntryByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the blogs entry matching the UUID and group.
|
BlogsEntry |
fetchEntry(long groupId,
java.lang.String urlTitle) |
com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
java.util.List<BlogsEntry> |
getBlogsEntries(int start,
int end)
Returns a range of all the blogs entries.
|
java.util.List<BlogsEntry> |
getBlogsEntriesByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns all the blogs entries matching the UUID and company.
|
java.util.List<BlogsEntry> |
getBlogsEntriesByUuidAndCompanyId(java.lang.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 |
getBlogsEntriesCount()
Returns the number of blogs entries.
|
BlogsEntry |
getBlogsEntry(long entryId)
Returns the blogs entry with the primary key.
|
BlogsEntry |
getBlogsEntryByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the blogs entry matching the UUID and group.
|
java.util.List<BlogsEntry> |
getCompanyEntries(long companyId,
java.util.Date displayDate,
com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) |
int |
getCompanyEntriesCount(long companyId,
java.util.Date displayDate,
com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) |
BlogsEntry[] |
getEntriesPrevAndNext(long entryId) |
BlogsEntry |
getEntry(long entryId) |
BlogsEntry |
getEntry(long groupId,
java.lang.String urlTitle) |
com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery |
getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) |
java.util.List<BlogsEntry> |
getGroupEntries(long groupId,
java.util.Date displayDate,
com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) |
java.util.List<BlogsEntry> |
getGroupEntries(long groupId,
com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) |
int |
getGroupEntriesCount(long groupId,
java.util.Date displayDate,
com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) |
int |
getGroupEntriesCount(long groupId,
com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) |
java.util.List<BlogsEntry> |
getGroupsEntries(long companyId,
long groupId,
java.util.Date displayDate,
com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) |
java.util.List<BlogsEntry> |
getGroupUserEntries(long groupId,
long userId,
java.util.Date displayDate,
com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) |
int |
getGroupUserEntriesCount(long groupId,
long userId,
java.util.Date displayDate,
com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) |
com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
java.util.List<BlogsEntry> |
getOrganizationEntries(long organizationId,
java.util.Date displayDate,
com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) |
int |
getOrganizationEntriesCount(long organizationId,
java.util.Date displayDate,
com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition) |
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
java.lang.String |
getUniqueUrlTitle(BlogsEntry entry) |
void |
moveEntriesToTrash(long groupId,
long userId) |
BlogsEntry |
moveEntryToTrash(long userId,
BlogsEntry entry)
Moves the blogs entry to the recycle bin.
|
BlogsEntry |
moveEntryToTrash(long userId,
long entryId)
Moves the blogs entry with the ID to the recycle bin.
|
BlogsEntry |
restoreEntryFromTrash(long userId,
long entryId)
Restores the blogs entry with the ID from the recycle bin.
|
void |
subscribe(long userId,
long groupId) |
void |
unsubscribe(long userId,
long groupId) |
void |
updateAsset(long userId,
BlogsEntry entry,
long[] assetCategoryIds,
java.lang.String[] assetTagNames,
long[] assetLinkEntryIds,
java.lang.Double priority) |
BlogsEntry |
updateBlogsEntry(BlogsEntry blogsEntry)
Updates the blogs entry in the database or adds it if it does not yet exist.
|
BlogsEntry |
updateEntry(long userId,
long entryId,
java.lang.String title,
java.lang.String content,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
BlogsEntry |
updateEntry(long userId,
long entryId,
java.lang.String title,
java.lang.String subtitle,
java.lang.String description,
java.lang.String content,
java.util.Date displayDate,
boolean allowPingbacks,
boolean allowTrackbacks,
java.lang.String[] trackbacks,
java.lang.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) |
BlogsEntry |
updateEntry(long userId,
long entryId,
java.lang.String title,
java.lang.String subtitle,
java.lang.String description,
java.lang.String content,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
boolean allowPingbacks,
boolean allowTrackbacks,
java.lang.String[] trackbacks,
java.lang.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) |
BlogsEntry |
updateEntry(long userId,
long entryId,
java.lang.String title,
java.lang.String subtitle,
java.lang.String urlTitle,
java.lang.String description,
java.lang.String content,
java.util.Date displayDate,
boolean allowPingbacks,
boolean allowTrackbacks,
java.lang.String[] trackbacks,
java.lang.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) |
BlogsEntry |
updateEntry(long userId,
long entryId,
java.lang.String title,
java.lang.String subtitle,
java.lang.String urlTitle,
java.lang.String description,
java.lang.String content,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
boolean allowPingbacks,
boolean allowTrackbacks,
java.lang.String[] trackbacks,
java.lang.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,
java.lang.String[] groupPermissions,
java.lang.String[] guestPermissions) |
BlogsEntry |
updateStatus(long userId,
long entryId,
int status,
com.liferay.portal.kernel.service.ServiceContext serviceContext,
java.util.Map<java.lang.String,java.io.Serializable> workflowContext) |
com.liferay.portal.kernel.repository.model.FileEntry addAttachmentFileEntry(BlogsEntry blogsEntry, long userId, java.lang.String fileName, java.lang.String mimeType, java.io.InputStream inputStream) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.repository.model.Folder addAttachmentsFolder(long userId, long groupId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=REINDEX) BlogsEntry addBlogsEntry(BlogsEntry blogsEntry)
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.
blogsEntry
- the blogs entryvoid addCoverImage(long entryId, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector imageSelector) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
BlogsEntry addEntry(long userId, java.lang.String title, java.lang.String content, java.util.Date displayDate, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
BlogsEntry addEntry(long userId, java.lang.String title, java.lang.String content, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=REINDEX) BlogsEntry addEntry(long userId, java.lang.String title, java.lang.String subtitle, java.lang.String description, java.lang.String content, java.util.Date displayDate, boolean allowPingbacks, boolean allowTrackbacks, java.lang.String[] trackbacks, java.lang.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
com.liferay.portal.kernel.exception.PortalException
BlogsEntry addEntry(long userId, java.lang.String title, java.lang.String subtitle, java.lang.String description, java.lang.String content, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks, java.lang.String[] trackbacks, java.lang.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
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=REINDEX) BlogsEntry addEntry(long userId, java.lang.String title, java.lang.String subtitle, java.lang.String urlTitle, java.lang.String description, java.lang.String content, java.util.Date displayDate, boolean allowPingbacks, boolean allowTrackbacks, java.lang.String[] trackbacks, java.lang.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
com.liferay.portal.kernel.exception.PortalException
BlogsEntry addEntry(long userId, java.lang.String title, java.lang.String subtitle, java.lang.String urlTitle, java.lang.String description, java.lang.String content, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks, java.lang.String[] trackbacks, java.lang.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
com.liferay.portal.kernel.exception.PortalException
void addEntryResources(BlogsEntry entry, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
void addEntryResources(BlogsEntry entry, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
void addEntryResources(long entryId, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
void addEntryResources(long entryId, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
long addOriginalImageFileEntry(long userId, long groupId, long entryId, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector imageSelector) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
void addSmallImage(long entryId, com.liferay.portal.kernel.servlet.taglib.ui.ImageSelector imageSelector) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
void checkEntries() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Transactional(enabled=false) BlogsEntry createBlogsEntry(long entryId)
entryId
- the primary key for the new blogs entrycom.liferay.portal.kernel.model.PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
createPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=DELETE) BlogsEntry deleteBlogsEntry(BlogsEntry blogsEntry)
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.
blogsEntry
- the blogs entry@Indexable(type=DELETE) BlogsEntry deleteBlogsEntry(long entryId) throws com.liferay.portal.kernel.exception.PortalException
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.
entryId
- the primary key of the blogs entrycom.liferay.portal.kernel.exception.PortalException
- if a blogs entry with the primary key could not be foundvoid deleteEntries(long groupId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=DELETE) @SystemEvent(type=1) BlogsEntry deleteEntry(BlogsEntry entry) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
void deleteEntry(long entryId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
deletePersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
com.liferay.portal.kernel.exception.PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
@Transactional(propagation=SUPPORTS, readOnly=true) int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
@Transactional(propagation=SUPPORTS, readOnly=true) <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic query@Transactional(propagation=SUPPORTS, readOnly=true) <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from com.liferay.blogs.model.impl.BlogsEntryModelImpl
.
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)@Transactional(propagation=SUPPORTS, readOnly=true) <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from com.liferay.blogs.model.impl.BlogsEntryModelImpl
.
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)@Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic query@Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.repository.model.Folder fetchAttachmentsFolder(long userId, long groupId)
@Transactional(propagation=SUPPORTS, readOnly=true) BlogsEntry fetchBlogsEntry(long entryId)
@Transactional(propagation=SUPPORTS, readOnly=true) BlogsEntry fetchBlogsEntryByUuidAndGroupId(java.lang.String uuid, long groupId)
uuid
- the blogs entry's UUIDgroupId
- the primary key of the groupnull
if a matching blogs entry could not be found@Transactional(propagation=SUPPORTS, readOnly=true) BlogsEntry fetchEntry(long groupId, java.lang.String urlTitle)
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<BlogsEntry> getBlogsEntries(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from com.liferay.blogs.model.impl.BlogsEntryModelImpl
.
start
- the lower bound of the range of blogs entriesend
- the upper bound of the range of blogs entries (not inclusive)@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<BlogsEntry> getBlogsEntriesByUuidAndCompanyId(java.lang.String uuid, long companyId)
uuid
- the UUID of the blogs entriescompanyId
- the primary key of the company@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<BlogsEntry> getBlogsEntriesByUuidAndCompanyId(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<BlogsEntry> orderByComparator)
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 (optionally null
)@Transactional(propagation=SUPPORTS, readOnly=true) int getBlogsEntriesCount()
@Transactional(propagation=SUPPORTS, readOnly=true) BlogsEntry getBlogsEntry(long entryId) throws com.liferay.portal.kernel.exception.PortalException
entryId
- the primary key of the blogs entrycom.liferay.portal.kernel.exception.PortalException
- if a blogs entry with the primary key could not be found@Transactional(propagation=SUPPORTS, readOnly=true) BlogsEntry getBlogsEntryByUuidAndGroupId(java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
uuid
- the blogs entry's UUIDgroupId
- the primary key of the groupcom.liferay.portal.kernel.exception.PortalException
- if a matching blogs entry could not be found@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<BlogsEntry> getCompanyEntries(long companyId, java.util.Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition)
@Transactional(propagation=SUPPORTS, readOnly=true) int getCompanyEntriesCount(long companyId, java.util.Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition)
@Transactional(propagation=SUPPORTS, readOnly=true) BlogsEntry[] getEntriesPrevAndNext(long entryId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) BlogsEntry getEntry(long entryId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) BlogsEntry getEntry(long groupId, java.lang.String urlTitle) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<BlogsEntry> getGroupEntries(long groupId, java.util.Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<BlogsEntry> getGroupEntries(long groupId, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition)
@Transactional(propagation=SUPPORTS, readOnly=true) int getGroupEntriesCount(long groupId, java.util.Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition)
@Transactional(propagation=SUPPORTS, readOnly=true) int getGroupEntriesCount(long groupId, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<BlogsEntry> getGroupsEntries(long companyId, long groupId, java.util.Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<BlogsEntry> getGroupUserEntries(long groupId, long userId, java.util.Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition)
@Transactional(propagation=SUPPORTS, readOnly=true) int getGroupUserEntriesCount(long groupId, long userId, java.util.Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition)
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<BlogsEntry> getOrganizationEntries(long organizationId, java.util.Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition)
@Transactional(propagation=SUPPORTS, readOnly=true) int getOrganizationEntriesCount(long organizationId, java.util.Date displayDate, com.liferay.portal.kernel.dao.orm.QueryDefinition<BlogsEntry> queryDefinition)
java.lang.String getOSGiServiceIdentifier()
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
com.liferay.portal.kernel.exception.PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) java.lang.String getUniqueUrlTitle(BlogsEntry entry)
void moveEntriesToTrash(long groupId, long userId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=REINDEX) BlogsEntry moveEntryToTrash(long userId, BlogsEntry entry) throws com.liferay.portal.kernel.exception.PortalException
userId
- the primary key of the user moving the blogs entryentry
- the blogs entry to be movedcom.liferay.portal.kernel.exception.PortalException
BlogsEntry moveEntryToTrash(long userId, long entryId) throws com.liferay.portal.kernel.exception.PortalException
userId
- the primary key of the user moving the blogs entryentryId
- the primary key of the blogs entry to be movedcom.liferay.portal.kernel.exception.PortalException
@Indexable(type=REINDEX) BlogsEntry restoreEntryFromTrash(long userId, long entryId) throws com.liferay.portal.kernel.exception.PortalException
userId
- the primary key of the user restoring the blogs entryentryId
- the primary key of the blogs entry to be restoredcom.liferay.portal.kernel.exception.PortalException
void subscribe(long userId, long groupId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
void unsubscribe(long userId, long groupId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
void updateAsset(long userId, BlogsEntry entry, long[] assetCategoryIds, java.lang.String[] assetTagNames, long[] assetLinkEntryIds, java.lang.Double priority) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=REINDEX) BlogsEntry updateBlogsEntry(BlogsEntry blogsEntry)
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.
blogsEntry
- the blogs entryBlogsEntry updateEntry(long userId, long entryId, java.lang.String title, java.lang.String content, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=REINDEX) BlogsEntry updateEntry(long userId, long entryId, java.lang.String title, java.lang.String subtitle, java.lang.String description, java.lang.String content, java.util.Date displayDate, boolean allowPingbacks, boolean allowTrackbacks, java.lang.String[] trackbacks, java.lang.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
com.liferay.portal.kernel.exception.PortalException
BlogsEntry updateEntry(long userId, long entryId, java.lang.String title, java.lang.String subtitle, java.lang.String description, java.lang.String content, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks, java.lang.String[] trackbacks, java.lang.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
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=REINDEX) BlogsEntry updateEntry(long userId, long entryId, java.lang.String title, java.lang.String subtitle, java.lang.String urlTitle, java.lang.String description, java.lang.String content, java.util.Date displayDate, boolean allowPingbacks, boolean allowTrackbacks, java.lang.String[] trackbacks, java.lang.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
com.liferay.portal.kernel.exception.PortalException
BlogsEntry updateEntry(long userId, long entryId, java.lang.String title, java.lang.String subtitle, java.lang.String urlTitle, java.lang.String description, java.lang.String content, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks, java.lang.String[] trackbacks, java.lang.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
com.liferay.portal.kernel.exception.PortalException
void updateEntryResources(BlogsEntry entry, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
void updateEntryResources(BlogsEntry entry, java.lang.String[] groupPermissions, java.lang.String[] guestPermissions) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=REINDEX) BlogsEntry updateStatus(long userId, long entryId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext, java.util.Map<java.lang.String,java.io.Serializable> workflowContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException