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