Liferay 7.0-ce-b4

com.liferay.portlet.blogs.service.http
Class BlogsEntryServiceHttp

java.lang.Object
  extended by com.liferay.portlet.blogs.service.http.BlogsEntryServiceHttp

@ProviderType
public class BlogsEntryServiceHttp
extends Object

Provides the HTTP utility for the BlogsEntryServiceUtil service utility. The static methods of this class calls the same methods of the service utility. However, the signatures are different because it requires an additional HttpPrincipal parameter.

The benefits of using the HTTP utility is that it is fast and allows for tunneling without the cost of serializing to text. The drawback is that it only works with Java.

Set the property tunnel.servlet.hosts.allowed in portal.properties to configure security.

The HTTP utility is only generated for remote services.

See Also:
BlogsEntryServiceSoap, HttpPrincipal, BlogsEntryServiceUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
BlogsEntryServiceHttp()
           
 
Method Summary
static BlogsEntry addEntry(HttpPrincipal httpPrincipal, 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 BlogsEntry addEntry(HttpPrincipal httpPrincipal, 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)
           
static void deleteEntry(HttpPrincipal httpPrincipal, long entryId)
           
static List<BlogsEntry> getCompanyEntries(HttpPrincipal httpPrincipal, long companyId, Date displayDate, int status, int max)
           
static String getCompanyEntriesRSS(HttpPrincipal httpPrincipal, long companyId, Date displayDate, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, ThemeDisplay themeDisplay)
           
static BlogsEntry getEntry(HttpPrincipal httpPrincipal, long entryId)
           
static BlogsEntry getEntry(HttpPrincipal httpPrincipal, long groupId, String urlTitle)
           
static List<BlogsEntry> getGroupEntries(HttpPrincipal httpPrincipal, long groupId, Date displayDate, int status, int max)
           
static List<BlogsEntry> getGroupEntries(HttpPrincipal httpPrincipal, long groupId, Date displayDate, int status, int start, int end)
           
static List<BlogsEntry> getGroupEntries(HttpPrincipal httpPrincipal, long groupId, int status, int max)
           
static List<BlogsEntry> getGroupEntries(HttpPrincipal httpPrincipal, long groupId, int status, int start, int end)
           
static List<BlogsEntry> getGroupEntries(HttpPrincipal httpPrincipal, long groupId, int status, int start, int end, OrderByComparator<BlogsEntry> obc)
           
static int getGroupEntriesCount(HttpPrincipal httpPrincipal, long groupId, Date displayDate, int status)
           
static int getGroupEntriesCount(HttpPrincipal httpPrincipal, long groupId, int status)
           
static String getGroupEntriesRSS(HttpPrincipal httpPrincipal, long groupId, Date displayDate, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, ThemeDisplay themeDisplay)
           
static List<BlogsEntry> getGroupsEntries(HttpPrincipal httpPrincipal, long companyId, long groupId, Date displayDate, int status, int max)
           
static List<BlogsEntry> getGroupUserEntries(HttpPrincipal httpPrincipal, long groupId, long userId, int status, int start, int end, OrderByComparator<BlogsEntry> obc)
           
static int getGroupUserEntriesCount(HttpPrincipal httpPrincipal, long groupId, long userId, int status)
           
static List<BlogsEntry> getOrganizationEntries(HttpPrincipal httpPrincipal, long organizationId, Date displayDate, int status, int max)
           
static String getOrganizationEntriesRSS(HttpPrincipal httpPrincipal, long organizationId, Date displayDate, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, ThemeDisplay themeDisplay)
           
static BlogsEntry moveEntryToTrash(HttpPrincipal httpPrincipal, long entryId)
           
static void restoreEntryFromTrash(HttpPrincipal httpPrincipal, long entryId)
           
static void subscribe(HttpPrincipal httpPrincipal, long groupId)
           
static void unsubscribe(HttpPrincipal httpPrincipal, long groupId)
           
static BlogsEntry updateEntry(HttpPrincipal httpPrincipal, 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 BlogsEntry updateEntry(HttpPrincipal httpPrincipal, 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlogsEntryServiceHttp

public BlogsEntryServiceHttp()
Method Detail

addEntry

public static BlogsEntry addEntry(HttpPrincipal httpPrincipal,
                                  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
Throws:
PortalException

addEntry

public static BlogsEntry addEntry(HttpPrincipal httpPrincipal,
                                  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

deleteEntry

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

getCompanyEntries

public static List<BlogsEntry> getCompanyEntries(HttpPrincipal httpPrincipal,
                                                 long companyId,
                                                 Date displayDate,
                                                 int status,
                                                 int max)
                                          throws PortalException
Throws:
PortalException

getCompanyEntriesRSS

public static String getCompanyEntriesRSS(HttpPrincipal httpPrincipal,
                                          long companyId,
                                          Date displayDate,
                                          int status,
                                          int max,
                                          String type,
                                          double version,
                                          String displayStyle,
                                          String feedURL,
                                          String entryURL,
                                          ThemeDisplay themeDisplay)
                                   throws PortalException
Throws:
PortalException

getEntry

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

getEntry

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

getGroupEntries

public static List<BlogsEntry> getGroupEntries(HttpPrincipal httpPrincipal,
                                               long groupId,
                                               Date displayDate,
                                               int status,
                                               int max)

getGroupEntries

public static List<BlogsEntry> getGroupEntries(HttpPrincipal httpPrincipal,
                                               long groupId,
                                               Date displayDate,
                                               int status,
                                               int start,
                                               int end)

getGroupEntries

public static List<BlogsEntry> getGroupEntries(HttpPrincipal httpPrincipal,
                                               long groupId,
                                               int status,
                                               int max)

getGroupEntries

public static List<BlogsEntry> getGroupEntries(HttpPrincipal httpPrincipal,
                                               long groupId,
                                               int status,
                                               int start,
                                               int end)

getGroupEntries

public static List<BlogsEntry> getGroupEntries(HttpPrincipal httpPrincipal,
                                               long groupId,
                                               int status,
                                               int start,
                                               int end,
                                               OrderByComparator<BlogsEntry> obc)

getGroupEntriesCount

public static int getGroupEntriesCount(HttpPrincipal httpPrincipal,
                                       long groupId,
                                       Date displayDate,
                                       int status)

getGroupEntriesCount

public static int getGroupEntriesCount(HttpPrincipal httpPrincipal,
                                       long groupId,
                                       int status)

getGroupEntriesRSS

public static String getGroupEntriesRSS(HttpPrincipal httpPrincipal,
                                        long groupId,
                                        Date displayDate,
                                        int status,
                                        int max,
                                        String type,
                                        double version,
                                        String displayStyle,
                                        String feedURL,
                                        String entryURL,
                                        ThemeDisplay themeDisplay)
                                 throws PortalException
Throws:
PortalException

getGroupsEntries

public static List<BlogsEntry> getGroupsEntries(HttpPrincipal httpPrincipal,
                                                long companyId,
                                                long groupId,
                                                Date displayDate,
                                                int status,
                                                int max)
                                         throws PortalException
Throws:
PortalException

getGroupUserEntries

public static List<BlogsEntry> getGroupUserEntries(HttpPrincipal httpPrincipal,
                                                   long groupId,
                                                   long userId,
                                                   int status,
                                                   int start,
                                                   int end,
                                                   OrderByComparator<BlogsEntry> obc)

getGroupUserEntriesCount

public static int getGroupUserEntriesCount(HttpPrincipal httpPrincipal,
                                           long groupId,
                                           long userId,
                                           int status)

getOrganizationEntries

public static List<BlogsEntry> getOrganizationEntries(HttpPrincipal httpPrincipal,
                                                      long organizationId,
                                                      Date displayDate,
                                                      int status,
                                                      int max)
                                               throws PortalException
Throws:
PortalException

getOrganizationEntriesRSS

public static String getOrganizationEntriesRSS(HttpPrincipal httpPrincipal,
                                               long organizationId,
                                               Date displayDate,
                                               int status,
                                               int max,
                                               String type,
                                               double version,
                                               String displayStyle,
                                               String feedURL,
                                               String entryURL,
                                               ThemeDisplay themeDisplay)
                                        throws PortalException
Throws:
PortalException

moveEntryToTrash

public static BlogsEntry moveEntryToTrash(HttpPrincipal httpPrincipal,
                                          long entryId)
                                   throws PortalException
Throws:
PortalException

restoreEntryFromTrash

public static void restoreEntryFromTrash(HttpPrincipal httpPrincipal,
                                         long entryId)
                                  throws PortalException
Throws:
PortalException

subscribe

public static void subscribe(HttpPrincipal httpPrincipal,
                             long groupId)
                      throws PortalException
Throws:
PortalException

unsubscribe

public static void unsubscribe(HttpPrincipal httpPrincipal,
                               long groupId)
                        throws PortalException
Throws:
PortalException

updateEntry

public static BlogsEntry updateEntry(HttpPrincipal httpPrincipal,
                                     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
Throws:
PortalException

updateEntry

public static BlogsEntry updateEntry(HttpPrincipal httpPrincipal,
                                     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

Liferay 7.0-ce-b4