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     * The utility for the journal structure remote service. This utility wraps {@link com.liferay.portlet.journal.service.impl.JournalStructureServiceImpl} 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 JournalStructureService
029     * @see com.liferay.portlet.journal.service.base.JournalStructureServiceBaseImpl
030     * @see com.liferay.portlet.journal.service.impl.JournalStructureServiceImpl
031     * @generated
032     */
033    public class JournalStructureServiceUtil {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * 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.
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.journal.model.JournalStructure addStructure(
059                    long groupId, java.lang.String structureId, boolean autoStructureId,
060                    java.lang.String parentStructureId,
061                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
062                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
063                    java.lang.String xsd,
064                    com.liferay.portal.service.ServiceContext serviceContext)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    return getService()
068                                       .addStructure(groupId, structureId, autoStructureId,
069                            parentStructureId, nameMap, descriptionMap, xsd, serviceContext);
070            }
071    
072            public static com.liferay.portlet.journal.model.JournalStructure copyStructure(
073                    long groupId, java.lang.String oldStructureId,
074                    java.lang.String newStructureId, boolean autoStructureId)
075                    throws com.liferay.portal.kernel.exception.PortalException,
076                            com.liferay.portal.kernel.exception.SystemException {
077                    return getService()
078                                       .copyStructure(groupId, oldStructureId, newStructureId,
079                            autoStructureId);
080            }
081    
082            public static void deleteStructure(long groupId,
083                    java.lang.String structureId)
084                    throws com.liferay.portal.kernel.exception.PortalException,
085                            com.liferay.portal.kernel.exception.SystemException {
086                    getService().deleteStructure(groupId, structureId);
087            }
088    
089            public static com.liferay.portlet.journal.model.JournalStructure getStructure(
090                    long groupId, java.lang.String structureId)
091                    throws com.liferay.portal.kernel.exception.PortalException,
092                            com.liferay.portal.kernel.exception.SystemException {
093                    return getService().getStructure(groupId, structureId);
094            }
095    
096            public static com.liferay.portlet.journal.model.JournalStructure getStructure(
097                    long groupId, java.lang.String structureId,
098                    boolean includeGlobalStructures)
099                    throws com.liferay.portal.kernel.exception.PortalException,
100                            com.liferay.portal.kernel.exception.SystemException {
101                    return getService()
102                                       .getStructure(groupId, structureId, includeGlobalStructures);
103            }
104    
105            public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
106                    long groupId)
107                    throws com.liferay.portal.kernel.exception.SystemException {
108                    return getService().getStructures(groupId);
109            }
110    
111            public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
112                    long companyId, long[] groupIds, java.lang.String keywords, int start,
113                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
114                    throws com.liferay.portal.kernel.exception.SystemException {
115                    return getService()
116                                       .search(companyId, groupIds, keywords, start, end, obc);
117            }
118    
119            public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
120                    long companyId, long[] groupIds, java.lang.String structureId,
121                    java.lang.String name, java.lang.String description,
122                    boolean andOperator, int start, int end,
123                    com.liferay.portal.kernel.util.OrderByComparator obc)
124                    throws com.liferay.portal.kernel.exception.SystemException {
125                    return getService()
126                                       .search(companyId, groupIds, structureId, name, description,
127                            andOperator, start, end, obc);
128            }
129    
130            public static int searchCount(long companyId, long[] groupIds,
131                    java.lang.String keywords)
132                    throws com.liferay.portal.kernel.exception.SystemException {
133                    return getService().searchCount(companyId, groupIds, keywords);
134            }
135    
136            public static int searchCount(long companyId, long[] groupIds,
137                    java.lang.String structureId, java.lang.String name,
138                    java.lang.String description, boolean andOperator)
139                    throws com.liferay.portal.kernel.exception.SystemException {
140                    return getService()
141                                       .searchCount(companyId, groupIds, structureId, name,
142                            description, andOperator);
143            }
144    
145            public static com.liferay.portlet.journal.model.JournalStructure updateStructure(
146                    long groupId, java.lang.String structureId,
147                    java.lang.String parentStructureId,
148                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
149                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
150                    java.lang.String xsd,
151                    com.liferay.portal.service.ServiceContext serviceContext)
152                    throws com.liferay.portal.kernel.exception.PortalException,
153                            com.liferay.portal.kernel.exception.SystemException {
154                    return getService()
155                                       .updateStructure(groupId, structureId, parentStructureId,
156                            nameMap, descriptionMap, xsd, serviceContext);
157            }
158    
159            public static JournalStructureService getService() {
160                    if (_service == null) {
161                            _service = (JournalStructureService)PortalBeanLocatorUtil.locate(JournalStructureService.class.getName());
162    
163                            ReferenceRegistry.registerReference(JournalStructureServiceUtil.class,
164                                    "_service");
165                    }
166    
167                    return _service;
168            }
169    
170            /**
171             * @deprecated
172             */
173            public void setService(JournalStructureService service) {
174            }
175    
176            private static JournalStructureService _service;
177    }