com.liferay.portlet.blogs.service.http
Class BlogsEntryServiceHttp
java.lang.Object
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 is generated.
Method Summary |
static BlogsEntry |
addEntry(HttpPrincipal httpPrincipal,
String title,
String content,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
boolean allowPingbacks,
boolean allowTrackbacks,
String[] trackbacks,
ServiceContext serviceContext)
|
static void |
deleteEntry(HttpPrincipal httpPrincipal,
long entryId)
|
static List<BlogsEntry> |
getCompanyEntries(HttpPrincipal httpPrincipal,
long companyId,
int status,
int max)
|
static String |
getCompanyEntriesRSS(HttpPrincipal httpPrincipal,
long companyId,
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,
int status,
int max)
|
static String |
getGroupEntriesRSS(HttpPrincipal httpPrincipal,
long groupId,
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,
int status,
int max)
|
static List<BlogsEntry> |
getOrganizationEntries(HttpPrincipal httpPrincipal,
long organizationId,
int status,
int max)
|
static String |
getOrganizationEntriesRSS(HttpPrincipal httpPrincipal,
long organizationId,
int status,
int max,
String type,
double version,
String displayStyle,
String feedURL,
String entryURL,
ThemeDisplay themeDisplay)
|
static BlogsEntry |
updateEntry(HttpPrincipal httpPrincipal,
long entryId,
String title,
String content,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
boolean allowPingbacks,
boolean allowTrackbacks,
String[] trackbacks,
ServiceContext serviceContext)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlogsEntryServiceHttp
public BlogsEntryServiceHttp()
addEntry
public static BlogsEntry addEntry(HttpPrincipal httpPrincipal,
String title,
String content,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
boolean allowPingbacks,
boolean allowTrackbacks,
String[] trackbacks,
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,
int status,
int max)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getCompanyEntriesRSS
public static String getCompanyEntriesRSS(HttpPrincipal httpPrincipal,
long companyId,
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,
int status,
int max)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getGroupEntriesRSS
public static String getGroupEntriesRSS(HttpPrincipal httpPrincipal,
long groupId,
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,
int status,
int max)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getOrganizationEntries
public static List<BlogsEntry> getOrganizationEntries(HttpPrincipal httpPrincipal,
long organizationId,
int status,
int max)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getOrganizationEntriesRSS
public static String getOrganizationEntriesRSS(HttpPrincipal httpPrincipal,
long organizationId,
int status,
int max,
String type,
double version,
String displayStyle,
String feedURL,
String entryURL,
ThemeDisplay themeDisplay)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateEntry
public static BlogsEntry updateEntry(HttpPrincipal httpPrincipal,
long entryId,
String title,
String content,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
boolean allowPingbacks,
boolean allowTrackbacks,
String[] trackbacks,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException