Liferay 6.0.5

com.liferay.portlet.calendar.service
Class CalEventLocalServiceWrapper

java.lang.Object
  extended by com.liferay.portlet.calendar.service.CalEventLocalServiceWrapper
All Implemented Interfaces:
CalEventLocalService

public class CalEventLocalServiceWrapper
extends Object
implements CalEventLocalService

This class is a wrapper for CalEventLocalService.

See Also:
CalEventLocalService
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Constructor Summary
CalEventLocalServiceWrapper(CalEventLocalService calEventLocalService)
           
 
Method Summary
 CalEvent addCalEvent(CalEvent calEvent)
          Adds the cal event to the database.
 CalEvent addEvent(long userId, String title, String description, 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)
           
 void addEventResources(CalEvent event, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addEventResources(CalEvent event, String[] communityPermissions, String[] guestPermissions)
           
 void addEventResources(long eventId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addEventResources(long eventId, String[] communityPermissions, String[] guestPermissions)
           
 void checkEvents()
           
 CalEvent createCalEvent(long eventId)
          Creates a new cal event with the primary key.
 void deleteCalEvent(CalEvent calEvent)
          Deletes the cal event from the database.
 void deleteCalEvent(long eventId)
          Deletes the cal event with the primary key from the database.
 void deleteEvent(CalEvent event)
           
 void deleteEvent(long eventId)
           
 void deleteEvents(long groupId)
           
 List dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
          Performs a dynamic query on the database and returns an ordered range of the matching rows.
 long dynamicQueryCount(DynamicQuery dynamicQuery)
          Counts the number of rows that match the dynamic query.
 File exportEvent(long userId, long eventId)
           
 File exportGroupEvents(long userId, long groupId, String fileName)
           
 CalEvent getCalEvent(long eventId)
          Gets the cal event with the primary key.
 CalEvent getCalEventByUuidAndGroupId(String uuid, long groupId)
          Gets the cal event with the UUID and group id.
 List<CalEvent> getCalEvents(int start, int end)
          Gets a range of all the cal events.
 int getCalEventsCount()
          Gets the number of cal events.
 List<CalEvent> getCompanyEvents(long companyId, int start, int end)
           
 int getCompanyEventsCount(long companyId)
           
 CalEvent getEvent(long eventId)
           
 List<CalEvent> getEvents(long groupId, Calendar cal)
           
 List<CalEvent> getEvents(long groupId, Calendar cal, String type)
           
 List<CalEvent> getEvents(long groupId, String type, int start, int end)
           
 int getEventsCount(long groupId, String type)
           
 List<CalEvent> getNoAssetEvents()
           
 List<CalEvent> getRepeatingEvents(long groupId)
           
 CalEventLocalService getWrappedCalEventLocalService()
           
 boolean hasEvents(long groupId, Calendar cal)
           
 boolean hasEvents(long groupId, Calendar cal, String type)
           
 void importICal4j(long userId, long groupId, File file)
           
 void updateAsset(long userId, CalEvent event, long[] assetCategoryIds, String[] assetTagNames)
           
 CalEvent updateCalEvent(CalEvent calEvent)
          Updates the cal event in the database.
 CalEvent updateCalEvent(CalEvent calEvent, boolean merge)
          Updates the cal event in the database.
 CalEvent updateEvent(long userId, long eventId, String title, String description, 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
 

Constructor Detail

CalEventLocalServiceWrapper

public CalEventLocalServiceWrapper(CalEventLocalService calEventLocalService)
Method Detail

addCalEvent

public CalEvent addCalEvent(CalEvent calEvent)
                     throws SystemException
Adds the cal event to the database. Also notifies the appropriate model listeners.

Specified by:
addCalEvent in interface CalEventLocalService
Parameters:
calEvent - the cal event to add
Returns:
the cal event that was added
Throws:
SystemException - if a system exception occurred

createCalEvent

public CalEvent createCalEvent(long eventId)
Creates a new cal event with the primary key. Does not add the cal event to the database.

Specified by:
createCalEvent in interface CalEventLocalService
Parameters:
eventId - the primary key for the new cal event
Returns:
the new cal event

deleteCalEvent

public void deleteCalEvent(long eventId)
                    throws PortalException,
                           SystemException
Deletes the cal event with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteCalEvent in interface CalEventLocalService
Parameters:
eventId - the primary key of the cal event to delete
Throws:
PortalException - if a cal event with the primary key could not be found
SystemException - if a system exception occurred

deleteCalEvent

public void deleteCalEvent(CalEvent calEvent)
                    throws SystemException
Deletes the cal event from the database. Also notifies the appropriate model listeners.

Specified by:
deleteCalEvent in interface CalEventLocalService
Parameters:
calEvent - the cal event to delete
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery)
                  throws SystemException
Performs a dynamic query on the database and returns the matching rows.

Specified by:
dynamicQuery in interface CalEventLocalService
Parameters:
dynamicQuery - the dynamic query to search with
Returns:
the matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end)
                  throws SystemException
Performs a dynamic query on the database and returns a range of the matching rows.

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.

Specified by:
dynamicQuery in interface CalEventLocalService
Parameters:
dynamicQuery - the dynamic query to search with
start - the lower bound of the range of model instances to return
end - the upper bound of the range of model instances to return (not inclusive)
Returns:
the range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end,
                         OrderByComparator orderByComparator)
                  throws SystemException
