001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.announcements.service;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    
019    /**
020     * The utility for the announcements entry remote service. This utility wraps {@link com.liferay.portlet.announcements.service.impl.AnnouncementsEntryServiceImpl} and is the primary access point for service operations in application layer code running on a remote server.
021     *
022     * <p>
023     * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.announcements.service.impl.AnnouncementsEntryServiceImpl} and rerun ServiceBuilder to regenerate this class.
024     * </p>
025     *
026     * <p>
027     * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see AnnouncementsEntryService
032     * @see com.liferay.portlet.announcements.service.base.AnnouncementsEntryServiceBaseImpl
033     * @see com.liferay.portlet.announcements.service.impl.AnnouncementsEntryServiceImpl
034     * @generated
035     */
036    public class AnnouncementsEntryServiceUtil {
037            public static com.liferay.portlet.announcements.model.AnnouncementsEntry addEntry(
038                    long plid, long classNameId, long classPK, java.lang.String title,
039                    java.lang.String content, java.lang.String url, java.lang.String type,
040                    int displayDateMonth, int displayDateDay, int displayDateYear,
041                    int displayDateHour, int displayDateMinute, int expirationDateMonth,
042                    int expirationDateDay, int expirationDateYear, int expirationDateHour,
043                    int expirationDateMinute, int priority, boolean alert)
044                    throws com.liferay.portal.kernel.exception.PortalException,
045                            com.liferay.portal.kernel.exception.SystemException {
046                    return getService()
047                                       .addEntry(plid, classNameId, classPK, title, content, url,
048                            type, displayDateMonth, displayDateDay, displayDateYear,
049                            displayDateHour, displayDateMinute, expirationDateMonth,
050                            expirationDateDay, expirationDateYear, expirationDateHour,
051                            expirationDateMinute, priority, alert);
052            }
053    
054            public static void deleteEntry(long entryId)
055                    throws com.liferay.portal.kernel.exception.PortalException,
056                            com.liferay.portal.kernel.exception.SystemException {
057                    getService().deleteEntry(entryId);
058            }
059    
060            public static com.liferay.portlet.announcements.model.AnnouncementsEntry updateEntry(
061                    long entryId, java.lang.String title, java.lang.String content,
062                    java.lang.String url, java.lang.String type, int displayDateMonth,
063                    int displayDateDay, int displayDateYear, int displayDateHour,
064                    int displayDateMinute, int expirationDateMonth, int expirationDateDay,
065                    int expirationDateYear, int expirationDateHour,
066                    int expirationDateMinute, int priority)
067                    throws com.liferay.portal.kernel.exception.PortalException,
068                            com.liferay.portal.kernel.exception.SystemException {
069                    return getService()
070                                       .updateEntry(entryId, title, content, url, type,
071                            displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
072                            displayDateMinute, expirationDateMonth, expirationDateDay,
073                            expirationDateYear, expirationDateHour, expirationDateMinute,
074                            priority);
075            }
076    
077            public static AnnouncementsEntryService getService() {
078                    if (_service == null) {
079                            _service = (AnnouncementsEntryService)PortalBeanLocatorUtil.locate(AnnouncementsEntryService.class.getName());
080                    }
081    
082                    return _service;
083            }
084    
085            public void setService(AnnouncementsEntryService service) {
086                    _service = service;
087            }
088    
089            private static AnnouncementsEntryService _service;
090    }