com.liferay.portlet.calendar.service.http
Class CalEventServiceHttp
java.lang.Object
com.liferay.portlet.calendar.service.http.CalEventServiceHttp
public class CalEventServiceHttp
- extends Object
This class provides a HTTP utility for the
CalEventServiceUtil
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:
CalEventServiceSoap
,
HttpPrincipal
,
CalEventServiceUtil
- ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.
Method Summary |
static CalEvent |
addEvent(HttpPrincipal httpPrincipal,
String title,
String description,
String location,
int startDateMonth,
int startDateDay,
int startDateYear,
int startDateHour,
int startDateMinute,
int durationHour,
int durationMinute,
boolean allDay,
boolean timeZoneSensitive,
String type,
boolean repeating,
TZSRecurrence recurrence,
int remindBy,
int firstReminder,
int secondReminder,
ServiceContext serviceContext)
|
static CalEvent |
addEvent(HttpPrincipal httpPrincipal,
String title,
String description,
String location,
int startDateMonth,
int startDateDay,
int startDateYear,
int startDateHour,
int startDateMinute,
int endDateMonth,
int endDateDay,
int endDateYear,
int durationHour,
int durationMinute,
boolean allDay,
boolean timeZoneSensitive,
String type,
boolean repeating,
TZSRecurrence recurrence,
int remindBy,
int firstReminder,
int secondReminder,
ServiceContext serviceContext)
|
static void |
deleteEvent(HttpPrincipal httpPrincipal,
long eventId)
|
static File |
exportEvent(HttpPrincipal httpPrincipal,
long eventId)
|
static File |
exportGroupEvents(HttpPrincipal httpPrincipal,
long groupId,
String fileName)
|
static CalEvent |
getEvent(HttpPrincipal httpPrincipal,
long eventId)
|
static List<CalEvent> |
getEvents(HttpPrincipal httpPrincipal,
long groupId,
Calendar cal,
String type)
|
static List<CalEvent> |
getEvents(HttpPrincipal httpPrincipal,
long groupId,
Calendar cal,
String[] types)
|
static List<CalEvent> |
getEvents(HttpPrincipal httpPrincipal,
long groupId,
String[] types,
int start,
int end)
|
static List<CalEvent> |
getEvents(HttpPrincipal httpPrincipal,
long groupId,
String type,
int start,
int end)
|
static int |
getEventsCount(HttpPrincipal httpPrincipal,
long groupId,
String type)
|
static int |
getEventsCount(HttpPrincipal httpPrincipal,
long groupId,
String[] types)
|
static boolean |
hasEvents(HttpPrincipal httpPrincipal,
long groupId,
Calendar cal)
|
static boolean |
hasEvents(HttpPrincipal httpPrincipal,
long groupId,
Calendar cal,
String type)
|
static boolean |
hasEvents(HttpPrincipal httpPrincipal,
long groupId,
Calendar cal,
String[] types)
|
static void |
importICal4j(HttpPrincipal httpPrincipal,
long groupId,
InputStream inputStream)
|
static CalEvent |
updateEvent(HttpPrincipal httpPrincipal,
long eventId,
String title,
String description,
String location,
int startDateMonth,
int startDateDay,
int startDateYear,
int startDateHour,
int startDateMinute,
int durationHour,
int durationMinute,
boolean allDay,
boolean timeZoneSensitive,
String type,
boolean repeating,
TZSRecurrence recurrence,
int remindBy,
int firstReminder,
int secondReminder,
ServiceContext serviceContext)
|
static CalEvent |
updateEvent(HttpPrincipal httpPrincipal,
long eventId,
String title,
String description,
String location,
int startDateMonth,
int startDateDay,
int startDateYear,
int startDateHour,
int startDateMinute,
int endDateMonth,
int endDateDay,
int endDateYear,
int durationHour,
int durationMinute,
boolean allDay,
boolean timeZoneSensitive,
String type,
boolean repeating,
TZSRecurrence recurrence,
int remindBy,
int firstReminder,
int secondReminder,
ServiceContext serviceContext)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CalEventServiceHttp
public CalEventServiceHttp()
addEvent
public static CalEvent addEvent(HttpPrincipal httpPrincipal,
String title,
String description,
String location,
int startDateMonth,
int startDateDay,
int startDateYear,
int startDateHour,
int startDateMinute,
int durationHour,
int durationMinute,
boolean allDay,
boolean timeZoneSensitive,
String type,
boolean repeating,
TZSRecurrence recurrence,
int remindBy,
int firstReminder,
int secondReminder,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addEvent
public static CalEvent addEvent(HttpPrincipal httpPrincipal,
String title,
String description,
String location,
int startDateMonth,
int startDateDay,
int startDateYear,
int startDateHour,
int startDateMinute,
int endDateMonth,
int endDateDay,
int endDateYear,
int durationHour,
int durationMinute,
boolean allDay,
boolean timeZoneSensitive,
String type,
boolean repeating,
TZSRecurrence recurrence,
int remindBy,
int firstReminder,
int secondReminder,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteEvent
public static void deleteEvent(HttpPrincipal httpPrincipal,
long eventId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
exportEvent
public static File exportEvent(HttpPrincipal httpPrincipal,
long eventId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
exportGroupEvents
public static File exportGroupEvents(HttpPrincipal httpPrincipal,
long groupId,
String fileName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getEvent
public static CalEvent getEvent(HttpPrincipal httpPrincipal,
long eventId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getEvents
public static List<CalEvent> getEvents(HttpPrincipal httpPrincipal,
long groupId,
Calendar cal,
String type)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getEvents
public static List<CalEvent> getEvents(HttpPrincipal httpPrincipal,
long groupId,
Calendar cal,
String[] types)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getEvents
public static List<CalEvent> getEvents(HttpPrincipal httpPrincipal,
long groupId,
String type,
int start,
int end)
throws SystemException
- Throws:
SystemException
getEvents
public static List<CalEvent> getEvents(HttpPrincipal httpPrincipal,
long groupId,
String[] types,
int start,
int end)
throws SystemException
- Throws:
SystemException
getEventsCount
public static int getEventsCount(HttpPrincipal httpPrincipal,
long groupId,
String type)
throws SystemException
- Throws:
SystemException
getEventsCount
public static int getEventsCount(HttpPrincipal httpPrincipal,
long groupId,
String[] types)
throws SystemException
- Throws:
SystemException
hasEvents
public static boolean hasEvents(HttpPrincipal httpPrincipal,
long groupId,
Calendar cal)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
hasEvents
public static boolean hasEvents(HttpPrincipal httpPrincipal,
long groupId,
Calendar cal,
String type)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
hasEvents
public static boolean hasEvents(HttpPrincipal httpPrincipal,
long groupId,
Calendar cal,
String[] types)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
importICal4j
public static void importICal4j(HttpPrincipal httpPrincipal,
long groupId,
InputStream inputStream)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateEvent
public static CalEvent updateEvent(HttpPrincipal httpPrincipal,
long eventId,
String title,
String description,
String location,
int startDateMonth,
int startDateDay,
int startDateYear,
int startDateHour,
int startDateMinute,
int durationHour,
int durationMinute,
boolean allDay,
boolean timeZoneSensitive,
String type,
boolean repeating,
TZSRecurrence recurrence,
int remindBy,
int firstReminder,
int secondReminder,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateEvent
public static CalEvent updateEvent(HttpPrincipal httpPrincipal,
long eventId,
String title,
String description,
String location,
int startDateMonth,
int startDateDay,
int startDateYear,
int startDateHour,
int startDateMinute,
int endDateMonth,
int endDateDay,
int endDateYear,
int durationHour,
int durationMinute,
boolean allDay,
boolean timeZoneSensitive,
String type,
boolean repeating,
TZSRecurrence recurrence,
int remindBy,
int firstReminder,
int secondReminder,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException