Liferay 6.2-ce-ga5

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
 BlogsEntry addBlogsEntry(BlogsEntry blogsEntry)
          Adds the blogs entry to the database.
 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)
           
 void addEntryResources(BlogsEntry entry, boolean addGroupPermissions, boolean addGuestPermissions)
           
 void addEntryResources(BlogsEntry entry, String[] groupPermissions, String[] guestPermissions)
           
 void addEntryResources(long entryId, boolean addGroupPermissions, boolean addGuestPermissions)
           
 void addEntryResources(long entryId, String[] groupPermissions, String[] guestPermissions)
           
 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)
           
 void deleteEntry(BlogsEntry entry)
           
 void deleteEntry(long entryId)
           
 DynamicQuery dynamicQuery()
           
 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)
          Returns the number of rows that match the dynamic query.
 long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
          Returns the number of rows that match the dynamic query.
 BlogsEntry fetchBlogsEntry(long entryId)
           
 BlogsEntry fetchBlogsEntryByUuidAndCompanyId(String uuid, long companyId)
          Returns the blogs entry with the matching UUID and company.
 BlogsEntry fetchBlogsEntryByUuidAndGroupId(String uuid, long groupId)
          Returns the blogs entry matching the UUID and group.
 String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
 List<BlogsEntry> getBlogsEntries(int start, int end)
          Returns a range of all the blogs entries.
 int getBlogsEntriesCount()
          Returns the number of blogs entries.
 BlogsEntry getBlogsEntry(long entryId)
          Returns the blogs entry with the primary key.
 BlogsEntry getBlogsEntryByUuidAndCompanyId(String uuid, long companyId)
          Returns the blogs entry with the matching UUID and company.
 BlogsEntry getBlogsEntryByUuidAndGroupId(String uuid, long groupId)
          Returns the blogs entry matching the UUID and group.
 List<BlogsEntry> getCompanyEntries(long companyId, Date displayDate, int status, int start, int end)
          Deprecated. As of 6.2.0, replaced by getCompanyEntries(long, Date, QueryDefinition)
 List<BlogsEntry> getCompanyEntries(long companyId, Date displayDate, int status, int start, int end, OrderByComparator obc)
          Deprecated. As of 6.2.0, replaced by getCompanyEntries(long, Date, QueryDefinition)
 List<BlogsEntry> getCompanyEntries(long companyId, Date displayDate, QueryDefinition queryDefinition)
           
 int getCompanyEntriesCount(long companyId, Date displayDate, int status)
          Deprecated. As of 6.2.0, replaced by getCompanyEntriesCount(long, Date, QueryDefinition)
 int getCompanyEntriesCount(long companyId, Date displayDate, QueryDefinition queryDefinition)
           
 BlogsEntry[] getEntriesPrevAndNext(long entryId)
           
 BlogsEntry getEntry(long entryId)
           
 BlogsEntry getEntry(long groupId, String urlTitle)
           
 List<BlogsEntry> getGroupEntries(long groupId, Date displayDate, int status, int start, int end)
          Deprecated. As of 6.2.0, replaced by getGroupEntries(long, Date, QueryDefinition)
 List<BlogsEntry> getGroupEntries(long groupId, Date displayDate, int status, int start, int end, OrderByComparator obc)
          Deprecated. As of 6.2.0, replaced by getGroupEntries(long, Date, QueryDefinition)
 List<BlogsEntry> getGroupEntries(long groupId, Date displayDate, QueryDefinition queryDefinition)
           
 List<BlogsEntry> getGroupEntries(long groupId, int status, int start, int end)
          Deprecated. As of 6.2.0, replaced by getGroupEntries(long, QueryDefinition)
 List<BlogsEntry> getGroupEntries(long groupId, int status, int start, int end, OrderByComparator obc)
          Deprecated. As of 6.2.0, replaced by getGroupEntries(long, QueryDefinition)
 List<BlogsEntry> getGroupEntries(long groupId, QueryDefinition queryDefinition)
           
 int getGroupEntriesCount(long groupId, Date displayDate, int status)
          Deprecated. As of 6.2.0, replaced by getGroupEntriesCount(long, Date, QueryDefinition)
 int getGroupEntriesCount(long groupId, Date displayDate, QueryDefinition queryDefinition)
           
 int getGroupEntriesCount(long groupId, int status)
          Deprecated. As of 6.2.0, replaced by getGroupEntriesCount(long, QueryDefinition)
 int getGroupEntriesCount(long groupId, QueryDefinition queryDefinition)
           
 List<BlogsEntry> getGroupsEntries(long companyId, long groupId, Date displayDate, int status, int start, int end)
          Deprecated. As of 6.2.0, replaced by getGroupsEntries(long, long, Date, QueryDefinition)
 List<BlogsEntry> getGroupsEntries(long companyId, long groupId, Date displayDate, QueryDefinition queryDefinition)
           
 List<BlogsEntry> getGroupUserEntries(long groupId, long userId, Date displayDate, int status, int start, int end)
          Deprecated. As of 6.2.0, replaced by getGroupUserEntries(long, long, Date, QueryDefinition)
 List<BlogsEntry> getGroupUserEntries(long groupId, long userId, Date displayDate, int status, int start, int end, OrderByComparator obc)
          Deprecated. As of 6.2.0, replaced by getGroupUserEntries(long, long, Date, QueryDefinition)
 List<BlogsEntry> getGroupUserEntries(long groupId, long userId, Date displayDate, QueryDefinition queryDefinition)
           
 int getGroupUserEntriesCount(long groupId, long userId, Date displayDate, int status)
          Deprecated. As of 6.2.0, replaced by getGroupUserEntriesCount(long, long, Date, QueryDefinition)
 int getGroupUserEntriesCount(long groupId, long userId, Date displayDate, QueryDefinition queryDefinition)
           
 List<BlogsEntry> getNoAssetEntries()
           
 List<BlogsEntry> getOrganizationEntries(long organizationId, Date displayDate, int status, int start, int end)
          Deprecated. As of 6.2.0, replaced by getOrganizationEntries(long, Date, QueryDefinition)
 List<BlogsEntry> getOrganizationEntries(long organizationId, Date displayDate, int status, int start, int end, OrderByComparator obc)
          Deprecated. As of 6.2.0, replaced by getOrganizationEntries(long, Date, QueryDefinition)
 List<BlogsEntry> getOrganizationEntries(long organizationId, Date displayDate, QueryDefinition queryDefinition)
           
 int getOrganizationEntriesCount(long organizationId, Date displayDate, int status)
          Deprecated. As of 6.2.0, replaced by getOrganizationEntriesCount(long, Date, QueryDefinition)
 int getOrganizationEntriesCount(long organizationId, Date displayDate, QueryDefinition queryDefinition)
           
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 BlogsEntryLocalService getWrappedBlogsEntryLocalService()
          Deprecated. As of 6.1.0, replaced by getWrappedService()
 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.
 void restoreEntryFromTrash(long userId, long entryId)
          Restores the blogs entry with the ID from the recycle bin.
 void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 void setWrappedBlogsEntryLocalService(BlogsEntryLocalService blogsEntryLocalService)
          Deprecated. As of 6.1.0, replaced by setWrappedService(com.liferay.portlet.blogs.service.BlogsEntryLocalService)
 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)
           
 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 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)
           
 void updateEntryResources(BlogsEntry entry, String[] groupPermissions, 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
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 BlogsEntry 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
Returns:
the blogs entry that was removed
Throws:
PortalException - if a blogs entry with the primary key could not be found
SystemException - if a system exception occurred

deleteBlogsEntry

public BlogsEntry 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
Returns:
the blogs entry that was removed
Throws:
SystemException - if a system exception occurred

dynamicQuery

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

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
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. 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
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. 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
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

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

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

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery,
                              Projection projection)
                       throws SystemException
Returns the number of rows that match 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 that match the dynamic query
Throws:
SystemException - if a system exception occurred

fetchBlogsEntry

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

fetchBlogsEntryByUuidAndCompanyId

public BlogsEntry fetchBlogsEntryByUuidAndCompanyId(String uuid,
                                                    long companyId)
                                             throws SystemException
Returns the blogs entry with the matching UUID and company.

Specified by:
fetchBlogsEntryByUuidAndCompanyId in interface BlogsEntryLocalService
Parameters:
uuid - the blogs entry's UUID
companyId - the primary key of the company
Returns:
the matching blogs entry, or null if a matching blogs entry could not be found
Throws:
SystemException - if a system exception occurred

fetchBlogsEntryByUuidAndGroupId

public BlogsEntry fetchBlogsEntryByUuidAndGroupId(String uuid,
                                                  long groupId)
                                           throws SystemException
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
Throws:
SystemException - if a system exception occurred

getBlogsEntry

public BlogsEntry getBlogsEntry(long entryId)
                         throws PortalException,
                                SystemException
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
SystemException - if a system exception occurred

getPersistedModel

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

getBlogsEntryByUuidAndCompanyId

public BlogsEntry getBlogsEntryByUuidAndCompanyId(String uuid,
                                                  long companyId)
                                           throws PortalException,
                                                  SystemException
Returns the blogs entry with the matching UUID and company.

Specified by:
getBlogsEntryByUuidAndCompanyId in interface BlogsEntryLocalService
Parameters:
uuid - the blogs entry's UUID
companyId - the primary key of the company
Returns:
the matching blogs entry
Throws:
PortalException - if a matching blogs entry could not be found
SystemException - if a system exception occurred

getBlogsEntryByUuidAndGroupId

public BlogsEntry getBlogsEntryByUuidAndGroupId(String uuid,
                                                long groupId)
                                         throws PortalException,
                                                SystemException
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
SystemException - if a system exception occurred

getBlogsEntries

public List<BlogsEntry> getBlogsEntries(int start,
                                        int end)
                                 throws SystemException
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
Throws:
SystemException - if a system exception occurred

getBlogsEntriesCount

public int getBlogsEntriesCount()
                         throws SystemException
Returns 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 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
Throws:
SystemException - if a system exception occurred

getBeanIdentifier

public String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Specified by:
getBeanIdentifier in interface BlogsEntryLocalService
Returns:
the Spring bean ID for this bean

setBeanIdentifier

public void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Specified by:
setBeanIdentifier in interface BlogsEntryLocalService
Parameters:
beanIdentifier - the Spring bean ID for this bean

addEntry

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,
                           SystemException
Specified by:
addEntry in interface BlogsEntryLocalService
Throws:
PortalException
SystemException

addEntryResources

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

addEntryResources

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

addEntryResources

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

addEntryResources

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

checkEntries

public void checkEntries()
                  throws PortalException,
                         SystemException
Specified by:
checkEntries 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,
                                          Date displayDate,
                                          int status,
                                          int start,
                                          int end)
                                   throws SystemException
Deprecated. As of 6.2.0, replaced by getCompanyEntries(long, Date, QueryDefinition)

Specified by:
getCompanyEntries in interface BlogsEntryLocalService
Throws:
SystemException

getCompanyEntries

public List<BlogsEntry> getCompanyEntries(long companyId,
                                          Date displayDate,
                                          int status,
                                          int start,
                                          int end,
                                          OrderByComparator obc)
                                   throws SystemException
Deprecated. As of 6.2.0, replaced by getCompanyEntries(long, Date, QueryDefinition)

Specified by:
getCompanyEntries in interface BlogsEntryLocalService
Throws:
SystemException

getCompanyEntries

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

getCompanyEntriesCount

