001    /**
002     * Copyright (c) 2000-2013 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    import com.liferay.portal.kernel.util.ReferenceRegistry;
019    
020    /**
021     * Provides the remote service utility for AnnouncementsEntry. This utility wraps
022     * {@link com.liferay.portlet.announcements.service.impl.AnnouncementsEntryServiceImpl} and is the
023     * primary access point for service operations in application layer code running
024     * on a remote server. Methods of this service are expected to have security
025     * checks based on the propagated JAAS credentials because this service can be
026     * accessed remotely.
027     *
028     * @author Brian Wing Shun Chan
029     * @see AnnouncementsEntryService
030     * @see com.liferay.portlet.announcements.service.base.AnnouncementsEntryServiceBaseImpl
031     * @see com.liferay.portlet.announcements.service.impl.AnnouncementsEntryServiceImpl
032     * @generated
033     */
034    public class AnnouncementsEntryServiceUtil {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * 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.
039             */
040    
041            /**
042            * Returns the Spring bean ID for this bean.
043            *
044            * @return the Spring bean ID for this bean
045            */
046            public static java.lang.String getBeanIdentifier() {
047                    return getService().getBeanIdentifier();
048            }
049    
050            /**
051            * Sets the Spring bean ID for this bean.
052            *
053            * @param beanIdentifier the Spring bean ID for this bean
054            */
055            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
056                    getService().setBeanIdentifier(beanIdentifier);
057            }
058    
059            public static com.liferay.portlet.announcements.model.AnnouncementsEntry addEntry(
060                    long plid, long classNameId, long classPK, java.lang.String title,
061                    java.lang.String content, java.lang.String url, java.lang.String type,
062                    int displayDateMonth, int displayDateDay, int displayDateYear,
063                    int displayDateHour, int displayDateMinute, boolean displayImmediately,
064                    int expirationDateMonth, int expirationDateDay, int expirationDateYear,
065                    int expirationDateHour, int expirationDateMinute, int priority,
066                    boolean alert)
067                    throws com.liferay.portal.kernel.exception.PortalException,
068                            com.liferay.portal.kernel.exception.SystemException {
069                    return getService()
070                                       .addEntry(plid, classNameId, classPK, title, content, url,
071                            type, displayDateMonth, displayDateDay, displayDateYear,
072                            displayDateHour, displayDateMinute, displayImmediately,
073                            expirationDateMonth, expirationDateDay, expirationDateYear,
074                            expirationDateHour, expirationDateMinute, priority, alert);
075            }
076    
077            /**
078            * @deprecated As of 6.2.0, replaced by {@link #addEntry(long, long, long,
079            String, String, String, String, int, int, int, int, int,
080            boolean, int, int, int, int, int, int, boolean)}
081            */
082            public static com.liferay.portlet.announcements.model.AnnouncementsEntry addEntry(
083                    long plid, long classNameId, long classPK, java.lang.String title,
084                    java.lang.String content, java.lang.String url, java.lang.String type,
085                    int displayDateMonth, int displayDateDay, int displayDateYear,
086                    int displayDateHour, int displayDateMinute, int expirationDateMonth,
087                    int expirationDateDay, int expirationDateYear, int expirationDateHour,
088                    int expirationDateMinute, int priority, boolean alert)
089                    throws com.liferay.portal.kernel.exception.PortalException,
090                            com.liferay.portal.kernel.exception.SystemException {
091                    return getService()
092                                       .addEntry(plid, classNameId, classPK, title, content, url,
093                            type, displayDateMonth, displayDateDay, displayDateYear,
094                            displayDateHour, displayDateMinute, expirationDateMonth,
095                            expirationDateDay, expirationDateYear, expirationDateHour,
096                            expirationDateMinute, priority, alert);
097            }
098    
099            public static void deleteEntry(long entryId)
100                    throws com.liferay.portal.kernel.exception.PortalException,
101                            com.liferay.portal.kernel.exception.SystemException {
102                    getService().deleteEntry(entryId);
103            }
104    
105            public static com.liferay.portlet.announcements.model.AnnouncementsEntry getEntry(
106                    long entryId)
107                    throws com.liferay.portal.kernel.exception.PortalException,
108                            com.liferay.portal.kernel.exception.SystemException {
109                    return getService().getEntry(entryId);
110            }
111    
112            public static com.liferay.portlet.announcements.model.AnnouncementsEntry updateEntry(
113                    long entryId, java.lang.String title, java.lang.String content,
114                    java.lang.String url, java.lang.String type, int displayDateMonth,
115                    int displayDateDay, int displayDateYear, int displayDateHour,
116                    int displayDateMinute, int expirationDateMonth, int expirationDateDay,
117                    int expirationDateYear, int expirationDateHour,
118                    int expirationDateMinute, int priority)
119                    throws com.liferay.portal.kernel.exception.PortalException,
120                            com.liferay.portal.kernel.exception.SystemException {
121                    return getService()
122                                       .updateEntry(entryId, title, content, url, type,
123                            displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
124                            displayDateMinute, expirationDateMonth, expirationDateDay,
125                            expirationDateYear, expirationDateHour, expirationDateMinute,
126                            priority);
127            }
128    
129            public static AnnouncementsEntryService getService() {
130                    if (_service == null) {
131                            _service = (AnnouncementsEntryService)PortalBeanLocatorUtil.locate(AnnouncementsEntryService.class.getName());
132    
133                            ReferenceRegistry.registerReference(AnnouncementsEntryServiceUtil.class,
134                                    "_service");
135                    }
136    
137                    return _service;
138            }
139    
140            /**
141             * @deprecated As of 6.2.0
142             */
143            public void setService(AnnouncementsEntryService service) {
144            }
145    
146            private static AnnouncementsEntryService _service;
147    }