Liferay 6.2-ce-ga5

com.liferay.portlet.blogs.service
Class BlogsEntryLocalServiceUtil

java.lang.Object
  extended by com.liferay.portlet.blogs.service.BlogsEntryLocalServiceUtil

@ProviderType
public class BlogsEntryLocalServiceUtil
extends Object

Provides the local service utility for BlogsEntry. This utility wraps com.liferay.portlet.blogs.service.impl.BlogsEntryLocalServiceImpl and is the primary access point for service operations in application layer code running on the local server. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

See Also:
BlogsEntryLocalService, com.liferay.portlet.blogs.service.base.BlogsEntryLocalServiceBaseImpl, com.liferay.portlet.blogs.service.impl.BlogsEntryLocalServiceImpl

Constructor Summary
BlogsEntryLocalServiceUtil()
           
 
Method Summary
static BlogsEntry addBlogsEntry(BlogsEntry blogsEntry)
          Adds the blogs entry to the database.
static 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)
           
static void addEntryResources(BlogsEntry entry, boolean addGroupPermissions, boolean addGuestPermissions)
           
static void addEntryResources(BlogsEntry entry, String[] groupPermissions, String[] guestPermissions)
           
static void addEntryResources(long entryId, boolean addGroupPermissions, boolean addGuestPermissions)
           
static void addEntryResources(long entryId, String[] groupPermissions, String[] guestPermissions)
           
static void checkEntries()
           
static BlogsEntry createBlogsEntry(long entryId)
          Creates a new blogs entry with the primary key.
static BlogsEntry deleteBlogsEntry(BlogsEntry blogsEntry)
          Deletes the blogs entry from the database.
static BlogsEntry deleteBlogsEntry(long entryId)
          Deletes the blogs entry with the primary key from the database.
static void deleteEntries(long groupId)
           
static void deleteEntry(BlogsEntry entry)
           
static void deleteEntry(long entryId)
           
static DynamicQuery dynamicQuery()
           
static List dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
static List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
static 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.
static long dynamicQueryCount(DynamicQuery dynamicQuery)
          Returns the number of rows that match the dynamic query.
static long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
          Returns the number of rows that match the dynamic query.
static BlogsEntry fetchBlogsEntry(long entryId)
           
static BlogsEntry fetchBlogsEntryByUuidAndCompanyId(String uuid, long companyId)
          Returns the blogs entry with the matching UUID and company.
static BlogsEntry fetchBlogsEntryByUuidAndGroupId(String uuid, long groupId)
          Returns the blogs entry matching the UUID and group.
static String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
static List<BlogsEntry> getBlogsEntries(int start, int end)
          Returns a range of all the blogs entries.
static int getBlogsEntriesCount()
          Returns the number of blogs entries.
static BlogsEntry getBlogsEntry(long entryId)
          Returns the blogs entry with the primary key.
static BlogsEntry getBlogsEntryByUuidAndCompanyId(String uuid, long companyId)
          Returns the blogs entry with the matching UUID and company.
static BlogsEntry getBlogsEntryByUuidAndGroupId(String uuid, long groupId)
          Returns the blogs entry matching the UUID and group.
static 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)
static 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)
static List<BlogsEntry> getCompanyEntries(long companyId, Date displayDate, QueryDefinition queryDefinition)
           
static int getCompanyEntriesCount(long companyId, Date displayDate, int status)
          Deprecated. As of 6.2.0, replaced by getCompanyEntriesCount(long, Date, QueryDefinition)
static int getCompanyEntriesCount(long companyId, Date displayDate, QueryDefinition queryDefinition)
           
static BlogsEntry[] getEntriesPrevAndNext(long entryId)
           
static BlogsEntry getEntry(long entryId)
           
static BlogsEntry getEntry(long groupId, String urlTitle)
           
static 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)
static 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)
static List<BlogsEntry> getGroupEntries(long groupId, Date displayDate, QueryDefinition queryDefinition)
           
static List<BlogsEntry> getGroupEntries(long groupId, int status, int start, int end)
          Deprecated. As of 6.2.0, replaced by getGroupEntries(long, QueryDefinition)
static List<BlogsEntry> getGroupEntries(long groupId, int status, int start, int end, OrderByComparator obc)
          Deprecated. As of 6.2.0, replaced by getGroupEntries(long, QueryDefinition)
static List<BlogsEntry> getGroupEntries(long groupId, QueryDefinition queryDefinition)
           
static int getGroupEntriesCount(long groupId, Date displayDate, int status)
          Deprecated. As of 6.2.0, replaced by getGroupEntriesCount(long, Date, QueryDefinition)
static int getGroupEntriesCount(long groupId, Date displayDate, QueryDefinition queryDefinition)
           
static int getGroupEntriesCount(long groupId, int status)
          Deprecated. As of 6.2.0, replaced by getGroupEntriesCount(long, QueryDefinition)
static int getGroupEntriesCount(long groupId, QueryDefinition queryDefinition)
           
static 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)
static List<BlogsEntry> getGroupsEntries(long companyId, long groupId, Date displayDate, QueryDefinition queryDefinition)
           
static 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)
static 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)
static List<BlogsEntry> getGroupUserEntries(long groupId, long userId, Date displayDate, QueryDefinition queryDefinition)
           
static int getGroupUserEntriesCount(long groupId, long userId, Date displayDate, int status)
          Deprecated. As of 6.2.0, replaced by getGroupUserEntriesCount(long, long, Date, QueryDefinition)
static int getGroupUserEntriesCount(long groupId, long userId, Date displayDate, QueryDefinition queryDefinition)
           
static List<BlogsEntry> getNoAssetEntries()
           
static 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)
static 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)
static List<BlogsEntry> getOrganizationEntries(long organizationId, Date displayDate, QueryDefinition queryDefinition)
           
static int getOrganizationEntriesCount(long organizationId, Date displayDate, int status)
          Deprecated. As of 6.2.0, replaced by getOrganizationEntriesCount(long, Date, QueryDefinition)
static int getOrganizationEntriesCount(long organizationId, Date displayDate, QueryDefinition queryDefinition)
           
static PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
static BlogsEntryLocalService getService()
           
static void moveEntriesToTrash(long groupId, long userId)
           
static BlogsEntry moveEntryToTrash(long userId, BlogsEntry entry)
          Moves the blogs entry to the recycle bin.
static BlogsEntry moveEntryToTrash(long userId, long entryId)
          Moves the blogs entry with the ID to the recycle bin.
static void restoreEntryFromTrash(long userId, long entryId)
          Restores the blogs entry with the ID from the recycle bin.
static void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 void setService(BlogsEntryLocalService service)
          Deprecated. As of 6.2.0
static void subscribe(long userId, long groupId)
           
static void unsubscribe(long userId, long groupId)
           
static void updateAsset(long userId, BlogsEntry entry, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds)
           
static BlogsEntry updateBlogsEntry(BlogsEntry blogsEntry)
          Updates the blogs entry in the database or adds it if it does not yet exist.
static 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)
           
static void updateEntryResources(BlogsEntry entry, String[] groupPermissions, String[] guestPermissions)
           
static 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

BlogsEntryLocalServiceUtil

public BlogsEntryLocalServiceUtil()
Method Detail

addBlogsEntry

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

Parameters:
blogsEntry - the blogs entry
Returns:
the blogs entry that was added
Throws:
SystemException - if a system exception occurred

createBlogsEntry

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

Parameters:
entryId - the primary key for the new blogs entry
Returns:
the new blogs entry

deleteBlogsEntry

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

Parameters:
entryId - the primary key of the blogs entry
Returns:
the blogs entry that was removed
Throws:
PortalException - if a blogs entry with the primary key could not be found
SystemException - if a system exception occurred

deleteBlogsEntry

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

Parameters:
blogsEntry - the blogs entry
Returns:
the blogs entry that was removed
Throws:
SystemException - if a system exception occurred

dynamicQuery

public static DynamicQuery dynamicQuery()

dynamicQuery

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

Parameters:
dynamicQuery - the dynamic query
Returns:
the matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

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

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

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 static long dynamicQueryCount(DynamicQuery dynamicQuery)
                              throws SystemException
Returns the number of rows that match the dynamic query.

Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows that match the dynamic query
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

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

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 static BlogsEntry fetchBlogsEntry(long entryId)
                                  throws SystemException
Throws:
SystemException

fetchBlogsEntryByUuidAndCompanyId

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

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 static BlogsEntry fetchBlogsEntryByUuidAndGroupId(String uuid,
                                                         long groupId)
                                                  throws SystemException
Returns the blogs entry matching the UUID and group.

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

getBlogsEntry

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

Parameters:
entryId - the primary key of the blogs entry
Returns:
the blogs entry
Throws:
PortalException - if a blogs entry with the primary key could not be found
SystemException - if a system exception occurred

getPersistedModel

public static PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                        throws PortalException,
                                               SystemException
Throws:
PortalException
SystemException

getBlogsEntryByUuidAndCompanyId

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

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 static BlogsEntry getBlogsEntryByUuidAndGroupId(String uuid,
                                                       long groupId)
                                                throws PortalException,
                                                       SystemException
Returns the blogs entry matching the UUID and group.

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

getBlogsEntries

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

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 static int getBlogsEntriesCount()
                                throws SystemException
Returns the number of blogs entries.

Returns:
the number of blogs entries
Throws:
SystemException - if a system exception occurred

updateBlogsEntry

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

Parameters:
blogsEntry - the blogs entry
Returns:
the blogs entry that was updated
Throws:
SystemException - if a system exception occurred

getBeanIdentifier

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

Returns:
the Spring bean ID for this bean

setBeanIdentifier

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

Parameters:
beanIdentifier - the Spring bean ID for this bean

addEntry

public static 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
Throws:
PortalException
SystemException

addEntryResources

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

addEntryResources

public static void addEntryResources(BlogsEntry entry,
                                     String[] groupPermissions,
                                     String[] guestPermissions)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

addEntryResources

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

addEntryResources

public static void addEntryResources(long entryId,
                                     String[] groupPermissions,
                                     String[] guestPermissions)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

checkEntries

public static void checkEntries()
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

