Liferay 7.0-ce-b4

com.liferay.portlet.blogs.service.impl
Class BlogsEntryLocalServiceImpl

java.lang.Object
  extended by com.liferay.portal.service.BaseLocalServiceImpl
      extended by com.liferay.portlet.blogs.service.base.BlogsEntryLocalServiceBaseImpl
          extended by com.liferay.portlet.blogs.service.impl.BlogsEntryLocalServiceImpl
All Implemented Interfaces:
IdentifiableOSGiService, BaseLocalService, PersistedModelLocalService, BlogsEntryLocalService

public class BlogsEntryLocalServiceImpl
extends BlogsEntryLocalServiceBaseImpl

Provides the local service for accessing, adding, checking, deleting, subscription handling of, trash handling of, and updating blog entries.


Field Summary
protected  CommentManager commentManager
           
 
Fields inherited from class com.liferay.portlet.blogs.service.base.BlogsEntryLocalServiceBaseImpl
assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetLinkLocalService, assetLinkPersistence, blogsEntryFinder, blogsEntryLocalService, blogsEntryPersistence, blogsStatsUserFinder, blogsStatsUserLocalService, blogsStatsUserPersistence, companyLocalService, companyPersistence, counterLocalService, expandoRowLocalService, expandoRowPersistence, groupFinder, groupLocalService, groupPersistence, imageLocalService, imagePersistence, organizationFinder, organizationLocalService, organizationPersistence, persistedModelLocalServiceRegistry, portletPreferencesFinder, portletPreferencesLocalService, portletPreferencesPersistence, ratingsStatsFinder, ratingsStatsLocalService, ratingsStatsPersistence, resourceLocalService, subscriptionLocalService, subscriptionPersistence, trashEntryLocalService, trashEntryPersistence, userFinder, userLocalService, userPersistence, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence
 
Constructor Summary
BlogsEntryLocalServiceImpl()
           
 
Method Summary
 Folder addAttachmentsFolder(long userId, long groupId)
           
 void addCoverImage(long entryId, ImageSelector imageSelector)
           
protected  long addCoverImageFileEntry(long userId, long groupId, long entryId, ImageSelector imageSelector)
           
protected  Folder addCoverImageFolder(long userId, long groupId)
           