public int getCompanyEntriesCount(long companyId,
                                  Date displayDate,
                                  int status)
                           throws SystemException
Deprecated. As of 6.2.0, replaced by getCompanyEntriesCount(long, Date, QueryDefinition)

Specified by:
getCompanyEntriesCount in interface BlogsEntryLocalService
Throws:
SystemException

getCompanyEntriesCount

public int getCompanyEntriesCount(long companyId,
                                  Date displayDate,
                                  QueryDefinition queryDefinition)
                           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,
                                        Date displayDate,
                                        int status,
                                        int start,
                                        int end)
                                 throws SystemException
Deprecated. As of 6.2.0, replaced by getGroupEntries(long, Date, QueryDefinition)

Specified by:
getGroupEntries in interface BlogsEntryLocalService
Throws:
SystemException

getGroupEntries

public List<BlogsEntry> getGroupEntries(long groupId,
                                        Date displayDate,
                                        int status,
                                        int start,
                                        int end,
                                        OrderByComparator obc)
                                 throws SystemException
Deprecated. As of 6.2.0, replaced by getGroupEntries(long, Date, QueryDefinition)

Specified by:
getGroupEntries in interface BlogsEntryLocalService
Throws:
SystemException

getGroupEntries

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

getGroupEntries

public List<BlogsEntry> getGroupEntries(long groupId,
                                        int status,
                                        int start,
                                        int end)
                                 throws SystemException
Deprecated. As of 6.2.0, replaced by getGroupEntries(long, QueryDefinition)

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
Deprecated. As of 6.2.0, replaced by getGroupEntries(long, QueryDefinition)

Specified by:
getGroupEntries in interface BlogsEntryLocalService
Throws:
SystemException

getGroupEntries

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

getGroupEntriesCount

public int getGroupEntriesCount(long groupId,
                                Date displayDate,
                                int status)
                         throws SystemException
Deprecated. As of 6.2.0, replaced by getGroupEntriesCount(long, Date, QueryDefinition)

Specified by:
getGroupEntriesCount in interface BlogsEntryLocalService
Throws:
SystemException

getGroupEntriesCount

public int getGroupEntriesCount(long groupId,
                                Date displayDate,
                                QueryDefinition queryDefinition)
                         throws SystemException
Specified by:
getGroupEntriesCount in interface BlogsEntryLocalService
Throws:
SystemException

getGroupEntriesCount

public int getGroupEntriesCount(long groupId,
                                int status)
                         throws SystemException
Deprecated. As of 6.2.0, replaced by getGroupEntriesCount(long, QueryDefinition)

Specified by:
getGroupEntriesCount in interface BlogsEntryLocalService
Throws:
SystemException

getGroupEntriesCount

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

getGroupsEntries

public List<BlogsEntry> getGroupsEntries(long companyId,
                                         long groupId,
                                         Date displayDate,
                                         int status,
                                         int start,
                                         int end)
                                  throws SystemException
Deprecated. As of 6.2.0, replaced by getGroupsEntries(long, long, Date, QueryDefinition)

Specified by:
getGroupsEntries in interface BlogsEntryLocalService
Throws:
SystemException

getGroupsEntries

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

getGroupUserEntries

public List<BlogsEntry> getGroupUserEntries(long groupId,
                                            long userId,
                                            Date displayDate,
                                            int status,
                                            int start,
                                            int end)
                                     throws SystemException
Deprecated. As of 6.2.0, replaced by getGroupUserEntries(long, long, Date, QueryDefinition)

Specified by:
getGroupUserEntries in interface BlogsEntryLocalService
Throws:
SystemException

getGroupUserEntries

public List<BlogsEntry> getGroupUserEntries(long groupId,
                                            long userId,
                                            Date displayDate,
                                            int status,
                                            int start,
                                            int end,
                                            OrderByComparator obc)
                                     throws SystemException
