Liferay 6.1.2-ce-ga3

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

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

public class BlogsEntryServiceHttp
extends Object

This class provides a 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 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 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> 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 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)
           
 
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,
                                  SystemException
Throws:
PortalException
SystemException

deleteEntry

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

getCompanyEntries

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

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

getEntry

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

getEntry

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

getGroupEntries

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

getGroupEntries

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

getGroupEntries

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

getGroupEntries

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

getGroupEntriesCount

public static int getGroupEntriesCount(HttpPrincipal httpPrincipal,
                                       long groupId,
                                       Date displayDate,
                                       int status)
                                throws SystemException
Throws:
SystemException

getGroupEntriesCount

public static int getGroupEntriesCount(HttpPrincipal httpPrincipal,
                                       long groupId,
                                       int status)
                                throws SystemException
Throws:
SystemException

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

getGroupsEntries

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

getOrganizationEntries

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

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

subscribe

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

unsubscribe

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

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

Liferay 6.1.2-ce-ga3