Performs a dynamic query on the database and returns an ordered range of the matching rows.

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.

Specified by:
dynamicQuery in interface CalEventLocalService
Parameters:
dynamicQuery - the dynamic query to search with
start - the lower bound of the range of model instances to return
end - the upper bound of the range of model instances to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery)
                       throws SystemException
Counts the number of rows that match the dynamic query.

Specified by:
dynamicQueryCount in interface CalEventLocalService
Parameters:
dynamicQuery - the dynamic query to search with
Returns:
the number of rows that match the dynamic query
Throws:
SystemException - if a system exception occurred

getCalEvent

public CalEvent getCalEvent(long eventId)
                     throws PortalException,
                            SystemException
Gets the cal event with the primary key.

Specified by:
getCalEvent in interface CalEventLocalService
Parameters:
eventId - the primary key of the cal event to get
Returns:
the cal event
Throws:
PortalException - if a cal event with the primary key could not be found
SystemException - if a system exception occurred

getCalEventByUuidAndGroupId

public CalEvent getCalEventByUuidAndGroupId(String uuid,
                                            long groupId)
                                     throws PortalException,
                                            SystemException
Gets the cal event with the UUID and group id.

Specified by:
getCalEventByUuidAndGroupId in interface CalEventLocalService
Parameters:
uuid - the UUID of cal event to get
groupId - the group id of the cal event to get
Returns:
the cal event
Throws:
PortalException - if a cal event with the UUID and group id could not be found
SystemException - if a system exception occurred

getCalEvents

public List<CalEvent> getCalEvents(int start,
                                   int end)
                            throws SystemException
Gets a range of all the cal events.

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.

Specified by:
getCalEvents in interface CalEventLocalService
Parameters:
start - the lower bound of the range of cal events to return
end - the upper bound of the range of cal events to return (not inclusive)
Returns:
the range of cal events
Throws:
SystemException - if a system exception occurred

getCalEventsCount

public int getCalEventsCount()
                      throws SystemException
Gets the number of cal events.

Specified by:
getCalEventsCount in interface CalEventLocalService
Returns:
the number of cal events
Throws:
SystemException - if a system exception occurred

updateCalEvent

public CalEvent updateCalEvent(CalEvent calEvent)
                        throws SystemException
Updates the cal event in the database. Also notifies the appropriate model listeners.

Specified by:
updateCalEvent in interface CalEventLocalService
Parameters:
calEvent - the cal event to update
Returns:
the cal event that was updated
Throws:
SystemException - if a system exception occurred

updateCalEvent

public CalEvent updateCalEvent(CalEvent calEvent,
                               boolean merge)
                        throws SystemException
Updates the cal event in the database. Also notifies the appropriate model listeners.

Specified by:
updateCalEvent in interface CalEventLocalService
Parameters:
calEvent - the cal event to update
merge - whether to merge the cal event with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean) for an explanation.
Returns:
the cal event that was updated
Throws:
SystemException - if a system exception occurred

addEvent

