Liferay 6.1.2-ce-ga3

com.liferay.portlet.blogs.service
Interface BlogsEntryLocalService

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

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

The interface for the blogs entry local service.

This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

See Also:
BlogsEntryLocalServiceUtil, BlogsEntryLocalServiceBaseImpl, BlogsEntryLocalServiceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

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.
 BlogsEntry fetchBlogsEntry(long entryId)
           
 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 getBlogsEntryByUuidAndGroupId(String uuid, long groupId)
          Returns the blogs entry with the UUID in the group.
 List<BlogsEntry> getCompanyEntries(long companyId, Date displayDate, int status, int start, int end)
           
 List<BlogsEntry> getCompanyEntries(long companyId, Date displayDate, int status, int start, int end, OrderByComparator obc)
           
 int getCompanyEntriesCount(long companyId, Date displayDate, int status)
           
 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)
           
 List<BlogsEntry> getGroupEntries(long groupId, Date displayDate, int status, int start, int end, OrderByComparator obc)
           
 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, Date displayDate, int status)
           
 int getGroupEntriesCount(long groupId, int status)
           
 List<BlogsEntry> getGroupsEntries(long companyId, long groupId, Date displayDate, int status, int start, int end)
           
 List<BlogsEntry> getGroupUserEntries(long groupId, long userId, Date displayDate, int status, int start, int end)
           
 List<BlogsEntry> getGroupUserEntries(long groupId, long userId, Date displayDate, int status, int start, int end, OrderByComparator obc)
           
 int getGroupUserEntriesCount(long groupId, long userId, Date displayDate, int status)
           
 List<BlogsEntry> getNoAssetEntries()
           
 List<BlogsEntry> getOrganizationEntries(long organizationId, Date displayDate, int status, int start, int end)
           
 List<BlogsEntry> getOrganizationEntries(long organizationId, Date displayDate, int status, int start, int end, OrderByComparator obc)
           
 int getOrganizationEntriesCount(long organizationId, Date displayDate, int status)
           
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 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 updateBlogsEntry(BlogsEntry blogsEntry, boolean merge)
          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)
           
 

Method Detail

addBlogsEntry

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

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

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

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

DynamicQuery dynamicQuery()

dynamicQuery

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

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.

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

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.

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

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

fetchBlogsEntry

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

getBlogsEntry

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

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

getBlogsEntryByUuidAndGroupId

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

Parameters:
uuid - the UUID of blogs entry
groupId - the group id of the blogs entry
Returns:
the blogs entry
Throws:
PortalException - if a blogs entry with the UUID in the group could not be found
SystemException - if a system exception occurred

getBlogsEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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.

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

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

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

updateBlogsEntry

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

updateBlogsEntry

BlogsEntry updateBlogsEntry(BlogsEntry blogsEntry,
                            boolean merge)
                            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
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

getBeanIdentifier

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

Returns:
the Spring bean ID for this bean

setBeanIdentifier

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

Parameters:
beanIdentifier - the Spring bean ID for this bean

addEntry

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

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

addEntryResources

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

addEntryResources

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

addEntryResources

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

checkEntries

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

deleteEntries

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

deleteEntry

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

deleteEntry

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

getCompanyEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<BlogsEntry> getCompanyEntries(long companyId,
                                                                            Date displayDate,
                                                                            int status,
                                                                            int start,
                                                                            int end)
                                   throws SystemException
Throws:
SystemException

getCompanyEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<BlogsEntry> getCompanyEntries(long companyId,
                                                                            Date displayDate,
                                                                            int status,
                                                                            int start,
                                                                            int end,
                                                                            OrderByComparator obc)
                                   throws SystemException
Throws:
SystemException

getCompanyEntriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getCompanyEntriesCount(long companyId,
                                                                    Date displayDate,
                                                                    int status)
                           throws SystemException
Throws:
SystemException

getEntriesPrevAndNext

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

getEntry

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

getEntry

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

getGroupEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<BlogsEntry> getGroupEntries(long groupId,
                                                                          Date displayDate,
                                                                          int status,
                                                                          int start,
                                                                          int end)
                                 throws SystemException
Throws:
SystemException

getGroupEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<BlogsEntry> getGroupEntries(long groupId,
                                                                          Date displayDate,
                                                                          int status,
                                                                          int start,
                                                                          int end,
                                                                          OrderByComparator obc)
                                 throws SystemException
Throws:
SystemException

getGroupEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<BlogsEntry> getGroupEntries(long groupId,
                                                                          int status,
                                                                          int start,
                                                                          int end)
                                 throws SystemException
Throws:
SystemException

getGroupEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<BlogsEntry> getGroupEntries(long groupId,
                                                                          int status,
                                                                          int start,
                                                                          int end,
                                                                          OrderByComparator obc)
                                 throws SystemException
Throws:
SystemException

getGroupEntriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getGroupEntriesCount(long groupId,
                                                                  Date displayDate,
                                                                  int status)
                         throws SystemException
Throws:
SystemException

getGroupEntriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getGroupEntriesCount(long groupId,
                                                                  int status)
                         throws SystemException
Throws:
SystemException

getGroupsEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<BlogsEntry> getGroupsEntries(long companyId,
                                                                           long groupId,
                                                                           Date displayDate,
                                                                           int status,
                                                                           int start,
                                                                           int end)
                                  throws SystemException
Throws:
SystemException

getGroupUserEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<BlogsEntry> getGroupUserEntries(long groupId,
                                                                              long userId,
                                                                              Date displayDate,
                                                                              int status,
                                                                              int start,
                                                                              int end)
                                     throws SystemException
Throws:
SystemException

getGroupUserEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<BlogsEntry> getGroupUserEntries(long groupId,
                                                                              long userId,
                                                                              Date displayDate,
                                                                              int status,
                                                                              int start,
                                                                              int end,
                                                                              OrderByComparator obc)
                                     throws SystemException
Throws:
SystemException

getGroupUserEntriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getGroupUserEntriesCount(long groupId,
                                                                      long userId,
                                                                      Date displayDate,
                                                                      int status)
                             throws SystemException
Throws:
SystemException

getNoAssetEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<BlogsEntry> getNoAssetEntries()
                                   throws SystemException
Throws:
SystemException

getOrganizationEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<BlogsEntry> getOrganizationEntries(long organizationId,
                                                                                 Date displayDate,
                                                                                 int status,
                                                                                 int start,
                                                                                 int end)
                                        throws SystemException
Throws:
SystemException

getOrganizationEntries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<BlogsEntry> getOrganizationEntries(long organizationId,
                                                                                 Date displayDate,
                                                                                 int status,
                                                                                 int start,
                                                                                 int end,
                                                                                 OrderByComparator obc)
                                        throws SystemException
Throws:
SystemException

getOrganizationEntriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getOrganizationEntriesCount(long organizationId,
                                                                         Date displayDate,
                                                                         int status)
                                throws SystemException
Throws:
SystemException

subscribe

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

unsubscribe

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

updateAsset

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

updateEntry

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

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

updateStatus

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

Liferay 6.1.2-ce-ga3