Liferay 7.0-ce-b4

com.liferay.portlet.blogs.service
Class BlogsEntryLocalServiceWrapper

java.lang.Object
  extended by com.liferay.portlet.blogs.service.BlogsEntryLocalServiceWrapper
All Implemented Interfaces:
BaseLocalService, PersistedModelLocalService, ServiceWrapper<BlogsEntryLocalService>, BlogsEntryLocalService

@ProviderType
public class BlogsEntryLocalServiceWrapper
extends Object
implements BlogsEntryLocalService, ServiceWrapper<BlogsEntryLocalService>

Provides a wrapper for BlogsEntryLocalService.

See Also:
BlogsEntryLocalService
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
BlogsEntryLocalServiceWrapper(BlogsEntryLocalService blogsEntryLocalService)
           
 
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)
           
 BlogsEntryLocalService getWrappedService()
           
 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 setWrappedService(BlogsEntryLocalService blogsEntryLocalService)
           
 void subscribe(long userId, long groupId)
           
 void unsubscribe(long userId, long groupId)
           
 void updateAsset(long userId, BlogsEntry entry, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds, Double priority)
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlogsEntryLocalServiceWrapper

public BlogsEntryLocalServiceWrapper(BlogsEntryLocalService blogsEntryLocalService)
Method Detail

addAttachmentsFolder

public Folder addAttachmentsFolder(long userId,
                                   long groupId)
                            throws PortalException
Specified by:
addAttachmentsFolder in interface BlogsEntryLocalService
Throws:
PortalException

addBlogsEntry

public BlogsEntry addBlogsEntry(BlogsEntry blogsEntry)
Adds the blogs entry to the database. Also notifies the appropriate model listeners.

Specified by:
addBlogsEntry in interface BlogsEntryLocalService
Parameters:
blogsEntry - the blogs entry
Returns:
the blogs entry that was added

addCoverImage

public void addCoverImage(long entryId,
                          ImageSelector imageSelector)
                   throws PortalException
Specified by:
addCoverImage in interface BlogsEntryLocalService
Throws:
PortalException

addEntry

public BlogsEntry addEntry(long userId,
                           String title,
                           String content,
                           Date displayDate,
                           ServiceContext serviceContext)
                    throws PortalException
Specified by:
addEntry in interface BlogsEntryLocalService
Throws:
PortalException

addEntry

public BlogsEntry addEntry(long userId,
                           String title,
                           String content,
                           ServiceContext serviceContext)
                    throws PortalException
Specified by:
addEntry in interface BlogsEntryLocalService
Throws:
PortalException

addEntry

@Deprecated
public 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)

Specified by:
addEntry in interface BlogsEntryLocalService
Throws:
PortalException

addEntry

public BlogsEntry addEntry(long userId,
                           String title,
                           String subtitle,
                           String description,
                           String content,
                           Date displayDate,
                           boolean allowPingbacks,
                           boolean allowTrackbacks,
                           String[] trackbacks,
                           String coverImageCaption,
                           ImageSelector coverImageImageSelector,
                           ImageSelector smallImageImageSelector,
                           ServiceContext serviceContext)
                    throws PortalException
Specified by:
addEntry in interface BlogsEntryLocalService
Throws:
PortalException

addEntry

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

addEntryResources

public void addEntryResources(BlogsEntry entry,
                              boolean addGroupPermissions,
                              boolean addGuestPermissions)
                       throws PortalException
Specified by:
addEntryResources in interface BlogsEntryLocalService
Throws:
PortalException

addEntryResources

public void addEntryResources(BlogsEntry entry,
                              ModelPermissions modelPermissions)
                       throws PortalException
Specified by:
addEntryResources in interface BlogsEntryLocalService
Throws:
PortalException

addEntryResources

public void addEntryResources(long entryId,
                              boolean addGroupPermissions,
                              boolean addGuestPermissions)
                       throws PortalException
Specified by:
addEntryResources in interface BlogsEntryLocalService
Throws:
PortalException

addEntryResources

public void addEntryResources(long entryId,
                              ModelPermissions modelPermissions)
                       throws PortalException
Specified by:
addEntryResources in interface BlogsEntryLocalService
Throws:
PortalException

addOriginalImageFileEntry

public long addOriginalImageFileEntry(long userId,
                                      long groupId,
                                      long entryId,
                                      ImageSelector imageSelector)
                               throws PortalException
