Liferay 7.0-ce-b4

com.liferay.portlet.blogs.service
Interface BlogsEntryLocalService

All Superinterfaces:
BaseLocalService, PersistedModelLocalService
All Known Implementing Classes:
BlogsEntryLocalServiceWrapper

@ProviderType
@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
public interface BlogsEntryLocalService
extends BaseLocalService, PersistedModelLocalService

Provides the local service interface for BlogsEntry. 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:
BlogsEntryLocalServiceUtil, com.liferay.portlet.blogs.service.base.BlogsEntryLocalServiceBaseImpl, com.liferay.portlet.blogs.service.impl.BlogsEntryLocalServiceImpl

Method Summary
 Folder addAttachmentsFolder(long userId, long groupId)
           
 BlogsEntry addBlogsEntry(BlogsEntry blogsEntry)
          Adds the blogs entry to the database.
 void addCoverImage(long entryId, ImageSelector imageSelector)
           
 BlogsEntry addEntry(long userId, String title, String content, Date displayDate, ServiceContext serviceContext)
           
 BlogsEntry addEntry(long userId, String title, String content, ServiceContext serviceContext)
           
 BlogsEntry addEntry(long userId, String title, String description, String content, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks, String[] trackbacks, boolean smallImage, String smallImageURL, String smallImageFileName, InputStream smallImageInputStream, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, replaced by addEntry(long, String, String, String, String, int, int, int, int, int, boolean, boolean, String[], String, ImageSelector, ImageSelector, ServiceContext)
 BlogsEntry addEntry(long userId, String title, String subtitle, String description, String content, Date displayDate, boolean allowPingbacks, boolean allowTrackbacks, String[] trackbacks, String coverImageCaption, ImageSelector coverImageImageSelector, ImageSelector smallImageImageSelector, ServiceContext serviceContext)
           
 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, ImageSelector coverImageImageSelector, ImageSelector smallImageImageSelector, ServiceContext serviceContext)
           
 void addEntryResources(BlogsEntry entry, boolean addGroupPermissions, boolean addGuestPermissions)
           
 void addEntryResources(BlogsEntry entry, ModelPermissions modelPermissions)
           
 void addEntryResources(long entryId, boolean addGroupPermissions, boolean addGuestPermissions)
           
 void addEntryResources(long entryId, ModelPermissions modelPermissions)
           
 long addOriginalImageFileEntry(long userId, long groupId, long entryId, ImageSelector imageSelector)
           
 void addSmallImage(long entryId, ImageSelector imageSelector)
           
 void checkEntries()
           
 BlogsEntry createBlogsEntry(long entryId)
          Creates a new blogs entry with the primary key.
 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)
           
 PersistedModel deletePersistedModel(PersistedModel persistedModel)
           
 DynamicQuery dynamicQuery()
           
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator)
          Performs a dynamic query on the database and returns an ordered range of the matching rows.
 long dynamicQueryCount(DynamicQuery dynamicQuery)
          Returns the number of rows matching the dynamic query.
 long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
          Returns the number of rows matching the dynamic query.
 Folder fetchAttachmentsFolder(long userId, long groupId)
           
 BlogsEntry fetchBlogsEntry(long entryId)
           
 BlogsEntry fetchBlogsEntryByUuidAndGroupId(String uuid, long groupId)
          Returns the blogs entry matching the UUID and group.
 ActionableDynamicQuery getActionableDynamicQuery()
           
 List<BlogsEntry> getBlogsEntries(int start, int end)
          Returns a range of all the blogs entries.
 List<BlogsEntry> getBlogsEntriesByUuidAndCompanyId(String uuid, long companyId)
          Returns all the blogs entries matching the UUID and company.
 List<BlogsEntry> getBlogsEntriesByUuidAndCompanyId(String uuid, long companyId, int start, int end, 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(String uuid, long groupId)
          Returns the blogs entry matching the UUID and group.
 List<BlogsEntry> getCompanyEntries(long companyId, Date displayDate, QueryDefinition<BlogsEntry> queryDefinition)
           
 int getCompanyEntriesCount(long companyId, Date displayDate, QueryDefinition<BlogsEntry> queryDefinition)
           
 BlogsEntry[] getEntriesPrevAndNext(long entryId)
           
 BlogsEntry getEntry(long entryId)
           
 BlogsEntry getEntry(long groupId, String urlTitle)
           
 ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
           
 List<BlogsEntry> getGroupEntries(long groupId, Date displayDate, QueryDefinition<BlogsEntry> queryDefinition)
           
 List<BlogsEntry> getGroupEntries(long groupId, QueryDefinition<BlogsEntry> queryDefinition)
           
 int getGroupEntriesCount(long groupId, Date displayDate, QueryDefinition<BlogsEntry> queryDefinition)
           
 int getGroupEntriesCount(long groupId, QueryDefinition<BlogsEntry> queryDefinition)
           
 List<BlogsEntry> getGroupsEntries(long companyId, long groupId, Date displayDate, QueryDefinition<BlogsEntry> queryDefinition)
           
 List<BlogsEntry> getGroupUserEntries(long groupId, long userId, Date displayDate, QueryDefinition<BlogsEntry> queryDefinition)
           
 int getGroupUserEntriesCount(long groupId, long userId, Date displayDate, QueryDefinition<BlogsEntry> queryDefinition)
           
 IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
           
 List<BlogsEntry> getNoAssetEntries()
           
 List<BlogsEntry> getOrganizationEntries(long organizationId, Date displayDate, QueryDefinition<BlogsEntry> queryDefinition)
           
 int getOrganizationEntriesCount(long organizationId, Date displayDate, QueryDefinition<BlogsEntry> queryDefinition)
           
 String getOSGiServiceIdentifier()
          Returns the OSGi service identifier.
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 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, String[] assetTagNames, long[] assetLinkEntryIds, 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, String title, String content, ServiceContext serviceContext)
           
 BlogsEntry updateEntry(long userId, long entryId, String title, String description, String content, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks, String[] trackbacks, boolean smallImage, String smallImageURL, String smallImageFileName, InputStream smallImageInputStream, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, replaced by updateEntry(long, long, String, String, String, String, int, int, int, int, int, boolean, boolean, String[], String, ImageSelector, ImageSelector, ServiceContext)
 BlogsEntry updateEntry(long userId, long entryId, String title, String subtitle, String description, String content, Date displayDate, boolean allowPingbacks, boolean allowTrackbacks, String[] trackbacks, String coverImageCaption, ImageSelector coverImageImageSelector, ImageSelector smallImageImageSelector, ServiceContext serviceContext)
           
 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, ImageSelector coverImageImageSelector, ImageSelector smallImageImageSelector, ServiceContext serviceContext)
           
 void updateEntryResources(BlogsEntry entry, ModelPermissions modelPermissions)
           
 void updateEntryResources(BlogsEntry entry, String[] groupPermissions, String[] guestPermissions)
           
 BlogsEntry updateStatus(long userId, long entryId, int status, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, replaced by updateStatus(long, long, int, ServiceContext, Map)
 BlogsEntry updateStatus(long userId, long entryId, int status, ServiceContext serviceContext, Map<String,Serializable> workflowContext)
           
 

Method Detail

addAttachmentsFolder

Folder addAttachmentsFolder(long userId,
                            long groupId)
                            throws PortalException
Throws:
PortalException

addBlogsEntry

@Indexable(type=REINDEX)
BlogsEntry addBlogsEntry(BlogsEntry blogsEntry)
Adds the blogs entry to the database. Also notifies the appropriate model listeners.

Parameters:
blogsEntry - the blogs entry
Returns:
the blogs entry that was added

addCoverImage

void addCoverImage(long entryId,
                   ImageSelector imageSelector)
                   throws PortalException
Throws:
PortalException

addEntry

BlogsEntry addEntry(long userId,
                    String title,
                    String content,
                    Date displayDate,
                    ServiceContext serviceContext)
                    throws PortalException
Throws:
PortalException

addEntry

BlogsEntry addEntry(long userId,
                    String title,
                    String content,
                    ServiceContext serviceContext)
                    throws PortalException
Throws:
PortalException

addEntry

@Deprecated
BlogsEntry addEntry(long userId,
                               String title,
                               String description,
                               String content,
                               int displayDateMonth,
                               int displayDateDay,
                               int displayDateYear,
                               int displayDateHour,
                               int displayDateMinute,
                               boolean allowPingbacks,
                               boolean allowTrackbacks,
                               String[] trackbacks,
                               boolean smallImage,
                               String smallImageURL,
                               String smallImageFileName,
                               InputStream smallImageInputStream,
                               ServiceContext serviceContext)
                    throws PortalException
Deprecated. As of 7.0.0, replaced by addEntry(long, String, String, String, String, int, int, int, int, int, boolean, boolean, String[], String, ImageSelector, ImageSelector, ServiceContext)

Throws:
PortalException

addEntry

@Indexable(type=REINDEX)
BlogsEntry addEntry(long userId,
                                         String title,
                                         String subtitle,
                                         String description,
                                         String content,
                                         Date displayDate,
                                         boolean allowPingbacks,
                                         boolean allowTrackbacks,
                                         String[] trackbacks,
                                         String coverImageCaption,
                                         ImageSelector coverImageImageSelector,
                                         ImageSelector smallImageImageSelector,
                                         ServiceContext serviceContext)
                    throws PortalException
Throws:
PortalException

addEntry

BlogsEntry addEntry(long userId,
                    String title,
                    String subtitle,
                    String description,
                    String content,
                    int displayDateMonth,
                    int displayDateDay,
                    int displayDateYear,
                    int displayDateHour,
                    int displayDateMinute,
                    boolean allowPingbacks,
                    boolean allowTrackbacks,
                    String[] trackbacks,
                    String coverImageCaption,
                    ImageSelector coverImageImageSelector,
                    ImageSelector smallImageImageSelector,
                    ServiceContext serviceContext)
                    throws PortalException
Throws:
PortalException

addEntryResources

void addEntryResources(BlogsEntry entry,
                       boolean addGroupPermissions,
                       boolean addGuestPermissions)
                       throws PortalException
Throws:
PortalException

addEntryResources

void addEntryResources(BlogsEntry entry,
                       ModelPermissions modelPermissions)
                       throws PortalException
Throws:
PortalException

addEntryResources

void addEntryResources(long entryId,
                       boolean addGroupPermissions,
                       boolean addGuestPermissions)
                       throws PortalException
Throws:
PortalException

addEntryResources

void addEntryResources(long entryId,
                       ModelPermissions modelPermissions)
                       throws PortalException
Throws:
PortalException

addOriginalImageFileEntry

long addOriginalImageFileEntry(long userId,
                               long groupId,
                               long entryId,
                               ImageSelector imageSelector)
                               throws PortalException
Throws:
PortalException

addSmallImage

void addSmallImage(long entryId,
                   ImageSelector imageSelector)
                   throws PortalException
Throws:
PortalException

checkEntries

void checkEntries()
                  throws PortalException
Throws:
PortalException

createBlogsEntry

BlogsEntry createBlogsEntry(long entryId)
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

deleteBlogsEntry

@Indexable(type=DELETE)
BlogsEntry deleteBlogsEntry(BlogsEntry blogsEntry)
Deletes the blogs entry from the database. Also notifies the appropriate model listeners.

Parameters:
blogsEntry - the blogs entry
Returns:
the blogs entry that was removed

deleteBlogsEntry

@Indexable(type=DELETE)
BlogsEntry deleteBlogsEntry(long entryId)
                            throws PortalException
Deletes the blogs entry with the primary key from the database. Also notifies the appropriate model listeners.

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 found

deleteEntries

void deleteEntries(long groupId)
                   throws PortalException
Throws:
PortalException

deleteEntry

@Indexable(type=DELETE)
@SystemEvent(type=1)
BlogsEntry deleteEntry(BlogsEntry entry)
                       throws PortalException
Throws:
PortalException

deleteEntry

void deleteEntry(long entryId)
                 throws PortalException
Throws:
PortalException

deletePersistedModel

PersistedModel deletePersistedModel(PersistedModel persistedModel)
                                    throws PortalException
Specified by:
deletePersistedModel in interface PersistedModelLocalService
Throws:
PortalException

dynamicQuery

DynamicQuery dynamicQuery()

dynamicQuery

<T> List<T> 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

<T> List<T> dynamicQuery(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 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 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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from com.liferay.portlet.blogs.model.impl.BlogsEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
Returns:
the range of matching rows

dynamicQuery

<T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end,
                         OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.

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 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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from com.liferay.portlet.blogs.model.impl.BlogsEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching rows

dynamicQueryCount

long dynamicQueryCount(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

long dynamicQueryCount(DynamicQuery dynamicQuery,
                       Projection projection)
Returns the number of rows matching the dynamic query.

Parameters:
dynamicQuery - the dynamic query
projection - the projection to apply to the query
Returns:
the number of rows matching the dynamic query

fetchAttachmentsFolder

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Folder fetchAttachmentsFolder(long userId,
                                                                       long groupId)

fetchBlogsEntry

@Transactional(propagation=SUPPORTS,
               readOnly=true)
BlogsEntry fetchBlogsEntry(long entryId)

fetchBlogsEntryByUuidAndGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
BlogsEntry fetchBlogsEntryByUuidAndGroupId(String uuid,
                                                                                    long groupId)
Returns the blogs entry matching the UUID and group.

Parameters:
uuid - the blogs entry's UUID
groupId - the primary key of the group
Returns:
the matching blogs entry, or null if a matching blogs entry could not be found

getActionableDynamicQuery

@Transactional(propagation=SUPPORTS,
               readOnly=true)
ActionableDynamicQuery getActionableDynamicQuery()

getBlogsEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<BlogsEntry> getBlogsEntries(int start,
                                                                          int end)
Returns a range of all the blogs entries.

Useful when paginating results. Returns a maximum of end - 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 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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from com.liferay.portlet.blogs.model.impl.BlogsEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
start - the lower bound of the range of blogs entries
end - the upper bound of the range of blogs entries (not inclusive)
Returns:
the range of blogs entries

getBlogsEntriesByUuidAndCompanyId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<BlogsEntry> getBlogsEntriesByUuidAndCompanyId(String uuid,
                                                                                            long companyId)
Returns all the blogs entries matching the UUID and company.

Parameters:
uuid - the UUID of the blogs entries
companyId - the primary key of the company
Returns:
the matching blogs entries, or an empty list if no matches were found

getBlogsEntriesByUuidAndCompanyId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<BlogsEntry> getBlogsEntriesByUuidAndCompanyId(String uuid,
                                                                                            long companyId,
                                                                                            int start,
                                                                                            int end,
                                                                                            OrderByComparator<BlogsEntry> orderByComparator)
Returns a range of blogs entries matching the UUID and company.

Parameters:
uuid - the UUID of the blogs entries
companyId - the primary key of the company
start - the lower bound of the range of blogs entries
end - the upper bound of the range of blogs entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the range of matching blogs entries, or an empty list if no matches were found

getBlogsEntriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getBlogsEntriesCount()
Returns the number of blogs entries.

Returns:
the number of blogs entries

getBlogsEntry

@Transactional(propagation=SUPPORTS,
               readOnly=true)
BlogsEntry getBlogsEntry(long entryId)
                         throws PortalException
Returns the blogs entry with the primary key.

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 found

getBlogsEntryByUuidAndGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
BlogsEntry getBlogsEntryByUuidAndGroupId(String uuid,
                                                                                  long groupId)
                                         throws PortalException
Returns the blogs entry matching the UUID and group.

Parameters:
uuid - the blogs entry's UUID
groupId - the primary key of the group
Returns:
the matching blogs entry
Throws:
PortalException - if a matching blogs entry could not be found

getCompanyEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<BlogsEntry> getCompanyEntries(long companyId,
                                                                            Date displayDate,
                                                                            QueryDefinition<BlogsEntry> queryDefinition)

getCompanyEntriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getCompanyEntriesCount(long companyId,
                                                                    Date displayDate,
                                                                    QueryDefinition<BlogsEntry> queryDefinition)

getEntriesPrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
BlogsEntry[] getEntriesPrevAndNext(long entryId)
                                   throws PortalException
Throws:
PortalException

getEntry

@Transactional(propagation=SUPPORTS,
               readOnly=true)
BlogsEntry getEntry(long entryId)
                    throws PortalException
Throws:
PortalException

getEntry

@Transactional(propagation=SUPPORTS,
               readOnly=true)
BlogsEntry getEntry(long groupId,
                                                             String urlTitle)
                    throws PortalException
Throws:
PortalException

getExportActionableDynamicQuery

@Transactional(propagation=SUPPORTS,
               readOnly=true)
ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)

getGroupEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<BlogsEntry> getGroupEntries(long groupId,
                                                                          Date displayDate,
                                                                          QueryDefinition<BlogsEntry> queryDefinition)

getGroupEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<BlogsEntry> getGroupEntries(long groupId,
                                                                          QueryDefinition<BlogsEntry> queryDefinition)

getGroupEntriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getGroupEntriesCount(long groupId,
                                                                  Date displayDate,
                                                                  QueryDefinition<BlogsEntry> queryDefinition)

getGroupEntriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getGroupEntriesCount(long groupId,
                                                                  QueryDefinition<BlogsEntry> queryDefinition)

getGroupUserEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<BlogsEntry> getGroupUserEntries(long groupId,
                                                                              long userId,
                                                                              Date displayDate,
                                                                              QueryDefinition<BlogsEntry> queryDefinition)

getGroupUserEntriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getGroupUserEntriesCount(long groupId,
                                                                      long userId,
                                                                      Date displayDate,
                                                                      QueryDefinition<BlogsEntry> queryDefinition)

getGroupsEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<BlogsEntry> getGroupsEntries(long companyId,
                                                                           long groupId,
                                                                           Date displayDate,
                                                                           QueryDefinition<BlogsEntry> queryDefinition)

getIndexableActionableDynamicQuery

@Transactional(propagation=SUPPORTS,
               readOnly=true)
IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()

getNoAssetEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<BlogsEntry> getNoAssetEntries()

getOSGiServiceIdentifier

String getOSGiServiceIdentifier()
Returns the OSGi service identifier.

Returns:
the OSGi service identifier

getOrganizationEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<BlogsEntry> getOrganizationEntries(long organizationId,
                                                                                 Date displayDate,
                                                                                 QueryDefinition<BlogsEntry> queryDefinition)

getOrganizationEntriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getOrganizationEntriesCount(long organizationId,
                                                                         Date displayDate,
                                                                         QueryDefinition<BlogsEntry> queryDefinition)

getPersistedModel

@Transactional(propagation=SUPPORTS,
               readOnly=true)
PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                 throws PortalException
Specified by:
getPersistedModel in interface PersistedModelLocalService
Throws:
PortalException

moveEntriesToTrash

void moveEntriesToTrash(long groupId,
                        long userId)
                        throws PortalException
Throws:
PortalException

moveEntryToTrash

@Indexable(type=REINDEX)
BlogsEntry moveEntryToTrash(long userId,
                                                 BlogsEntry entry)
                            throws 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 entry
entry - the blogs entry to be moved
Returns:
the moved blogs entry
Throws:
PortalException

moveEntryToTrash

BlogsEntry moveEntryToTrash(long userId,
                            long entryId)
                            throws PortalException
Moves the blogs entry with the ID to the recycle bin.

Parameters:
userId - the primary key of the user moving the blogs entry
entryId - the primary key of the blogs entry to be moved
Returns:
the moved blogs entry
Throws:
PortalException

restoreEntryFromTrash

@Indexable(type=REINDEX)
BlogsEntry restoreEntryFromTrash(long userId,
                                                      long entryId)
                                 throws 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 entry
entryId - the primary key of the blogs entry to be restored
Returns:
the restored blogs entry from the recycle bin
Throws:
PortalException

subscribe

void subscribe(long userId,
               long groupId)
               throws PortalException
Throws:
PortalException

unsubscribe

void unsubscribe(long userId,
                 long groupId)
                 throws PortalException
Throws:
PortalException

updateAsset

void updateAsset(long userId,
                 BlogsEntry entry,
                 long[] assetCategoryIds,
                 String[] assetTagNames,
                 long[] assetLinkEntryIds,
                 Double priority)
                 throws PortalException
Throws:
PortalException

updateBlogsEntry

@Indexable(type=REINDEX)
BlogsEntry updateBlogsEntry(BlogsEntry blogsEntry)
Updates the blogs entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Parameters:
blogsEntry - the blogs entry
Returns:
the blogs entry that was updated

updateEntry

BlogsEntry updateEntry(long userId,
                       long entryId,
                       String title,
                       String content,
                       ServiceContext serviceContext)
                       throws PortalException
Throws:
PortalException

updateEntry

@Deprecated
BlogsEntry updateEntry(long userId,
                                  long entryId,
                                  String title,
                                  String description,
                                  String content,
                                  int displayDateMonth,
                                  int displayDateDay,
                                  int displayDateYear,
                                  int displayDateHour,
                                  int displayDateMinute,
                                  boolean allowPingbacks,
                                  boolean allowTrackbacks,
                                  String[] trackbacks,
                                  boolean smallImage,
                                  String smallImageURL,
                                  String smallImageFileName,
                                  InputStream smallImageInputStream,
                                  ServiceContext serviceContext)
                       throws PortalException
Deprecated. As of 7.0.0, replaced by updateEntry(long, long, String, String, String, String, int, int, int, int, int, boolean, boolean, String[], String, ImageSelector, ImageSelector, ServiceContext)

Throws:
PortalException

updateEntry

@Indexable(type=REINDEX)
BlogsEntry updateEntry(long userId,
                                            long entryId,
                                            String title,
                                            String subtitle,
                                            String description,
                                            String content,
                                            Date displayDate,
                                            boolean allowPingbacks,
                                            boolean allowTrackbacks,
                                            String[] trackbacks,
                                            String coverImageCaption,
                                            ImageSelector coverImageImageSelector,
                                            ImageSelector smallImageImageSelector,
                                            ServiceContext serviceContext)
                       throws PortalException
Throws:
PortalException

updateEntry

BlogsEntry updateEntry(long userId,
                       long entryId,
                       String title,
                       String subtitle,
                       String description,
                       String content,
                       int displayDateMonth,
                       int displayDateDay,
                       int displayDateYear,
                       int displayDateHour,
                       int displayDateMinute,
                       boolean allowPingbacks,
                       boolean allowTrackbacks,
                       String[] trackbacks,
                       String coverImageCaption,
                       ImageSelector coverImageImageSelector,
                       ImageSelector smallImageImageSelector,
                       ServiceContext serviceContext)
                       throws PortalException
Throws:
PortalException

updateEntryResources

void updateEntryResources(BlogsEntry entry,
                          String[] groupPermissions,
                          String[] guestPermissions)
                          throws PortalException
Throws:
PortalException

updateEntryResources

void updateEntryResources(BlogsEntry entry,
                          ModelPermissions modelPermissions)
                          throws PortalException
Throws:
PortalException

updateStatus

@Deprecated
BlogsEntry updateStatus(long userId,
                                   long entryId,
                                   int status,
                                   ServiceContext serviceContext)
                        throws PortalException
Deprecated. As of 7.0.0, replaced by updateStatus(long, long, int, ServiceContext, Map)

Throws:
PortalException

updateStatus

@Indexable(type=REINDEX)
BlogsEntry updateStatus(long userId,
                                             long entryId,
                                             int status,
                                             ServiceContext serviceContext,
                                             Map<String,Serializable> workflowContext)
                        throws PortalException
Throws:
PortalException

Liferay 7.0-ce-b4