deleteEntries

public static void deleteEntries(long groupId)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

deleteEntry

public static void deleteEntry(BlogsEntry entry)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

deleteEntry

public static void deleteEntry(long entryId)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

getCompanyEntries

public static 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)

Throws:
SystemException

getCompanyEntries

public static 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)

Throws:
SystemException

getCompanyEntries

public static List<BlogsEntry> getCompanyEntries(long companyId,
                                                 Date displayDate,
                                                 QueryDefinition queryDefinition)
                                          throws SystemException
Throws:
SystemException

getCompanyEntriesCount

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

Throws:
SystemException

getCompanyEntriesCount

public static int getCompanyEntriesCount(long companyId,
                                         Date displayDate,
                                         QueryDefinition queryDefinition)
                                  throws SystemException
Throws:
SystemException

getEntriesPrevAndNext

public static BlogsEntry[] getEntriesPrevAndNext(long entryId)
                                          throws PortalException,
                                                 SystemException
Throws:
PortalException
SystemException

getEntry

public static BlogsEntry getEntry(long entryId)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

getEntry

public static BlogsEntry getEntry(long groupId,
                                  String urlTitle)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

getGroupEntries

public static 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)

Throws:
SystemException

getGroupEntries

public static 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)

Throws:
SystemException

getGroupEntries

public static List<BlogsEntry> getGroupEntries(long groupId,
                                               Date displayDate,
                                               QueryDefinition queryDefinition)
                                        throws SystemException
Throws:
SystemException

getGroupEntries

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

Throws:
SystemException

getGroupEntries

public static 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)

Throws:
SystemException

getGroupEntries

public static List<BlogsEntry> getGroupEntries(long groupId,
                                               QueryDefinition queryDefinition)
                                        throws SystemException
Throws:
SystemException

getGroupEntriesCount

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

Throws:
SystemException

getGroupEntriesCount

public static int getGroupEntriesCount(long groupId,
                                       Date displayDate,
                                       QueryDefinition queryDefinition)
                                throws SystemException
Throws:
SystemException

getGroupEntriesCount

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

Throws:
SystemException

getGroupEntriesCount

public static int getGroupEntriesCount(long groupId,
                                       QueryDefinition queryDefinition)
                                throws SystemException
Throws:
SystemException

getGroupsEntries

public static 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)

Throws:
SystemException

getGroupsEntries

public static List<BlogsEntry> getGroupsEntries(long companyId,
                                                long groupId,
                                                Date displayDate,
                                                QueryDefinition queryDefinition)
                                         throws SystemException
Throws:
SystemException

getGroupUserEntries

public static 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)

Throws:
SystemException

getGroupUserEntries

public static 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)

Throws:
SystemException

getGroupUserEntries

public static List<BlogsEntry> getGroupUserEntries(long groupId,
                                                   long userId,
                                                   Date displayDate,
                                                   QueryDefinition queryDefinition)
                                            throws SystemException
Throws:
SystemException

getGroupUserEntriesCount

public static 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)

Throws:
SystemException

getGroupUserEntriesCount

public static int getGroupUserEntriesCount(long groupId,
                                           long userId,
                                           Date displayDate,
                                           QueryDefinition queryDefinition)
                                    throws SystemException
Throws:
SystemException

getNoAssetEntries

public static List<BlogsEntry> getNoAssetEntries()
                                          throws SystemException
Throws:
SystemException

getOrganizationEntries

public static 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)

Throws:
SystemException

getOrganizationEntries

public static 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)

Throws:
SystemException

getOrganizationEntries

public static List<BlogsEntry> getOrganizationEntries(long organizationId,
                                                      Date displayDate,
                                                      QueryDefinition queryDefinition)
                                               throws SystemException
Throws:
SystemException

getOrganizationEntriesCount

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

Throws:
SystemException

getOrganizationEntriesCount

public static int getOrganizationEntriesCount(long organizationId,
                                              Date displayDate,
                                              QueryDefinition queryDefinition)
                                       throws SystemException
Throws:
SystemException

moveEntriesToTrash

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

moveEntryToTrash

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

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 static BlogsEntry moveEntryToTrash(long userId,
                                          long entryId)
                                   throws PortalException,
                                          SystemException
Moves the blogs entry with the ID to the recycle bin.

Parameters:
userId - the primary key of the user moving the blogs entry
entryId - the primary key of the blogs entry to be moved
Returns:
the moved blogs entry
Throws:
PortalException - 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 static 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.

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 static void subscribe(long userId,
                             long groupId)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

unsubscribe

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

updateAsset

public static void updateAsset(long userId,
                               BlogsEntry entry,
                               long[] assetCategoryIds,
                               String[] assetTagNames,
                               long[] assetLinkEntryIds)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

updateEntry

public static 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
Throws:
PortalException
SystemException

updateEntryResources

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

updateStatus

public static BlogsEntry updateStatus(long userId,
                                      long entryId,
                                      int status,
                                      ServiceContext serviceContext)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

getService

public static BlogsEntryLocalService getService()

setService

public void setService(BlogsEntryLocalService service)
Deprecated. As of 6.2.0


Liferay 6.2-ce-ga5