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 com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.util.ReferenceRegistry;
019    
020    /**
021     * Provides the remote service utility for JournalStructure. This utility wraps
022     * {@link com.liferay.portlet.journal.service.impl.JournalStructureServiceImpl} 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 JournalStructureService
030     * @see com.liferay.portlet.journal.service.base.JournalStructureServiceBaseImpl
031     * @see com.liferay.portlet.journal.service.impl.JournalStructureServiceImpl
032     * @deprecated As of 6.2.0, since Web Content Administration now uses the
033    Dynamic Data Mapping framework to handle templates
034     * @generated
035     */
036    public class JournalStructureServiceUtil {
037            /*
038             * NOTE FOR DEVELOPERS:
039             *
040             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.journal.service.impl.JournalStructureServiceImpl} and rerun ServiceBuilder to regenerate this class.
041             */
042    
043            /**
044            * Returns the Spring bean ID for this bean.
045            *
046            * @return the Spring bean ID for this bean
047            */
048            public static java.lang.String getBeanIdentifier() {
049                    return getService().getBeanIdentifier();
050            }
051    
052            /**
053            * Sets the Spring bean ID for this bean.
054            *
055            * @param beanIdentifier the Spring bean ID for this bean
056            */
057            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
058                    getService().setBeanIdentifier(beanIdentifier);
059            }
060    
061            public static com.liferay.portlet.journal.model.JournalStructure addStructure(
062                    long groupId, java.lang.String structureId, boolean autoStructureId,
063                    java.lang.String parentStructureId,
064                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
065                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
066                    java.lang.String xsd,
067                    com.liferay.portal.service.ServiceContext serviceContext)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    return getService()
071                                       .addStructure(groupId, structureId, autoStructureId,
072                            parentStructureId, nameMap, descriptionMap, xsd, serviceContext);
073            }
074    
075            public static com.liferay.portlet.journal.model.JournalStructure copyStructure(
076                    long groupId, java.lang.String oldStructureId,
077                    java.lang.String newStructureId, boolean autoStructureId)
078                    throws com.liferay.portal.kernel.exception.PortalException,
079                            com.liferay.portal.kernel.exception.SystemException {
080                    return getService()
081                                       .copyStructure(groupId, oldStructureId, newStructureId,
082                            autoStructureId);
083            }
084    
085            public static void deleteStructure(long groupId,
086                    java.lang.String structureId)
087                    throws com.liferay.portal.kernel.exception.PortalException,
088                            com.liferay.portal.kernel.exception.SystemException {
089                    getService().deleteStructure(groupId, structureId);
090            }
091    
092            public static com.liferay.portlet.journal.model.JournalStructure getStructure(
093                    long groupId, java.lang.String structureId)
094                    throws com.liferay.portal.kernel.exception.PortalException,
095                            com.liferay.portal.kernel.exception.SystemException {
096                    return getService().getStructure(groupId, structureId);
097            }
098    
099            public static com.liferay.portlet.journal.model.JournalStructure getStructure(
100                    long groupId, java.lang.String structureId,
101                    boolean includeGlobalStructures)
102                    throws com.liferay.portal.kernel.exception.PortalException,
103                            com.liferay.portal.kernel.exception.SystemException {
104                    return getService()
105                                       .getStructure(groupId, structureId, includeGlobalStructures);
106            }
107    
108            public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
109                    long groupId)
110                    throws com.liferay.portal.kernel.exception.SystemException {
111                    return getService().getStructures(groupId);
112            }
113    
114            public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
115                    long[] groupIds)
116                    throws com.liferay.portal.kernel.exception.SystemException {
117                    return getService().getStructures(groupIds);
118            }
119    
120            public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
121                    long companyId, long[] groupIds, java.lang.String keywords, int start,
122                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
123                    throws com.liferay.portal.kernel.exception.SystemException {
124                    return getService()
125                                       .search(companyId, groupIds, keywords, start, end, obc);
126            }
127    
128            public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
129                    long companyId, long[] groupIds, java.lang.String structureId,
130                    java.lang.String name, java.lang.String description,
131                    boolean andOperator, int start, int end,
132                    com.liferay.portal.kernel.util.OrderByComparator obc)
133                    throws com.liferay.portal.kernel.exception.SystemException {
134                    return getService()
135                                       .search(companyId, groupIds, structureId, name, description,
136                            andOperator, start, end, obc);
137            }
138    
139            public static int searchCount(long companyId, long[] groupIds,
140                    java.lang.String keywords)
141                    throws com.liferay.portal.kernel.exception.SystemException {
142                    return getService().searchCount(companyId, groupIds, keywords);
143            }
144    
145            public static int searchCount(long companyId, long[] groupIds,
146                    java.lang.String structureId, java.lang.String name,
147                    java.lang.String description, boolean andOperator)
148                    throws com.liferay.portal.kernel.exception.SystemException {
149                    return getService()
150                                       .searchCount(companyId, groupIds, structureId, name,
151                            description, andOperator);
152            }
153    
154            public static com.liferay.portlet.journal.model.JournalStructure updateStructure(
155                    long groupId, java.lang.String structureId,
156                    java.lang.String parentStructureId,
157                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
158                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
159                    java.lang.String xsd,
160                    com.liferay.portal.service.ServiceContext serviceContext)
161                    throws com.liferay.portal.kernel.exception.PortalException,
162                            com.liferay.portal.kernel.exception.SystemException {
163                    return getService()
164                                       .updateStructure(groupId, structureId, parentStructureId,
165                            nameMap, descriptionMap, xsd, serviceContext);
166            }
167    
168            public static JournalStructureService getService() {
169                    if (_service == null) {
170                            _service = (JournalStructureService)PortalBeanLocatorUtil.locate(JournalStructureService.class.getName());
171    
172                            ReferenceRegistry.registerReference(JournalStructureServiceUtil.class,
173                                    "_service");
174                    }
175    
176                    return _service;
177            }
178    
179            /**
180             * @deprecated As of 6.2.0
181             */
182            public void setService(JournalStructureService service) {
183            }
184    
185            private static JournalStructureService _service;
186    }