protected  void addDiscussion(BlogsEntry entry, long userId, long groupId)
           
 BlogsEntry addEntry(long userId, String title, String content, Date displayDate, ServiceContext serviceContext)
           
 BlogsEntry addEntry(long userId, String title, String content, ServiceContext serviceContext)
           
 BlogsEntry addEntry(long userId, String title, String description, String content, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks, String[] trackbacks, boolean smallImage, String smallImageURL, String smallImageFileName, InputStream smallImageInputStream, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, replaced by addEntry(long, String, String, String, String, int, int, int, int, int, boolean, boolean, String[], String, ImageSelector, ImageSelector, ServiceContext)
 BlogsEntry addEntry(long userId, String title, String subtitle, String description, String content, Date displayDate, boolean allowPingbacks, boolean allowTrackbacks, String[] trackbacks, String coverImageCaption, ImageSelector coverImageImageSelector, ImageSelector smallImageImageSelector, ServiceContext serviceContext)
           
 BlogsEntry addEntry(long userId, String title, String subtitle, String description, String content, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks, String[] trackbacks, String coverImageCaption, ImageSelector coverImageImageSelector, ImageSelector smallImageImageSelector, ServiceContext serviceContext)
           
 void addEntryResources(BlogsEntry entry, boolean addGroupPermissions, boolean addGuestPermissions)
           
 void addEntryResources(BlogsEntry entry, ModelPermissions modelPermissions)
           
 void addEntryResources(long entryId, boolean addGroupPermissions, boolean addGuestPermissions)
           
 void addEntryResources(long entryId, ModelPermissions modelPermissions)
           
 long addOriginalImageFileEntry(long userId, long groupId, long entryId, ImageSelector imageSelector)
           
protected  long addProcessedImageFileEntry(long userId, long groupId, long entryId, long folderId, String title, String mimeType, byte[] bytes)
           
 void addSmallImage(long entryId, ImageSelector imageSelector)
           
protected  long addSmallImageFileEntry(long userId, long groupId, long entryId, ImageSelector imageSelector)
           
protected  Folder addSmallImageFolder(long userId, long groupId)
           
 void checkEntries()
           
protected  void deleteDiscussion(BlogsEntry entry)
           
 void deleteEntries(long groupId)
           
 BlogsEntry deleteEntry(BlogsEntry entry)
           
 void deleteEntry(long entryId)
           
protected  Folder doAddFolder(long userId, long groupId, String folderName)
           
 Folder fetchAttachmentsFolder(long userId, long groupId)
           
 List<BlogsEntry> getCompanyEntries(long companyId, Date displayDate, QueryDefinition<BlogsEntry> queryDefinition)
           
 int getCompanyEntriesCount(long companyId, Date displayDate, QueryDefinition<BlogsEntry> queryDefinition)
           
 BlogsEntry[] getEntriesPrevAndNext(long entryId)
           
 BlogsEntry getEntry(long entryId)
           
 BlogsEntry getEntry(long groupId, String urlTitle)
           
protected  String getEntryURL(BlogsEntry entry, ServiceContext serviceContext)
           
 List<BlogsEntry> getGroupEntries(long groupId, Date displayDate, QueryDefinition<BlogsEntry> queryDefinition)
           
 List<BlogsEntry> getGroupEntries(long groupId, QueryDefinition<BlogsEntry> queryDefinition)
           
 int getGroupEntriesCount(long groupId, Date displayDate, QueryDefinition<BlogsEntry> queryDefinition)
           
 int getGroupEntriesCount(long groupId, QueryDefinition<BlogsEntry> queryDefinition)
           
 List<BlogsEntry> getGroupsEntries(long companyId, long groupId, Date displayDate, QueryDefinition<BlogsEntry> queryDefinition)
           
 List<BlogsEntry> getGroupUserEntries(long groupId, long userId, Date displayDate, QueryDefinition<BlogsEntry> queryDefinition)
           
 int getGroupUserEntriesCount(long groupId, long userId, Date displayDate, QueryDefinition<BlogsEntry> queryDefinition)
           
 List<BlogsEntry> getNoAssetEntries()
           
 List<BlogsEntry> getOrganizationEntries(long organizationId, Date displayDate, QueryDefinition<BlogsEntry> queryDefinition)
           
 int getOrganizationEntriesCount(long organizationId, Date displayDate, QueryDefinition<BlogsEntry> queryDefinition)
           
protected  String getUniqueUrlTitle(long entryId, long groupId, String title)
           
protected  String getUniqueUrlTitle(long entryId, String title, String oldUrlTitle, ServiceContext serviceContext)
           
 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.
protected  void notifySubscribers(long userId, BlogsEntry entry, ServiceContext serviceContext, Map<String,Serializable> workflowContext)
           
protected  void pingGoogle(BlogsEntry entry, ServiceContext serviceContext)
           
protected  void pingPingback(BlogsEntry entry, ServiceContext serviceContext)
           
protected  void pingTrackbacks(BlogsEntry entry, String[] trackbacks, boolean pingOldTrackbacks, ServiceContext serviceContext)
           
 BlogsEntry restoreEntryFromTrash(long userId, long entryId)
          Restores the blogs entry with the ID from the recycle bin.
protected  BlogsEntry startWorkflowInstance(long userId, BlogsEntry entry, ServiceContext serviceContext)
           
 void subscribe(long userId, long groupId)
           
 void unsubscribe(long userId, long groupId)
           
 void updateAsset(long userId, BlogsEntry entry, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds, Double priority)
           
 BlogsEntry updateEntry(long userId, long entryId, String title, String content, ServiceContext serviceContext)
           
 BlogsEntry updateEntry(long userId, long entryId, String title, String description, String content, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks, String[] trackbacks, boolean smallImage, String smallImageURL, String smallImageFileName, InputStream smallImageInputStream, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, replaced by updateEntry(long, long, String, String, String, String, int, int, int, int, int, boolean, boolean, String[], String, ImageSelector, ImageSelector, ServiceContext)
 BlogsEntry updateEntry(long userId, long entryId, String title, String subtitle, String description, String content, Date displayDate, boolean allowPingbacks, boolean allowTrackbacks, String[] trackbacks, String coverImageCaption, ImageSelector coverImageImageSelector, ImageSelector smallImageImageSelector, ServiceContext serviceContext)
           
 BlogsEntry updateEntry(long userId, long entryId, String title, String subtitle, String description, String content, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks, String[] trackbacks, String coverImageCaption, ImageSelector coverImageImageSelector, ImageSelector smallImageImageSelector, ServiceContext serviceContext)
           
 void updateEntryResources(BlogsEntry entry, ModelPermissions modelPermissions)
           
 void updateEntryResources(BlogsEntry entry, String[] groupPermissions, String[] guestPermissions)
           
 BlogsEntry updateStatus(long userId, long entryId, int status, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, replaced by updateStatus(long, long, int, ServiceContext, Map)
 BlogsEntry updateStatus(long userId, long entryId, int status, ServiceContext serviceContext, Map<String,Serializable> workflowContext)
           
protected  void validate(long smallImageFileEntryId)
           
protected  void validate(String title, String content)
           
 
Methods inherited from class com.liferay.portlet.blogs.service.base.BlogsEntryLocalServiceBaseImpl
addBlogsEntry, afterPropertiesSet, createBlogsEntry, deleteBlogsEntry, deleteBlogsEntry, deletePersistedModel, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchBlogsEntry, fetchBlogsEntryByUuidAndGroupId, getActionableDynamicQuery, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetLinkLocalService, getAssetLinkPersistence, getBlogsEntries, getBlogsEntriesByUuidAndCompanyId, getBlogsEntriesByUuidAndCompanyId, getBlogsEntriesCount, getBlogsEntry, getBlogsEntryByUuidAndGroupId, getBlogsEntryFinder, getBlogsEntryLocalService, getBlogsEntryPersistence, getBlogsStatsUserFinder, getBlogsStatsUserLocalService, getBlogsStatsUserPersistence, getCompanyLocalService, getCompanyPersistence, getCounterLocalService, getExpandoRowLocalService, getExpandoRowPersistence, getExportActionableDynamicQuery, getGroupFinder, getGroupLocalService, getGroupPersistence, getImageLocalService, getImagePersistence, getIndexableActionableDynamicQuery, getModelClass, getModelClassName, getOrganizationFinder, getOrganizationLocalService, getOrganizationPersistence, getOSGiServiceIdentifier, getPersistedModel, getPortletPreferencesFinder, getPortletPreferencesLocalService, getPortletPreferencesPersistence, getRatingsStatsFinder, getRatingsStatsLocalService, getRatingsStatsPersistence, getResourceLocalService, getSubscriptionLocalService, getSubscriptionPersistence, getTrashEntryLocalService, getTrashEntryPersistence, getUserFinder, getUserLocalService, getUserPersistence, getWorkflowInstanceLinkLocalService, getWorkflowInstanceLinkPersistence, initActionableDynamicQuery, runSQL, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetLinkLocalService, setAssetLinkPersistence, setBlogsEntryFinder, setBlogsEntryLocalService, setBlogsEntryPersistence, setBlogsStatsUserFinder, setBlogsStatsUserLocalService, setBlogsStatsUserPersistence, setCompanyLocalService, setCompanyPersistence, setCounterLocalService, setExpandoRowLocalService, setExpandoRowPersistence, setGroupFinder, setGroupLocalService, setGroupPersistence, setImageLocalService, setImagePersistence, setOrganizationFinder, setOrganizationLocalService, setOrganizationPersistence, setPortletPreferencesFinder, setPortletPreferencesLocalService, setPortletPreferencesPersistence, setRatingsStatsFinder, setRatingsStatsLocalService, setRatingsStatsPersistence, setResourceLocalService, setSubscriptionLocalService, setSubscriptionPersistence, setTrashEntryLocalService, setTrashEntryPersistence, setUserFinder, setUserLocalService, setUserPersistence, setWorkflowInstanceLinkLocalService, setWorkflowInstanceLinkPersistence, updateBlogsEntry
 
Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl
getClassLoader, getLocalizationMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commentManager

protected CommentManager commentManager
Constructor Detail

BlogsEntryLocalServiceImpl

public BlogsEntryLocalServiceImpl()
Method Detail

addAttachmentsFolder

public Folder addAttachmentsFolder(long userId,
                                   long groupId)
                            throws PortalException
Throws:
PortalException

addCoverImage

public void addCoverImage(long entryId,
                          ImageSelector imageSelector)
                   throws PortalException
Throws:
PortalException

addEntry

public BlogsEntry addEntry(long userId,
                           String title,
                           String content,
                           Date displayDate,
                           ServiceContext serviceContext)
                    throws PortalException
Throws:
PortalException

addEntry

public BlogsEntry addEntry(long userId,
                           String title,
                           String content,
                           ServiceContext serviceContext)
                    throws PortalException
Throws:
PortalException

addEntry

@Deprecated
public BlogsEntry addEntry(long userId,
                                      String title,
                                      String description,
                                      String content,
                                      int displayDateMonth,
                                      int displayDateDay,
                                      int displayDateYear,
                                      int displayDateHour,
                                      int displayDateMinute,
                                      boolean allowPingbacks,
                                      boolean allowTrackbacks,
                                      String[] trackbacks,
                                      boolean smallImage,
                                      String smallImageURL,
                                      String smallImageFileName,
                                      InputStream smallImageInputStream,
                                      ServiceContext serviceContext)
                    throws PortalException
Deprecated. As of 7.0.0, replaced by addEntry(long, String, String, String, String, int, int, int, int, int, boolean, boolean, String[], String, ImageSelector, ImageSelector, ServiceContext)

Throws:
PortalException

addEntry

@Indexable(type=REINDEX)
public BlogsEntry addEntry(long userId,
                                                String title,
                                                String subtitle,
                                                String description,
                                                String content,
                                                Date displayDate,
                                                boolean allowPingbacks,
                                                boolean allowTrackbacks,
                                                String[] trackbacks,
                                                String coverImageCaption,
                                                ImageSelector coverImageImageSelector,
                                                ImageSelector smallImageImageSelector,
                                                ServiceContext serviceContext)
                    throws PortalException
Throws:
PortalException

addEntry

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

addEntryResources

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

addEntryResources

public void addEntryResources(BlogsEntry entry,
                              ModelPermissions modelPermissions)
                       throws PortalException
Throws:
PortalException

addEntryResources

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

addEntryResources

public void addEntryResources(long entryId,
                              ModelPermissions modelPermissions)
                       throws PortalException
Throws:
PortalException

addOriginalImageFileEntry

public long addOriginalImageFileEntry(long userId,
                                      long groupId,
                                      long entryId,
                                      ImageSelector imageSelector)
                               throws PortalException
Throws:
PortalException

addSmallImage

public void addSmallImage(long entryId,
                          ImageSelector imageSelector)
                   throws PortalException
Throws:
PortalException

checkEntries

public void checkEntries()
                  throws PortalException
Throws:
PortalException

deleteEntries

public void deleteEntries(long groupId)
                   throws PortalException
Throws:
PortalException

deleteEntry

@Indexable(type=DELETE)
@SystemEvent(type=1)
public BlogsEntry deleteEntry(BlogsEntry entry)
                       throws PortalException
Throws:
PortalException

deleteEntry

public void deleteEntry(long entryId)
                 throws PortalException
Throws:
PortalException

fetchAttachmentsFolder

public Folder fetchAttachmentsFolder(long userId,
                                     long groupId)

getCompanyEntries

public List<BlogsEntry> getCompanyEntries(long companyId,
                                          Date displayDate,
                                          QueryDefinition<BlogsEntry> queryDefinition)

getCompanyEntriesCount

public int getCompanyEntriesCount(long companyId,
                                  Date displayDate,
                                  QueryDefinition<BlogsEntry> queryDefinition)

getEntriesPrevAndNext

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

getEntry

public BlogsEntry getEntry(long entryId)
                    throws PortalException
Throws:
PortalException

getEntry

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

getGroupEntries

public List<BlogsEntry> getGroupEntries(long groupId,
                                        Date displayDate,
                                        QueryDefinition<BlogsEntry> queryDefinition)

getGroupEntries

public List<BlogsEntry> getGroupEntries(long groupId,
                                        QueryDefinition<BlogsEntry> queryDefinition)

getGroupEntriesCount

public int getGroupEntriesCount(long groupId,
                                Date displayDate,
                                QueryDefinition<BlogsEntry> queryDefinition)

getGroupEntriesCount

public int getGroupEntriesCount(long groupId,
                                QueryDefinition<BlogsEntry> queryDefinition)

getGroupsEntries

public List<BlogsEntry> getGroupsEntries(long companyId,
                                         long groupId,
                                         Date displayDate,
                                         QueryDefinition<BlogsEntry> queryDefinition)

getGroupUserEntries

public List<BlogsEntry> getGroupUserEntries(long groupId,
                                            long userId,
                                            Date displayDate,
                                            QueryDefinition<BlogsEntry> queryDefinition)

getGroupUserEntriesCount

public int getGroupUserEntriesCount(long groupId,
                                    long userId,
                                    Date displayDate,
                                    QueryDefinition<BlogsEntry> queryDefinition)

getNoAssetEntries

public List<BlogsEntry> getNoAssetEntries()

getOrganizationEntries

public List<BlogsEntry> getOrganizationEntries(long organizationId,
                                               Date displayDate,
                                               QueryDefinition<BlogsEntry> queryDefinition)

getOrganizationEntriesCount

public int getOrganizationEntriesCount(long organizationId,
                                       Date displayDate,
                                       QueryDefinition<BlogsEntry> queryDefinition)

moveEntriesToTrash

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

moveEntryToTrash

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

Parameters:
userId - the primary key of the user moving the blogs entry
entry - the blogs entry to be moved
Returns:
the moved blogs entry
Throws:
PortalException

moveEntryToTrash

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

Parameters:
userId - the primary key of the user moving the blogs entry
entryId - the primary key of the blogs entry to be moved
Returns:
the moved blogs entry
Throws:
PortalException

restoreEntryFromTrash

@Indexable(type=REINDEX)
public BlogsEntry restoreEntryFromTrash(long userId,
                                                             long entryId)
                                 throws PortalException
Restores the blogs entry with the ID from the recycle bin. Social activity counters for this entry get activated.

Parameters:
userId - the primary key of the user restoring the blogs entry
entryId - the primary key of the blogs entry to be restored
Returns:
the restored blogs entry from the recycle bin
Throws:
PortalException

subscribe

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

unsubscribe

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

updateAsset

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

updateEntry

public BlogsEntry updateEntry(long userId,
                              long entryId,
                              String title,
                              String content,
                              ServiceContext serviceContext)
                       throws PortalException
Throws:
PortalException

updateEntry

@Deprecated
public BlogsEntry updateEntry(long userId,
                                         long entryId,
                                         String title,
                                         String description,
                                         String content,
                                         int displayDateMonth,
                                         int displayDateDay,
                                         int displayDateYear,
                                         int displayDateHour,
                                         int displayDateMinute,
                                         boolean allowPingbacks,
                                         boolean allowTrackbacks,
                                         String[] trackbacks,
                                         boolean smallImage,
                                         String smallImageURL,
                                         String smallImageFileName,
                                         InputStream smallImageInputStream,
                                         ServiceContext serviceContext)
                       throws PortalException
Deprecated. As of 7.0.0, replaced by updateEntry(long, long, String, String, String, String, int, int, int, int, int, boolean, boolean, String[], String, ImageSelector, ImageSelector, ServiceContext)

Throws:
PortalException

updateEntry

@Indexable(type=REINDEX)
public BlogsEntry updateEntry(long userId,
                                                   long entryId,
                                                   String title,
                                                   String subtitle,
                                                   String description,
                                                   String content,
                                                   Date displayDate,
                                                   boolean allowPingbacks,
                                                   boolean allowTrackbacks,
                                                   String[] trackbacks,
                                                   String coverImageCaption,
                                                   ImageSelector coverImageImageSelector,
                                                   ImageSelector smallImageImageSelector,
                                                   ServiceContext serviceContext)
                       throws PortalException
Throws:
PortalException

updateEntry

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

updateEntryResources

public void updateEntryResources(BlogsEntry entry,
                                 ModelPermissions modelPermissions)
                          throws PortalException
Throws:
PortalException

updateEntryResources

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

updateStatus

@Deprecated
public BlogsEntry updateStatus(long userId,
                                          long entryId,
                                          int status,
                                          ServiceContext serviceContext)
                        throws PortalException
Deprecated. As of 7.0.0, replaced by updateStatus(long, long, int, ServiceContext, Map)

Throws:
PortalException

updateStatus

@Indexable(type=REINDEX)
public BlogsEntry updateStatus(long userId,
                                                    long entryId,
                                                    int status,
                                                    ServiceContext serviceContext,
                                                    Map<String,Serializable> workflowContext)
                        throws PortalException
Throws:
PortalException

addCoverImageFileEntry

protected long addCoverImageFileEntry(long userId,
                                      long groupId,
                                      long entryId,
                                      ImageSelector imageSelector)
                               throws PortalException
Throws:
PortalException

addCoverImageFolder

protected Folder addCoverImageFolder(long userId,
                                     long groupId)
                              throws PortalException
Throws:
PortalException

addDiscussion

protected void addDiscussion(BlogsEntry entry,
                             long userId,
                             long groupId)
                      throws PortalException
Throws:
PortalException

addProcessedImageFileEntry

protected long addProcessedImageFileEntry(long userId,
                                          long groupId,
                                          long entryId,
                                          long folderId,
                                          String title,
                                          String mimeType,
                                          byte[] bytes)
                                   throws PortalException
Throws:
PortalException

addSmallImageFileEntry

protected long addSmallImageFileEntry(long userId,
                                      long groupId,
                                      long entryId,
                                      ImageSelector imageSelector)
                               throws PortalException
Throws:
PortalException

addSmallImageFolder

protected Folder addSmallImageFolder(long userId,
                                     long groupId)
                              throws PortalException
Throws:
PortalException

deleteDiscussion

protected void deleteDiscussion(BlogsEntry entry)
                         throws PortalException
Throws:
PortalException

doAddFolder

protected Folder doAddFolder(long userId,
                             long groupId,
                             String folderName)
                      throws PortalException
Throws:
PortalException

getEntryURL

protected String getEntryURL(BlogsEntry entry,
                             ServiceContext serviceContext)
                      throws PortalException
Throws:
PortalException

getUniqueUrlTitle

protected String getUniqueUrlTitle(long entryId,
                                   long groupId,
                                   String title)

getUniqueUrlTitle

protected String getUniqueUrlTitle(long entryId,
                                   String title,
                                   String oldUrlTitle,
                                   ServiceContext serviceContext)

notifySubscribers

protected void notifySubscribers(long userId,
                                 BlogsEntry entry,
                                 ServiceContext serviceContext,
                                 Map<String,Serializable> workflowContext)
                          throws PortalException
Throws:
PortalException

pingGoogle

protected void pingGoogle(BlogsEntry entry,
                          ServiceContext serviceContext)
                   throws PortalException
Throws:
PortalException

pingPingback

protected void pingPingback(BlogsEntry entry,
                            ServiceContext serviceContext)
                     throws PortalException
Throws:
PortalException

pingTrackbacks

protected void pingTrackbacks(BlogsEntry entry,
                              String[] trackbacks,
                              boolean pingOldTrackbacks,
                              ServiceContext serviceContext)
                       throws PortalException
Throws:
PortalException

startWorkflowInstance

protected BlogsEntry startWorkflowInstance(long userId,
                                           BlogsEntry entry,
                                           ServiceContext serviceContext)
                                    throws PortalException
Throws:
PortalException

validate

protected void validate(long smallImageFileEntryId)
                 throws PortalException
Throws:
PortalException

validate

protected void validate(String title,
                        String content)
                 throws PortalException
Throws:
PortalException

Liferay 7.0-ce-b4