Liferay 6.0.5

com.liferay.portlet.blogs.service
Class BlogsEntryLocalServiceWrapper

java.lang.Object
  extended by com.liferay.portlet.blogs.service.BlogsEntryLocalServiceWrapper
All Implemented Interfaces:
BlogsEntryLocalService

public class BlogsEntryLocalServiceWrapper
extends Object
implements BlogsEntryLocalService

This class is a wrapper for BlogsEntryLocalService.

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

Constructor Summary
BlogsEntryLocalServiceWrapper(BlogsEntryLocalService blogsEntryLocalService)
           
 
Method Summary
 BlogsEntry addBlogsEntry(BlogsEntry blogsEntry)
          Adds the blogs entry to the database.
 BlogsEntry addEntry(long userId, String title, String content, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks, String[] trackbacks, ServiceContext serviceContext)
           
 void addEntryResources(BlogsEntry entry, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addEntryResources(BlogsEntry entry, String[] communityPermissions, String[] guestPermissions)
           
 void addEntryResources(long entryId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addEntryResources(long entryId, String[] communityPermissions, String[] guestPermissions)
           
 BlogsEntry createBlogsEntry(long entryId)
          Creates a new blogs entry with the primary key.
 void deleteBlogsEntry(BlogsEntry blogsEntry)
          Deletes the blogs entry from the database.
 void deleteBlogsEntry(long entryId)
          Deletes the blogs entry with the primary key from the database.
 void deleteEntries(long groupId)
           
 void deleteEntry(BlogsEntry entry)
           
 void deleteEntry(long entryId)
           
 List dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
          Performs a dynamic query on the database and returns an ordered range of the matching rows.
 long dynamicQueryCount(DynamicQuery dynamicQuery)
          Counts the number of rows that match the dynamic query.
 List<BlogsEntry> getBlogsEntries(int start, int end)
          Gets a range of all the blogs entries.
 int getBlogsEntriesCount()
          Gets the number of blogs entries.
 BlogsEntry getBlogsEntry(long entryId)
          Gets the blogs entry with the primary key.
 BlogsEntry getBlogsEntryByUuidAndGroupId(String uuid, long groupId)
          Gets the blogs entry with the UUID and group id.
 List<BlogsEntry> getCompanyEntries(long companyId, int status, int start, int end)
           
 List<BlogsEntry> getCompanyEntries(long companyId, int status, int start, int end, OrderByComparator obc)
           
 int getCompanyEntriesCount(long companyId, int status)
           
 BlogsEntry[] getEntriesPrevAndNext(long entryId)
           
 BlogsEntry getEntry(long entryId)
           
 BlogsEntry getEntry(long groupId, String urlTitle)
           
 List<BlogsEntry> getGroupEntries(long groupId, int status, int start, int end)
           
 List<BlogsEntry> getGroupEntries(long groupId, int status, int start, int end, OrderByComparator obc)
           
 int getGroupEntriesCount(long groupId, int status)
           
 List<BlogsEntry> getGroupsEntries(long companyId, long groupId, int status, int start, int end)
           
 List<BlogsEntry> getGroupUserEntries(long groupId, long userId, int status, int start, int end)
           
 List<BlogsEntry> getGroupUserEntries(long groupId, long userId, int status, int start, int end, OrderByComparator obc)
           
 int getGroupUserEntriesCount(long groupId, long userId, int status)
           
 List<BlogsEntry> getNoAssetEntries()
           
 List<BlogsEntry> getOrganizationEntries(long organizationId, int status, int start, int end)
           
 int getOrganizationEntriesCount(long organizationId, int status)
           
 BlogsEntryLocalService getWrappedBlogsEntryLocalService()
           
 void updateAsset(long userId, BlogsEntry entry, long[] assetCategoryIds, String[] assetTagNames)
           
 BlogsEntry updateBlogsEntry(BlogsEntry blogsEntry)
          Updates the blogs entry in the database.
 BlogsEntry updateBlogsEntry(BlogsEntry blogsEntry, boolean merge)
          Updates the blogs entry in the database.
 BlogsEntry updateEntry(long userId, long entryId, String title, String content, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks, String[] trackbacks, ServiceContext serviceContext)
           
 void updateEntryResources(BlogsEntry entry, String[] communityPermissions, String[] guestPermissions)
           
 BlogsEntry updateStatus(long userId, long entryId, int status, ServiceContext serviceContext)
           
 
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

addBlogsEntry

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

Specified by:
addBlogsEntry in interface BlogsEntryLocalService
Parameters:
blogsEntry - the blogs entry to add
Returns:
the blogs entry that was added
Throws:
SystemException - if a system exception occurred

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 void deleteBlogsEntry(long entryId)
                      throws PortalException,
                             SystemException
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 to delete
Throws:
PortalException - if a blogs entry with the primary key could not be found
SystemException - if a system exception occurred

deleteBlogsEntry

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

Specified by:
deleteBlogsEntry in interface BlogsEntryLocalService
Parameters:
blogsEntry - the blogs entry to delete
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery)
                  throws SystemException
Performs a dynamic query on the database and returns the matching rows.

Specified by:
dynamicQuery in interface BlogsEntryLocalService
Parameters:
dynamicQuery - the dynamic query to search with
Returns:
the matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end)
                  throws SystemException
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.

Specified by:
dynamicQuery in interface BlogsEntryLocalService
Parameters:
dynamicQuery - the dynamic query to search with
start - the lower bound of the range of model instances to return
end - the upper bound of the range of model instances to return (not inclusive)
Returns:
the range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end,
                         OrderByComparator orderByComparator)
                  throws SystemException
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.

Specified by:
dynamicQuery in interface BlogsEntryLocalService
Parameters:
dynamicQuery - the dynamic query to search with
start - the lower bound of the range of model instances to return
end - the upper bound of the range of model instances to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery)
                       throws SystemException
Counts the number of rows that match the dynamic query.

Specified by:
dynamicQueryCount in interface BlogsEntryLocalService
Parameters:
dynamicQuery - the dynamic query to search with
Returns:
the number of rows that match the dynamic query
Throws:
SystemException - if a system exception occurred

getBlogsEntry

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

Specified by:
getBlogsEntry in interface BlogsEntryLocalService
Parameters:
entryId - the primary key of the blogs entry to get
Returns:
the blogs entry
Throws:
PortalException - if a blogs entry with the primary key could not be found
SystemException - if a system exception occurred

getBlogsEntryByUuidAndGroupId

public BlogsEntry getBlogsEntryByUuidAndGroupId(String uuid,
                                                long groupId)
                                         throws PortalException,
                                                SystemException
Gets the blogs entry with the UUID and group id.

Specified by:
getBlogsEntryByUuidAndGroupId in interface BlogsEntryLocalService
Parameters:
uuid - the UUID of blogs entry to get
groupId - the group id of the blogs entry to get
Returns:
the blogs entry
Throws:
PortalException - if a blogs entry with the UUID and group id could not be found
SystemException - if a system exception occurred

getBlogsEntries

public List<BlogsEntry> getBlogsEntries(int start,
                                        int end)
                                 throws SystemException
Gets 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.

Specified by:
getBlogsEntries in interface BlogsEntryLocalService
Parameters:
start - the lower bound of the range of blogs entries to return
end - the upper bound of the range of blogs entries to return (not inclusive)
Returns:
the range of blogs entries
Throws:
SystemException - if a system exception occurred

getBlogsEntriesCount

public int getBlogsEntriesCount()
                         throws SystemException
Gets the number of blogs entries.

Specified by:
getBlogsEntriesCount in interface BlogsEntryLocalService
Returns:
the number of blogs entries
Throws:
SystemException - if a system exception occurred

updateBlogsEntry

public BlogsEntry updateBlogsEntry(BlogsEntry blogsEntry)
                            throws SystemException
Updates the blogs entry in the database. Also notifies the appropriate model listeners.

Specified by:
updateBlogsEntry in interface BlogsEntryLocalService
Parameters:
blogsEntry - the blogs entry to update
Returns:
the blogs entry that was updated
Throws:
SystemException - if a system exception occurred

updateBlogsEntry

public BlogsEntry updateBlogsEntry(BlogsEntry blogsEntry,
                                   boolean merge)
                            throws SystemException
Updates the blogs entry in the database. Also notifies the appropriate model listeners.

Specified by:
updateBlogsEntry in interface BlogsEntryLocalService
Parameters:
blogsEntry - the blogs entry to update
merge - whether to merge the blogs entry with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean) for an explanation.
Returns:
the blogs entry that was updated
Throws:
SystemException - if a system exception occurred

addEntry

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

addEntryResources

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

addEntryResources

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

addEntryResources

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

addEntryResources

public void addEntryResources(long entryId,
                              String[] communityPermissions,
                              String[] guestPermissions)
                       throws PortalException,
                              SystemException
Specified by:
addEntryResources in interface BlogsEntryLocalService
Throws:
PortalException
SystemException

deleteEntries

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

deleteEntry

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

deleteEntry

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

getCompanyEntries

public List<BlogsEntry> getCompanyEntries(long companyId,
                                          int status,
                                          int start,
                                          int end)
                                   throws SystemException
Specified by:
getCompanyEntries in interface BlogsEntryLocalService
Throws:
SystemException

getCompanyEntries

public List<BlogsEntry> getCompanyEntries(long companyId,
                                          int status,
                                          int start,
                                          int end,
                                          OrderByComparator obc)
                                   throws SystemException
Specified by:
getCompanyEntries in interface BlogsEntryLocalService
Throws:
SystemException

getCompanyEntriesCount

public int getCompanyEntriesCount(long companyId,
                                  int status)
                           throws SystemException
Specified by:
getCompanyEntriesCount in interface BlogsEntryLocalService
Throws:
SystemException

getEntriesPrevAndNext

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

getEntry

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

getEntry

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

getGroupEntries

public List<BlogsEntry> getGroupEntries(long groupId,
                                        int status,
                                        int start,
                                        int end)
                                 throws SystemException
Specified by:
getGroupEntries in interface BlogsEntryLocalService
Throws:
SystemException

getGroupEntries

public List<BlogsEntry> getGroupEntries(long groupId,
                                        int status,
                                        int start,
                                        int end,
                                        OrderByComparator obc)
                                 throws SystemException
Specified by:
getGroupEntries in interface BlogsEntryLocalService
Throws:
SystemException

getGroupEntriesCount

public int getGroupEntriesCount(long groupId,
                                int status)
                         throws SystemException
Specified by:
getGroupEntriesCount in interface BlogsEntryLocalService
Throws:
SystemException

getGroupsEntries

public List<BlogsEntry> getGroupsEntries(long companyId,
                                         long groupId,
                                         int status,
                                         int start,
                                         int end)
                                  throws SystemException
Specified by:
getGroupsEntries in interface BlogsEntryLocalService
Throws:
SystemException

getGroupUserEntries

public List<BlogsEntry> getGroupUserEntries(long groupId,
                                            long userId,
                                            int status,
                                            int start,
                                            int end)
                                     throws SystemException
Specified by:
getGroupUserEntries in interface BlogsEntryLocalService
Throws:
SystemException

getGroupUserEntries

public List<BlogsEntry> getGroupUserEntries(long groupId,
                                            long userId,
                                            int status,
                                            int start,
                                            int end,
                                            OrderByComparator obc)
                                     throws SystemException
Specified by:
getGroupUserEntries in interface BlogsEntryLocalService
Throws:
SystemException

getGroupUserEntriesCount

public int getGroupUserEntriesCount(long groupId,
                                    long userId,
                                    int status)
                             throws SystemException
Specified by:
getGroupUserEntriesCount in interface BlogsEntryLocalService
Throws:
SystemException

getNoAssetEntries

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

getOrganizationEntries

public List<BlogsEntry> getOrganizationEntries(long organizationId,
                                               int status,
                                               int start,
                                               int end)
                                        throws SystemException
Specified by:
getOrganizationEntries in interface BlogsEntryLocalService
Throws:
SystemException

getOrganizationEntriesCount

public int getOrganizationEntriesCount(long organizationId,
                                       int status)
                                throws SystemException
Specified by:
getOrganizationEntriesCount in interface BlogsEntryLocalService
Throws:
SystemException

updateAsset

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

updateEntry

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

updateEntryResources

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

updateStatus

public BlogsEntry updateStatus(long userId,
                               long entryId,
                               int status,
                               ServiceContext serviceContext)
                        throws PortalException,
                               SystemException
Specified by:
updateStatus in interface BlogsEntryLocalService
Throws:
PortalException
SystemException

getWrappedBlogsEntryLocalService

public BlogsEntryLocalService getWrappedBlogsEntryLocalService()

Liferay 6.0.5