|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.calendar.service.CalEventLocalServiceUtil
@Deprecated @ProviderType public class CalEventLocalServiceUtil
Provides the local service utility for CalEvent. This utility wraps
CalEventLocalServiceImpl and is the
primary access point for service operations in application layer code running
on the local server. Methods of this service will not have security checks
based on the propagated JAAS credentials because this service can only be
accessed from within the same VM.
CalEventLocalService,
CalEventLocalServiceBaseImpl,
CalEventLocalServiceImpl| Constructor Summary | |
|---|---|
CalEventLocalServiceUtil()
Deprecated. |
|
| Method Summary | ||
|---|---|---|
static CalEvent |
addCalEvent(CalEvent calEvent)
Deprecated. Adds the cal event to the database. |
|
static CalEvent |
addEvent(long userId,
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)
Deprecated. |
|
static CalEvent |
addEvent(long userId,
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)
Deprecated. As of 6.2.0, replaced by addEvent(long, String,
String, String, int, int, int, int, int, int, int, boolean,
boolean, String, boolean, TZSRecurrence, int, int, int,
ServiceContext) |
|
static void |
addEventResources(CalEvent event,
boolean addGroupPermissions,
boolean addGuestPermissions)
Deprecated. |
|
static void |
addEventResources(CalEvent event,
ModelPermissions modelPermissions)
Deprecated. |
|
static void |
addEventResources(long eventId,
boolean addGroupPermissions,
boolean addGuestPermissions)
Deprecated. |
|
static void |
addEventResources(long eventId,
ModelPermissions modelPermissions)
Deprecated. |
|
static void |
checkEvents()
Deprecated. |
|
static CalEvent |
createCalEvent(long eventId)
Deprecated. Creates a new cal event with the primary key. |
|
static CalEvent |
deleteCalEvent(CalEvent calEvent)
Deprecated. Deletes the cal event from the database. |
|
static CalEvent |
deleteCalEvent(long eventId)
Deprecated. Deletes the cal event with the primary key from the database. |
|
static CalEvent |
deleteEvent(CalEvent event)
Deprecated. |
|
static CalEvent |
deleteEvent(long eventId)
Deprecated. |
|
static void |
deleteEvents(long groupId)
Deprecated. |
|
static PersistedModel |
deletePersistedModel(PersistedModel persistedModel)
Deprecated. |
|
static DynamicQuery |
dynamicQuery()
Deprecated. |
|
static
|
dynamicQuery(DynamicQuery dynamicQuery)
Deprecated. Performs a dynamic query on the database and returns the matching rows. |
|
static
|
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Deprecated. Performs a dynamic query on the database and returns a range of the matching rows. |
|
static
|
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<T> orderByComparator)
Deprecated. Performs a dynamic query on the database and returns an ordered range of the matching rows. |
|
static long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Deprecated. Returns the number of rows matching the dynamic query. |
|
static long |
dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
Deprecated. Returns the number of rows matching the dynamic query. |
|
static File |
exportEvent(long userId,
long eventId)
Deprecated. |
|
static File |
exportEvents(long userId,
List<CalEvent> events,
String fileName)
Deprecated. |
|
static File |
exportGroupEvents(long userId,
long groupId,
String fileName)
Deprecated. |
|
static CalEvent |
fetchCalEvent(long eventId)
Deprecated. |
|
static CalEvent |
fetchCalEventByUuidAndGroupId(String uuid,
long groupId)
Deprecated. Returns the cal event matching the UUID and group. |
|
static ActionableDynamicQuery |
getActionableDynamicQuery()
Deprecated. |
|
static CalEvent |
getCalEvent(long eventId)
Deprecated. Returns the cal event with the primary key. |
|
static CalEvent |
getCalEventByUuidAndGroupId(String uuid,
long groupId)
Deprecated. Returns the cal event matching the UUID and group. |
|
static List<CalEvent> |
getCalEvents(int start,
int end)
Deprecated. Returns a range of all the cal events. |
|
static List<CalEvent> |
getCalEventsByUuidAndCompanyId(String uuid,
long companyId)
Deprecated. Returns all the cal events matching the UUID and company. |
|
static List<CalEvent> |
getCalEventsByUuidAndCompanyId(String uuid,
long companyId,
int start,
int end,
OrderByComparator<CalEvent> orderByComparator)
Deprecated. Returns a range of cal events matching the UUID and company. |
|
static int |
getCalEventsCount()
Deprecated. Returns the number of cal events. |
|
static List<CalEvent> |
getCompanyEvents(long companyId,
int start,
int end)
Deprecated. |
|
static int |
getCompanyEventsCount(long companyId)
Deprecated. |
|
static CalEvent |
getEvent(long eventId)
Deprecated. |
|
static List<CalEvent> |
getEvents(long groupId,
Calendar cal)
Deprecated. |
|
static List<CalEvent> |
getEvents(long groupId,
Calendar cal,
String type)
Deprecated. |
|
static List<CalEvent> |
getEvents(long groupId,
Calendar cal,
String[] types)
Deprecated. |
|
static List<CalEvent> |
getEvents(long groupId,
String[] types,
int start,
int end)
Deprecated. |
|
static List<CalEvent> |
getEvents(long groupId,
String type,
int start,
int end)
Deprecated. |
|
static int |
getEventsCount(long groupId,
String type)
Deprecated. |
|
static int |
getEventsCount(long groupId,
String[] types)
Deprecated. |
|
static ExportActionableDynamicQuery |
getExportActionableDynamicQuery(PortletDataContext portletDataContext)
Deprecated. |
|
static IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery()
Deprecated. |
|
static List<CalEvent> |
getNoAssetEvents()
Deprecated. |
|
static String |
getOSGiServiceIdentifier()
Deprecated. Returns the OSGi service identifier. |
|
static PersistedModel |
getPersistedModel(Serializable primaryKeyObj)
Deprecated. |
|
static List<CalEvent> |
getRepeatingEvents(long groupId)
Deprecated. |
|
static List<CalEvent> |
getRepeatingEvents(long groupId,
Calendar cal,
String[] types)
Deprecated. |
|
static CalEventLocalService |
getService()
Deprecated. |
|
static boolean |
hasEvents(long groupId,
Calendar cal)
Deprecated. |
|
static boolean |
hasEvents(long groupId,
Calendar cal,
String type)
Deprecated. |
|
static boolean |
hasEvents(long groupId,
Calendar cal,
String[] types)
Deprecated. |
|
static void |
importICal4j(long userId,
long groupId,
InputStream inputStream)
Deprecated. |
|
static void |
updateAsset(long userId,
CalEvent event,
long[] assetCategoryIds,
String[] assetTagNames,
long[] assetLinkEntryIds)
Deprecated. |
|
static CalEvent |
updateCalEvent(CalEvent calEvent)
Deprecated. Updates the cal event in the database or adds it if it does not yet exist. |
|
static CalEvent |
updateEvent(long userId,
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)
Deprecated. |
|
static CalEvent |
updateEvent(long userId,
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)
Deprecated. As of 6.2.0, replaced by updateEvent(long, long,
String, String, String, int, int, int, int, int, int, int,
boolean, boolean, String, boolean, TZSRecurrence, int, int,
int, ServiceContext) |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CalEventLocalServiceUtil()
| Method Detail |
|---|
public static CalEvent addCalEvent(CalEvent calEvent)
calEvent - the cal event
public static CalEvent addEvent(long userId,
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
PortalException
@Deprecated
public static CalEvent addEvent(long userId,
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
addEvent(long, String,
String, String, int, int, int, int, int, int, int, boolean,
boolean, String, boolean, TZSRecurrence, int, int, int,
ServiceContext)
PortalException
public static void addEventResources(CalEvent event,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws PortalException
PortalException
public static void addEventResources(CalEvent event,
ModelPermissions modelPermissions)
throws PortalException
PortalException
public static void addEventResources(long eventId,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws PortalException
PortalException
public static void addEventResources(long eventId,
ModelPermissions modelPermissions)
throws PortalException
PortalExceptionpublic static void checkEvents()
public static CalEvent createCalEvent(long eventId)
eventId - the primary key for the new cal event
public static CalEvent deleteCalEvent(CalEvent calEvent)
calEvent - the cal event
public static CalEvent deleteCalEvent(long eventId)
throws PortalException
eventId - the primary key of the cal event
PortalException - if a cal event with the primary key could not be found
public static CalEvent deleteEvent(CalEvent event)
throws PortalException
PortalException
public static CalEvent deleteEvent(long eventId)
throws PortalException
PortalException
public static void deleteEvents(long groupId)
throws PortalException
PortalException
public static PersistedModel deletePersistedModel(PersistedModel persistedModel)
throws PortalException
PortalExceptionpublic static DynamicQuery dynamicQuery()
public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery - the dynamic query
public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from CalEventModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)
public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<T> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from CalEventModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public static long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQuery - the dynamic query
public static long dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
dynamicQuery - the dynamic queryprojection - the projection to apply to the query
public static File exportEvent(long userId,
long eventId)
throws PortalException
PortalException
public static File exportEvents(long userId,
List<CalEvent> events,
String fileName)
throws PortalException
PortalException
public static File exportGroupEvents(long userId,
long groupId,
String fileName)
throws PortalException
PortalExceptionpublic static CalEvent fetchCalEvent(long eventId)
public static CalEvent fetchCalEventByUuidAndGroupId(String uuid,
long groupId)
uuid - the cal event's UUIDgroupId - the primary key of the group
null if a matching cal event could not be foundpublic static ActionableDynamicQuery getActionableDynamicQuery()
public static CalEvent getCalEvent(long eventId)
throws PortalException
eventId - the primary key of the cal event
PortalException - if a cal event with the primary key could not be found
public static CalEvent getCalEventByUuidAndGroupId(String uuid,
long groupId)
throws PortalException
uuid - the cal event's UUIDgroupId - the primary key of the group
PortalException - if a matching cal event could not be found
public static List<CalEvent> getCalEvents(int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from CalEventModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of cal eventsend - the upper bound of the range of cal events (not inclusive)
public static List<CalEvent> getCalEventsByUuidAndCompanyId(String uuid,
long companyId)
uuid - the UUID of the cal eventscompanyId - the primary key of the company
public static List<CalEvent> getCalEventsByUuidAndCompanyId(String uuid,
long companyId,
int start,
int end,
OrderByComparator<CalEvent> orderByComparator)
uuid - the UUID of the cal eventscompanyId - the primary key of the companystart - the lower bound of the range of cal eventsend - the upper bound of the range of cal events (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public static int getCalEventsCount()
public static List<CalEvent> getCompanyEvents(long companyId,
int start,
int end)
public static int getCompanyEventsCount(long companyId)
public static CalEvent getEvent(long eventId)
throws PortalException
PortalException
public static List<CalEvent> getEvents(long groupId,
Calendar cal)
public static List<CalEvent> getEvents(long groupId,
Calendar cal,
String type)
public static List<CalEvent> getEvents(long groupId,
Calendar cal,
String[] types)
public static List<CalEvent> getEvents(long groupId,
String type,
int start,
int end)
public static List<CalEvent> getEvents(long groupId,
String[] types,
int start,
int end)
public static int getEventsCount(long groupId,
String type)
public static int getEventsCount(long groupId,
String[] types)
public static ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
public static IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
public static List<CalEvent> getNoAssetEvents()
public static String getOSGiServiceIdentifier()
public static PersistedModel getPersistedModel(Serializable primaryKeyObj)
throws PortalException
PortalExceptionpublic static List<CalEvent> getRepeatingEvents(long groupId)
public static List<CalEvent> getRepeatingEvents(long groupId,
Calendar cal,
String[] types)
public static boolean hasEvents(long groupId,
Calendar cal)
public static boolean hasEvents(long groupId,
Calendar cal,
String type)
public static boolean hasEvents(long groupId,
Calendar cal,
String[] types)
public static void importICal4j(long userId,
long groupId,
InputStream inputStream)
throws PortalException
PortalException
public static void updateAsset(long userId,
CalEvent event,
long[] assetCategoryIds,
String[] assetTagNames,
long[] assetLinkEntryIds)
throws PortalException
PortalExceptionpublic static CalEvent updateCalEvent(CalEvent calEvent)
calEvent - the cal event
public static CalEvent updateEvent(long userId,
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
PortalException
@Deprecated
public static CalEvent updateEvent(long userId,
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
updateEvent(long, long,
String, String, String, int, int, int, int, int, int, int,
boolean, boolean, String, boolean, TZSRecurrence, int, int,
int, ServiceContext)
PortalExceptionpublic static CalEventLocalService getService()
|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||