Specified by:
addOriginalImageFileEntry in interface BlogsEntryLocalService
Throws:
PortalException

addSmallImage

public void addSmallImage(long entryId,
                          ImageSelector imageSelector)
                   throws PortalException
Specified by:
addSmallImage in interface BlogsEntryLocalService
Throws:
PortalException

checkEntries

public void checkEntries()
                  throws PortalException
Specified by:
checkEntries in interface BlogsEntryLocalService
Throws:
PortalException

createBlogsEntry

public BlogsEntry createBlogsEntry(long entryId)
Creates a new blogs entry with the primary key. Does not add the blogs entry to the database.

Specified by:
createBlogsEntry in interface BlogsEntryLocalService
Parameters:
entryId - the primary key for the new blogs entry
Returns:
the new blogs entry

deleteBlogsEntry

public BlogsEntry deleteBlogsEntry(BlogsEntry blogsEntry)
Deletes the blogs entry from the database. Also notifies the appropriate model listeners.

Specified by:
deleteBlogsEntry in interface BlogsEntryLocalService
Parameters:
blogsEntry - the blogs entry
Returns:
the blogs entry that was removed

deleteBlogsEntry

public BlogsEntry deleteBlogsEntry(long entryId)
                            throws PortalException
Deletes the blogs entry with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteBlogsEntry in interface BlogsEntryLocalService
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

public void deleteEntries(long groupId)
                   throws PortalException
Specified by:
deleteEntries in interface BlogsEntryLocalService
Throws:
PortalException

deleteEntry

public BlogsEntry deleteEntry(BlogsEntry entry)
                       throws PortalException
Specified by:
deleteEntry in interface BlogsEntryLocalService
Throws:
PortalException

deleteEntry

public void deleteEntry(long entryId)
                 throws PortalException
Specified by:
deleteEntry in interface BlogsEntryLocalService
Throws:
PortalException

deletePersistedModel

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

dynamicQuery

public DynamicQuery dynamicQuery()
Specified by:
dynamicQuery in interface BlogsEntryLocalService

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.

Specified by:
dynamicQuery in interface BlogsEntryLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the matching rows

dynamicQuery

public <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 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.

Specified by:
dynamicQuery in interface BlogsEntryLocalService
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

public <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 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.

Specified by:
dynamicQuery in interface BlogsEntryLocalService
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

public long dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.

Specified by:
dynamicQueryCount in interface BlogsEntryLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows matching the dynamic query

dynamicQueryCount

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

Specified by:
dynamicQueryCount in interface BlogsEntryLocalService
Parameters:
dynamicQuery - the dynamic query
projection - the projection to apply to the query
Returns:
the number of rows matching the dynamic query

fetchAttachmentsFolder

public Folder fetchAttachmentsFolder(long userId,
                                     long groupId)
Specified by:
fetchAttachmentsFolder in interface BlogsEntryLocalService

fetchBlogsEntry

public BlogsEntry fetchBlogsEntry(long entryId)
Specified by:
fetchBlogsEntry in interface BlogsEntryLocalService

fetchBlogsEntryByUuidAndGroupId

public BlogsEntry fetchBlogsEntryByUuidAndGroupId(String uuid,
                                                  long groupId)
Returns the blogs entry matching the UUID and group.

Specified by:
fetchBlogsEntryByUuidAndGroupId in interface BlogsEntryLocalService
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

public ActionableDynamicQuery getActionableDynamicQuery()
Specified by:
getActionableDynamicQuery in interface BlogsEntryLocalService

getBlogsEntries

public 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 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.

Specified by:
getBlogsEntries in interface BlogsEntryLocalService
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

public List<BlogsEntry> getBlogsEntriesByUuidAndCompanyId(String uuid,
                                                          long companyId)
Returns all the blogs entries matching the UUID and company.

Specified by:
getBlogsEntriesByUuidAndCompanyId in interface BlogsEntryLocalService
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

public 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.

Specified by:
getBlogsEntriesByUuidAndCompanyId in interface BlogsEntryLocalService
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

public int getBlogsEntriesCount()
Returns the number of blogs entries.

Specified by:
getBlogsEntriesCount in interface BlogsEntryLocalService
Returns:
the number of blogs entries

getBlogsEntry

public BlogsEntry getBlogsEntry(long entryId)
                         throws PortalException
Returns the blogs entry with the primary key.

Specified by:
getBlogsEntry in interface BlogsEntryLocalService
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

public BlogsEntry getBlogsEntryByUuidAndGroupId(String uuid,
                                                long groupId)
                                         throws PortalException
Returns the blogs entry matching the UUID and group.

Specified by:
getBlogsEntryByUuidAndGroupId in interface BlogsEntryLocalService
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

public List<BlogsEntry> getCompanyEntries(long companyId,
                                          Date displayDate,
                                          QueryDefinition<BlogsEntry> queryDefinition)
Specified by:
getCompanyEntries in interface BlogsEntryLocalService

getCompanyEntriesCount

public int getCompanyEntriesCount(long companyId,
                                  Date displayDate,
                                  QueryDefinition<BlogsEntry> queryDefinition)
Specified by:
getCompanyEntriesCount in interface BlogsEntryLocalService

getEntriesPrevAndNext

public BlogsEntry[] getEntriesPrevAndNext(long entryId)
                                   throws PortalException
Specified by:
getEntriesPrevAndNext in interface BlogsEntryLocalService
Throws:
PortalException

getEntry

public BlogsEntry getEntry(long entryId)
                    throws PortalException
Specified by:
getEntry in interface BlogsEntryLocalService
Throws:
PortalException

getEntry

public BlogsEntry getEntry(long groupId,
                           String urlTitle)
                    throws PortalException
Specified by:
getEntry in interface BlogsEntryLocalService
Throws:
PortalException

getExportActionableDynamicQuery

public ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
Specified by:
getExportActionableDynamicQuery in interface BlogsEntryLocalService

getGroupEntries

public List<BlogsEntry> getGroupEntries(long groupId,
                                        Date displayDate,
                                        QueryDefinition<BlogsEntry> queryDefinition)
Specified by:
getGroupEntries in interface BlogsEntryLocalService

getGroupEntries

public List<BlogsEntry> getGroupEntries(long groupId,
                                        QueryDefinition<BlogsEntry> queryDefinition)
Specified by:
getGroupEntries in interface BlogsEntryLocalService

getGroupEntriesCount

public int getGroupEntriesCount(long groupId,
                                Date displayDate,
                                QueryDefinition<BlogsEntry> queryDefinition)
Specified by:
getGroupEntriesCount in interface BlogsEntryLocalService

getGroupEntriesCount

public int getGroupEntriesCount(long groupId,
                                QueryDefinition<BlogsEntry> queryDefinition)
Specified by:
getGroupEntriesCount in interface BlogsEntryLocalService

getGroupUserEntries

public List<BlogsEntry> getGroupUserEntries(long groupId,
                                            long userId,
                                            Date displayDate,
                                            QueryDefinition<BlogsEntry> queryDefinition)
Specified by:
getGroupUserEntries in interface BlogsEntryLocalService

getGroupUserEntriesCount

public int getGroupUserEntriesCount(long groupId,
                                    long userId,
                                    Date displayDate,
                                    QueryDefinition<BlogsEntry> queryDefinition)
Specified by:
getGroupUserEntriesCount in interface BlogsEntryLocalService

getGroupsEntries

public List<BlogsEntry> getGroupsEntries(long companyId,
                                         long groupId,
                                         Date displayDate,
                                         QueryDefinition<BlogsEntry> queryDefinition)
Specified by:
getGroupsEntries in interface BlogsEntryLocalService

getIndexableActionableDynamicQuery

public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
Specified by:
getIndexableActionableDynamicQuery in interface BlogsEntryLocalService

getNoAssetEntries

public List<BlogsEntry> getNoAssetEntries()
Specified by:
getNoAssetEntries in interface BlogsEntryLocalService

getOSGiServiceIdentifier

public String getOSGiServiceIdentifier()
Returns the OSGi service identifier.

Specified by:
getOSGiServiceIdentifier in interface BlogsEntryLocalService
Returns:
the OSGi service identifier

getOrganizationEntries

public List<BlogsEntry> getOrganizationEntries(long organizationId,
                                               Date displayDate,
                                               QueryDefinition<BlogsEntry> queryDefinition)
Specified by:
getOrganizationEntries in interface BlogsEntryLocalService

getOrganizationEntriesCount

public int getOrganizationEntriesCount(long organizationId,
                                       Date displayDate,
                                       QueryDefinition<BlogsEntry> queryDefinition)
Specified by:
getOrganizationEntriesCount in interface BlogsEntryLocalService

getPersistedModel

public PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                 throws PortalException
Specified by:
getPersistedModel in interface PersistedModelLocalService
Specified by:
getPersistedModel in interface BlogsEntryLocalService
Throws:
PortalException

moveEntriesToTrash

public void moveEntriesToTrash(long groupId,
                               long userId)
                        throws PortalException
Specified by:
moveEntriesToTrash in interface BlogsEntryLocalService
Throws:
PortalException

moveEntryToTrash

public BlogsEntry moveEntryToTrash(long userId,
                                   BlogsEntry entry)
                            throws PortalException
Moves the blogs entry to the recycle bin. Social activity counters for this entry get disabled.

Specified by:
moveEntryToTrash in interface BlogsEntryLocalService
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

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

Specified by:
moveEntryToTrash in interface BlogsEntryLocalService
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

public 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.

Specified by:
restoreEntryFromTrash in interface BlogsEntryLocalService
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

public void subscribe(long userId,
                      long groupId)
               throws PortalException
Specified by:
subscribe in interface BlogsEntryLocalService
Throws:
PortalException

unsubscribe

public void unsubscribe(long userId,
                        long groupId)
                 throws PortalException
Specified by:
unsubscribe in interface BlogsEntryLocalService
Throws:
PortalException

updateAsset

public void updateAsset(long userId,
                        BlogsEntry entry,
                        long[] assetCategoryIds,
                        String[] assetTagNames,
                        long[] assetLinkEntryIds,
                        Double priority)
                 throws PortalException
Specified by:
updateAsset in interface BlogsEntryLocalService
Throws:
PortalException

updateBlogsEntry

public 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.

Specified by:
updateBlogsEntry in interface BlogsEntryLocalService
Parameters:
blogsEntry - the blogs entry
Returns:
the blogs entry that was updated

updateEntry

public BlogsEntry updateEntry(long userId,
                              long entryId,
                              String title,
                              String content,
                              ServiceContext serviceContext)
                       throws PortalException
Specified by:
updateEntry in interface BlogsEntryLocalService
Throws:
PortalException

updateEntry

@Deprecated
public 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)

Specified by:
updateEntry in interface BlogsEntryLocalService
Throws:
PortalException

updateEntry

public BlogsEntry updateEntry(long userId,
                              long entryId,
                              String title,
                              String subtitle,
                              String description,
                              String content,
                              Date displayDate,
                              boolean allowPingbacks,
                              boolean allowTrackbacks,
                              String[] trackbacks,
                              String coverImageCaption,
                              ImageSelector coverImageImageSelector,
                              ImageSelector smallImageImageSelector,
                              ServiceContext serviceContext)
                       throws PortalException
Specified by:
updateEntry in interface BlogsEntryLocalService
Throws:
PortalException

updateEntry

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

updateEntryResources

public void updateEntryResources(BlogsEntry entry,
                                 String[] groupPermissions,
                                 String[] guestPermissions)
                          throws PortalException
Specified by:
updateEntryResources in interface BlogsEntryLocalService
Throws:
PortalException

updateEntryResources

public void updateEntryResources(BlogsEntry entry,
                                 ModelPermissions modelPermissions)
                          throws PortalException
Specified by:
updateEntryResources in interface BlogsEntryLocalService
Throws:
PortalException

updateStatus

@Deprecated
public 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)

Specified by:
updateStatus in interface BlogsEntryLocalService
Throws:
PortalException

updateStatus

public BlogsEntry updateStatus(long userId,
                               long entryId,
                               int status,
                               ServiceContext serviceContext,
                               Map<String,Serializable> workflowContext)
                        throws PortalException
Specified by:
updateStatus in interface BlogsEntryLocalService
Throws:
PortalException

getWrappedService

public BlogsEntryLocalService getWrappedService()
Specified by:
getWrappedService in interface ServiceWrapper<BlogsEntryLocalService>

setWrappedService

public void setWrappedService(BlogsEntryLocalService blogsEntryLocalService)
Specified by:
setWrappedService in interface ServiceWrapper<BlogsEntryLocalService>

Liferay 7.0-ce-b4