public CalEvent addEvent(long userId,
                         String title,
                         String description,
                         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
Specified by:
addEvent in interface CalEventLocalService
Throws:
PortalException
SystemException

addEventResources

public void addEventResources(CalEvent event,
                              boolean addCommunityPermissions,
                              boolean addGuestPermissions)
                       throws PortalException,
                              SystemException
Specified by:
addEventResources in interface CalEventLocalService
Throws:
PortalException
SystemException

addEventResources

public void addEventResources(CalEvent event,
                              String[] communityPermissions,
                              String[] guestPermissions)
                       throws PortalException,
                              SystemException
Specified by:
addEventResources in interface CalEventLocalService
Throws:
PortalException
SystemException

addEventResources

public void addEventResources(long eventId,
                              boolean addCommunityPermissions,
                              boolean addGuestPermissions)
                       throws PortalException,
                              SystemException
Specified by:
addEventResources in interface CalEventLocalService
Throws:
PortalException
SystemException

addEventResources

public void addEventResources(long eventId,
                              String[] communityPermissions,
                              String[] guestPermissions)
                       throws PortalException,
                              SystemException
Specified by:
addEventResources in interface CalEventLocalService
Throws:
PortalException
SystemException

checkEvents

public void checkEvents()
                 throws PortalException,
                        SystemException
Specified by:
checkEvents in interface CalEventLocalService
Throws:
PortalException
SystemException

deleteEvent

public void deleteEvent(CalEvent event)
                 throws PortalException,
                        SystemException
Specified by:
deleteEvent in interface CalEventLocalService
Throws:
PortalException
SystemException

deleteEvent

public void deleteEvent(long eventId)
                 throws PortalException,
                        SystemException
Specified by:
deleteEvent in interface CalEventLocalService
Throws:
PortalException
SystemException

deleteEvents

public void deleteEvents(long groupId)
                  throws PortalException,
                         SystemException
Specified by:
deleteEvents in interface CalEventLocalService
Throws:
PortalException
SystemException

exportEvent

public File exportEvent(long userId,
                        long eventId)
                 throws PortalException,
                        SystemException
Specified by:
exportEvent in interface CalEventLocalService
Throws:
PortalException
SystemException

exportGroupEvents

public File exportGroupEvents(long userId,
                              long groupId,
                              String fileName)
                       throws PortalException,
                              SystemException
Specified by:
exportGroupEvents in interface CalEventLocalService
Throws:
PortalException
SystemException

getCompanyEvents

public List<CalEvent> getCompanyEvents(long companyId,
                                       int start,
                                       int end)
                                throws SystemException
Specified by:
getCompanyEvents in interface CalEventLocalService
Throws:
SystemException

getCompanyEventsCount

public int getCompanyEventsCount(long companyId)
                          throws SystemException
Specified by:
getCompanyEventsCount in interface CalEventLocalService
Throws:
SystemException

getEvent

public CalEvent getEvent(long eventId)
                  throws PortalException,
                         SystemException
Specified by:
getEvent in interface CalEventLocalService
Throws:
PortalException
SystemException

getEvents

public List<CalEvent> getEvents(long groupId,
                                Calendar cal)
                         throws SystemException
Specified by:
getEvents in interface CalEventLocalService
Throws:
SystemException

getEvents

public List<CalEvent> getEvents(long groupId,
                                Calendar cal,
                                String type)
                         throws SystemException
Specified by:
getEvents in interface CalEventLocalService
Throws:
SystemException

getEvents

public List<CalEvent> getEvents(long groupId,
                                String type,
                                int start,
                                int end)
                         throws SystemException
Specified by:
getEvents in interface CalEventLocalService
Throws:
SystemException

getEventsCount

public int getEventsCount(long groupId,
                          String type)
                   throws SystemException
Specified by:
getEventsCount in interface CalEventLocalService
Throws:
SystemException

getNoAssetEvents

public List<CalEvent> getNoAssetEvents()
                                throws SystemException
Specified by:
getNoAssetEvents in interface CalEventLocalService
Throws:
SystemException

getRepeatingEvents

public List<CalEvent> getRepeatingEvents(long groupId)
                                  throws SystemException
Specified by:
getRepeatingEvents in interface CalEventLocalService
Throws:
SystemException

hasEvents

public boolean hasEvents(long groupId,
                         Calendar cal)
                  throws SystemException
Specified by:
hasEvents in interface CalEventLocalService
Throws:
SystemException

hasEvents

public boolean hasEvents(long groupId,
                         Calendar cal,
                         String type)
                  throws SystemException
Specified by:
hasEvents in interface CalEventLocalService
Throws:
SystemException

importICal4j

public void importICal4j(long userId,
                         long groupId,
                         File file)
                  throws PortalException,
                         SystemException
Specified by:
importICal4j in interface CalEventLocalService
Throws:
PortalException
SystemException

updateAsset

public void updateAsset(long userId,
                        CalEvent event,
                        long[] assetCategoryIds,
                        String[] assetTagNames)
                 throws PortalException,
                        SystemException
Specified by:
updateAsset in interface CalEventLocalService
Throws:
PortalException
SystemException

updateEvent

public CalEvent updateEvent(long userId,
                            long eventId,
                            String title,
                            String description,
                            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
Specified by:
updateEvent in interface CalEventLocalService
Throws:
PortalException
SystemException

getWrappedCalEventLocalService

public CalEventLocalService getWrappedCalEventLocalService()

Liferay 6.0.5