Deprecated. As of 6.2.0, replaced by getGroupUserEntries(long, long, Date, QueryDefinition)

Specified by:
getGroupUserEntries in interface BlogsEntryLocalService
Throws:
SystemException

getGroupUserEntries

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

getGroupUserEntriesCount

public int getGroupUserEntriesCount(long groupId,
                                    long userId,
                                    Date displayDate,
                                    int status)
                             throws SystemException
Deprecated. As of 6.2.0, replaced by getGroupUserEntriesCount(long, long, Date, QueryDefinition)

Specified by:
getGroupUserEntriesCount in interface BlogsEntryLocalService
Throws:
SystemException

getGroupUserEntriesCount

public int getGroupUserEntriesCount(long groupId,
                                    long userId,
                                    Date displayDate,
                                    QueryDefinition queryDefinition)
                             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,
                                               Date displayDate,
                                               int status,
                                               int start,
                                               int end)
                                        throws SystemException
Deprecated. As of 6.2.0, replaced by getOrganizationEntries(long, Date, QueryDefinition)

Specified by:
getOrganizationEntries in interface BlogsEntryLocalService
Throws:
SystemException

getOrganizationEntries

public List<BlogsEntry> getOrganizationEntries(long organizationId,
                                               Date displayDate,
                                               int status,
                                               int start,
                                               int end,
                                               OrderByComparator obc)
                                        throws SystemException
Deprecated. As of 6.2.0, replaced by getOrganizationEntries(long, Date, QueryDefinition)

Specified by:
getOrganizationEntries in interface BlogsEntryLocalService
Throws:
SystemException

getOrganizationEntries

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

getOrganizationEntriesCount

public int getOrganizationEntriesCount(long organizationId,
                                       Date displayDate,
                                       int status)
                                throws SystemException
Deprecated. As of 6.2.0, replaced by getOrganizationEntriesCount(long, Date, QueryDefinition)

Specified by:
getOrganizationEntriesCount in interface BlogsEntryLocalService
Throws:
SystemException

getOrganizationEntriesCount

public int getOrganizationEntriesCount(long organizationId,
                                       Date displayDate,
                                       QueryDefinition queryDefinition)
                                throws SystemException
Specified by:
getOrganizationEntriesCount in interface BlogsEntryLocalService
Throws:
SystemException

moveEntriesToTrash

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

moveEntryToTrash

public BlogsEntry moveEntryToTrash(long userId,
                                   BlogsEntry entry)
                            throws PortalException,
                                   SystemException
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 - if a user with the primary key could not be found or if the blogs entry owner's social activity counter could not be updated
SystemException - if a system exception occurred

moveEntryToTrash

public BlogsEntry moveEntryToTrash(long userId,
                                   long entryId)
                            throws PortalException,
                                   SystemException
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 - if a user or blogs entry with the primary key could not be found or if the blogs entry owner's social activity counter could not be updated
SystemException - if a system exception occurred

restoreEntryFromTrash

public void restoreEntryFromTrash(long userId,
                                  long entryId)
                           throws PortalException,
                                  SystemException
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
Throws:
PortalException - if a user or blogs entry with the primary key could not be found or if the blogs entry owner's social activity counter could not be updated
SystemException - if a system exception occurred

subscribe

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

unsubscribe

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

updateAsset

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

updateEntry

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,
                              SystemException
Specified by:
updateEntry in interface BlogsEntryLocalService
Throws:
PortalException
SystemException

updateEntryResources

public void updateEntryResources(BlogsEntry entry,
                                 String[] groupPermissions,
                                 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()
Deprecated. As of 6.1.0, replaced by getWrappedService()


setWrappedBlogsEntryLocalService

public void setWrappedBlogsEntryLocalService(BlogsEntryLocalService blogsEntryLocalService)
Deprecated. As of 6.1.0, replaced by setWrappedService(com.liferay.portlet.blogs.service.BlogsEntryLocalService)


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 6.2-ce-ga5