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.journal.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * Provides the local service utility for JournalStructure. This utility wraps
024     * {@link com.liferay.portlet.journal.service.impl.JournalStructureLocalServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on the local server. Methods of this service will not have security checks
027     * based on the propagated JAAS credentials because this service can only be
028     * accessed from within the same VM.
029     *
030     * @author Brian Wing Shun Chan
031     * @see JournalStructureLocalService
032     * @see com.liferay.portlet.journal.service.base.JournalStructureLocalServiceBaseImpl
033     * @see com.liferay.portlet.journal.service.impl.JournalStructureLocalServiceImpl
034     * @deprecated As of 6.2.0, since Web Content Administration now uses the
035    Dynamic Data Mapping framework to handle structures
036     * @generated
037     */
038    @ProviderType
039    public class JournalStructureLocalServiceUtil {
040            /*
041             * NOTE FOR DEVELOPERS:
042             *
043             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.journal.service.impl.JournalStructureLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
044             */
045    
046            /**
047            * Returns the Spring bean ID for this bean.
048            *
049            * @return the Spring bean ID for this bean
050            */
051            public static java.lang.String getBeanIdentifier() {
052                    return getService().getBeanIdentifier();
053            }
054    
055            /**
056            * Sets the Spring bean ID for this bean.
057            *
058            * @param beanIdentifier the Spring bean ID for this bean
059            */
060            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
061                    getService().setBeanIdentifier(beanIdentifier);
062            }
063    
064            public static com.liferay.portlet.journal.model.JournalStructure addJournalStructure(
065                    com.liferay.portlet.journal.model.JournalStructure structure)
066                    throws com.liferay.portal.kernel.exception.PortalException,
067                            com.liferay.portal.kernel.exception.SystemException {
068                    return getService().addJournalStructure(structure);
069            }
070    
071            public static com.liferay.portlet.journal.model.JournalStructure addStructure(
072                    long userId, long groupId, java.lang.String structureId,
073                    boolean autoStructureId, java.lang.String parentStructureId,
074                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
075                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
076                    java.lang.String xsd,
077                    com.liferay.portal.service.ServiceContext serviceContext)
078                    throws com.liferay.portal.kernel.exception.PortalException,
079                            com.liferay.portal.kernel.exception.SystemException {
080                    return getService()
081                                       .addStructure(userId, groupId, structureId, autoStructureId,
082                            parentStructureId, nameMap, descriptionMap, xsd, serviceContext);
083            }
084    
085            public static void addStructureResources(
086                    com.liferay.portlet.journal.model.JournalStructure structure,
087                    boolean addGroupPermissions, boolean addGuestPermissions)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException {
090                    getService()
091                            .addStructureResources(structure, addGroupPermissions,
092                            addGuestPermissions);
093            }
094    
095            public static void addStructureResources(
096                    com.liferay.portlet.journal.model.JournalStructure structure,
097                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
098                    throws com.liferay.portal.kernel.exception.PortalException,
099                            com.liferay.portal.kernel.exception.SystemException {
100                    getService()
101                            .addStructureResources(structure, groupPermissions, guestPermissions);
102            }
103    
104            public static void addStructureResources(long groupId,
105                    java.lang.String structureId, boolean addGroupPermissions,
106                    boolean addGuestPermissions)
107                    throws com.liferay.portal.kernel.exception.PortalException,
108                            com.liferay.portal.kernel.exception.SystemException {
109                    getService()
110                            .addStructureResources(groupId, structureId, addGroupPermissions,
111                            addGuestPermissions);
112            }
113    
114            public static void addStructureResources(long groupId,
115                    java.lang.String structureId, java.lang.String[] groupPermissions,
116                    java.lang.String[] guestPermissions)
117                    throws com.liferay.portal.kernel.exception.PortalException,
118                            com.liferay.portal.kernel.exception.SystemException {
119                    getService()
120                            .addStructureResources(groupId, structureId, groupPermissions,
121                            guestPermissions);
122            }
123    
124            public static void checkNewLine(long groupId, java.lang.String structureId)
125                    throws com.liferay.portal.kernel.exception.PortalException,
126                            com.liferay.portal.kernel.exception.SystemException {
127                    getService().checkNewLine(groupId, structureId);
128            }
129    
130            public static com.liferay.portlet.journal.model.JournalStructure copyStructure(
131                    long userId, long groupId, java.lang.String oldStructureId,
132                    java.lang.String newStructureId, boolean autoStructureId)
133                    throws com.liferay.portal.kernel.exception.PortalException,
134                            com.liferay.portal.kernel.exception.SystemException {
135                    return getService()
136                                       .copyStructure(userId, groupId, oldStructureId,
137                            newStructureId, autoStructureId);
138            }
139    
140            public static com.liferay.portlet.journal.model.JournalStructure createJournalStructure(
141                    long id) throws com.liferay.portal.kernel.exception.SystemException {
142                    return getService().createJournalStructure(id);
143            }
144    
145            public static void deleteStructure(
146                    com.liferay.portlet.journal.model.JournalStructure structure)
147                    throws com.liferay.portal.kernel.exception.PortalException,
148                            com.liferay.portal.kernel.exception.SystemException {
149                    getService().deleteStructure(structure);
150            }
151    
152            public static void deleteStructure(long groupId,
153                    java.lang.String structureId)
154                    throws com.liferay.portal.kernel.exception.PortalException,
155                            com.liferay.portal.kernel.exception.SystemException {
156                    getService().deleteStructure(groupId, structureId);
157            }
158    
159            public static void deleteStructures(long groupId)
160                    throws com.liferay.portal.kernel.exception.PortalException,
161                            com.liferay.portal.kernel.exception.SystemException {
162                    getService().deleteStructures(groupId);
163            }
164    
165            public static com.liferay.portlet.journal.model.JournalStructure fetchStructure(
166                    long groupId, java.lang.String structureId)
167                    throws com.liferay.portal.kernel.exception.SystemException {
168                    return getService().fetchStructure(groupId, structureId);
169            }
170    
171            public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll()
172                    throws com.liferay.portal.kernel.exception.SystemException {
173                    return getService().findAll();
174            }
175    
176            public static com.liferay.portlet.journal.model.JournalStructure getStructure(
177                    long groupId, java.lang.String structureId)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException {
180                    return getService().getStructure(groupId, structureId);
181            }
182    
183            public static com.liferay.portlet.journal.model.JournalStructure getStructure(
184                    long groupId, java.lang.String structureId,
185                    boolean includeGlobalStructures)
186                    throws com.liferay.portal.kernel.exception.PortalException,
187                            com.liferay.portal.kernel.exception.SystemException {
188                    return getService()
189                                       .getStructure(groupId, structureId, includeGlobalStructures);
190            }
191    
192            public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures()
193                    throws com.liferay.portal.kernel.exception.SystemException {
194                    return getService().getStructures();
195            }
196    
197            public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
198                    long groupId)
199                    throws com.liferay.portal.kernel.exception.SystemException {
200                    return getService().getStructures(groupId);
201            }
202    
203            public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
204                    long groupId, int start, int end)
205                    throws com.liferay.portal.kernel.exception.SystemException {
206                    return getService().getStructures(groupId, start, end);
207            }
208    
209            public static int getStructuresCount(long groupId)
210                    throws com.liferay.portal.kernel.exception.SystemException {
211                    return getService().getStructuresCount(groupId);
212            }
213    
214            public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
215                    long companyId, long[] groupIds, java.lang.String keywords, int start,
216                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
217                    throws com.liferay.portal.kernel.exception.SystemException {
218                    return getService()
219                                       .search(companyId, groupIds, keywords, start, end, obc);
220            }
221    
222            public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
223                    long companyId, long[] groupIds, java.lang.String structureId,
224                    java.lang.String name, java.lang.String description,
225                    boolean andOperator, int start, int end,
226                    com.liferay.portal.kernel.util.OrderByComparator obc)
227                    throws com.liferay.portal.kernel.exception.SystemException {
228                    return getService()
229                                       .search(companyId, groupIds, structureId, name, description,
230                            andOperator, start, end, obc);
231            }
232    
233            public static int searchCount(long companyId, long[] groupIds,
234                    java.lang.String keywords)
235                    throws com.liferay.portal.kernel.exception.SystemException {
236                    return getService().searchCount(companyId, groupIds, keywords);
237            }
238    
239            public static int searchCount(long companyId, long[] groupIds,
240                    java.lang.String structureId, java.lang.String name,
241                    java.lang.String description, boolean andOperator)
242                    throws com.liferay.portal.kernel.exception.SystemException {
243                    return getService()
244                                       .searchCount(companyId, groupIds, structureId, name,
245                            description, andOperator);
246            }
247    
248            public static com.liferay.portlet.journal.model.JournalStructure updateJournalStructure(
249                    com.liferay.portlet.journal.model.JournalStructure structure)
250                    throws com.liferay.portal.kernel.exception.PortalException,
251                            com.liferay.portal.kernel.exception.SystemException {
252                    return getService().updateJournalStructure(structure);
253            }
254    
255            public static com.liferay.portlet.journal.model.JournalStructure updateStructure(
256                    long groupId, java.lang.String structureId,
257                    java.lang.String parentStructureId,
258                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
259                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
260                    java.lang.String xsd,
261                    com.liferay.portal.service.ServiceContext serviceContext)
262                    throws com.liferay.portal.kernel.exception.PortalException,
263                            com.liferay.portal.kernel.exception.SystemException {
264                    return getService()
265                                       .updateStructure(groupId, structureId, parentStructureId,
266                            nameMap, descriptionMap, xsd, serviceContext);
267            }
268    
269            public static JournalStructureLocalService getService() {
270                    if (_service == null) {
271                            _service = (JournalStructureLocalService)PortalBeanLocatorUtil.locate(JournalStructureLocalService.class.getName());
272    
273                            ReferenceRegistry.registerReference(JournalStructureLocalServiceUtil.class,
274                                    "_service");
275                    }
276    
277                    return _service;
278            }
279    
280            /**
281             * @deprecated As of 6.2.0
282             */
283            public void setService(JournalStructureLocalService service) {
284            }
285    
286            private static JournalStructureLocalService _service;
287    }